Request to Pay

Send payment links and QR codes so your customers pay into your bank account.

A request to pay is the other direction of a payment: you ask a debtor (your customer) to pay into your bank account. mybanx returns a payment link and a QR code for each request; you send them to the debtor (by email, on an invoice, on a screen), and the debtor pays from their own bank.

Create payment requests

One call creates a batch of requests, one per debtor.

curl -X POST https://api.mybanx.io/v2/bankaccounts/<bankAccountId>/requesttopay \
  -H "Authorization: Bearer <bearer>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5b8e2d1c-9f4a-4c7e-a3b6-0d2f7e9a1c58" \
  -d '{
    "redirectURL": "https://yourapp.example.com/thank-you",
    "notifyEmail": "[email protected]",
    "uniqueRequests": [
      {
        "amount": 250.00,
        "currency": "EUR",
        "counterpartName": "Customer SRL",
        "counterpartEmail": "[email protected]",
        "counterpartCountryId": "BE",
        "remittanceStructuredRef": "+++090/9337/55493+++",
        "end2EndId": "INV-2026-0042",
        "message": "Invoice 2026-0042, due 31 December",
        "documentURL": "https://yourapp.example.com/invoices/2026-0042.pdf"
      }
    ]
  }'

bankAccountId is your account, the one that receives the money.

FieldRequiredMeaning
redirectURLyesWhere the debtor lands after paying.
notifyEmailyesEmail of a mybanx user of your company, notified about these requests. Otherwise 401.
uniqueRequestsyesOne entry per debtor.
uniqueRequests[].amountyesAmount requested.
uniqueRequests[].end2EndIdyesYour reference (e.g. invoice number), carried with the payment.
uniqueRequests[].messageyesMessage shown to the debtor before paying.
uniqueRequests[].counterpartName, counterpartEmail, counterpartCountryIdDebtor name, email and country (ISO code).
uniqueRequests[].counterpartyBankAccountDebtor's IBAN, if you know it.
uniqueRequests[].remittanceStructuredRef / remittanceUnstructuredCommunication the payment must carry.
uniqueRequests[].documentURLLink to the related document (an invoice PDF, for example).
uniqueRequests[].currencyDefault EUR.

Response:

{
  "id": "2c9f6a1e-8d3b-4e7a-b5c0-1f4e9d2a7b63",
  "uniqueRequests": [
    {
      "id": "7e1b4d9a-3c6f-4a2e-8b05-9d3c1f7e4a26",
      "url": "https://www.mybanx.io/requesttopay/api/7e1b4d9a-3c6f-4a2e-8b05-9d3c1f7e4a26/start",
      "qrCode": "https://www.mybanx.io/qrcode/svg/requesttopay/7e1b4d9a-3c6f-4a2e-8b05-9d3c1f7e4a26"
    }
  ]
}

uniqueRequests comes back in the order you sent it. Send each debtor their own url or qrCode (an SVG image you can embed in an invoice).

Knowing when you are paid

The API does not yet return the status of a request. Incoming payments appear in your account's transactions: match them on end2EndId or the structured communication. See Reading bank data.

Errors

StatusCause
400A required field is missing or invalid.
401No payment right, bank account not accessible, or notifyEmail is not a user of your company.
409A call with the same Idempotency-Key is still running.

Did this page help you?