Let your customers pay you by a normal bank transfer in their local currency. BXNK gives you bank details to show the customer; when the money arrives, it is converted and settled to you as USDC. This is the bank-transfer on-ramp: fiat in, USDC out.
You use the same Product API token and the same payment endpoint as for other payments. The only difference is paymentMethod: "bank_transfer".
How it works
- You create a payment with
paymentMethod: "bank_transfer". - The response contains bank details (for example an IBAN) and a reference.
- Your customer sends a bank transfer to those details, with the reference in the transfer message.
- When the transfer arrives, BXNK matches it to the payment using the reference and checks the amount.
- If the amount is right, the payment moves to
completedand you receive thepayment.completedwebhook. - BXNK then converts the money and credits the USDC to your balance once the settlement is confirmed on-chain; check it with
GET /api/v1/product-apis/psp/balances/assets.
Bank transfers can take from minutes to a few business days to arrive, depending on the bank and the payment rail.
Before you start
- Product API credentials. You need an access key and secret from the BXNK dashboard. See Authentication.
- Currencies switched on. Ask your BXNK contact to switch on each currency you want to accept, for example EUR, GBP or USD. BXNK sets up a receiving bank account for you in each currency. You cannot do this through the API.
- A webhook endpoint (recommended). Register one, because bank transfers are slow and webhooks tell you the moment a payment completes. See Webhooks.
Step 1. Get an access token
POST /api/v1/product-apis/auth/token
Content-Type: application/json{
"accessKey": "<your access key>",
"secret": "<your secret>"
}Send data.accessToken from the response as Authorization: Bearer <accessToken> on every call below. The token is valid until data.expiresAt (24 hours by default). Request a new one shortly before it expires. Keep the secret on your server; never put it in a browser or mobile app.
Step 2. Check which currencies you can accept
GET /api/v1/product-apis/account-currencies?type=deposit
Authorization: Bearer <accessToken>Offer a currency to your customers only when its entry has canDeposit: true and isEnabled: true. schemaIn tells you which bank rail the customer pays on: bank_sepa for SEPA in euros, bank_uk for UK Faster Payments, and so on. See List account currencies.
A currency can pass this check before BXNK has finished activating it for payments. A payment in that currency then comes back with status: "failed" and declineReason: "This payment method is not available right now"; ask your BXNK contact to activate it.
Step 3 (optional). Show the customer an estimate in USDC
POST /api/v1/product-apis/fx/quote
Authorization: Bearer <accessToken>
Content-Type: application/json{
"currencyIn": "EUR",
"currencyOut": "USDC",
"amountIn": "100"
}The quote is an estimate. It is valid for about 30 seconds and is not attached to the payment, so the rate applied when the money arrives can be different. See Get an FX quote.
Step 4. Create the payment
POST /api/v1/product-apis/payments
Authorization: Bearer <accessToken>
Content-Type: application/json
Idempotency-Key: order-1001-create{
"amount": 100,
"currency": "EUR",
"paymentMethod": "bank_transfer",
"orderReference": "ORDER-1001",
"customerReference": "CUSTOMER-42"
}Use a unique Idempotency-Key per payment. If your request times out, send it again with the same key and body, and you get the same payment back instead of a second one. The retry returns the original response, so status still shows created; call GET /api/v1/product-apis/payments/{paymentId} for the current status.
Response 201:
{
"message": "Payment created successfully",
"data": {
"paymentId": "PAY-m3n4o5p6q7r8",
"status": "created",
"amount": 100,
"currency": "EUR",
"paymentMethod": "bank_transfer",
"paymentFlow": "S2S",
"orderReference": "ORDER-1001",
"customerReference": "CUSTOMER-42",
"hostedPaymentUrl": null,
"expiresAt": null,
"instructions": {
"type": "bank_transfer",
"schemaIn": "bank_sepa",
"currency": "EUR",
"reference": "PAY-m3n4o5p6q7r8",
"bankDetails": {
"schema": "bank_sepa",
"IBAN": "DE89370400440532013000",
"bankName": "Example Bank AG",
"beneficiaryName": "Example Beneficiary Ltd"
}
},
"createdAt": "2026-11-04T07:10:00.000Z",
"declineReason": null
}
}The response has a few more fields than shown here; they are described on the Create a payment page.
Step 5. Show the bank details to your customer
Show the customer:
-
Every field in
instructions.bankDetails, exactly as returned. The fields depend on the bank rail (instructions.schemaIn):- SEPA returns an
IBAN. - UK returns a
sortCodeandaccountNumber. - US returns a routing number and account number.
- Other rails return their own fields.
Do not hard-code a layout for one country. Loop over the fields you receive.
- SEPA returns an
-
The amount and currency, from
data.amountanddata.currency. -
The reference, from
instructions.reference. Tell the customer clearly that they must put this reference in the payment message (also called the "reference" or "memo") of their bank transfer. It is how BXNK matches the money to this payment. A transfer without it can't be matched automatically and needs manual handling by BXNK support.
Using the hosted payment page instead. If you would rather not build this screen yourself, add "useHostedPaymentPage": true (and optionally successUrl, failureUrl and redirectUrl) to the request in Step 4. The response then also contains hostedPaymentUrl; redirect the customer there and BXNK shows them the bank details and reference.
Step 6. Wait for the money
Payment statuses for a bank transfer:
| Status | Webhook | What it means |
|---|---|---|
created | payment.created | The payment exists and the bank details have been issued. |
processing | payment.processing | Waiting for the customer's transfer to arrive. |
completed | payment.completed | The transfer arrived with the right amount. The USDC is credited to your balance shortly after. |
failed | payment.failed | The payment could not be set up, or the transfer could not be accepted. See declineReason (for example overpaid). |
expired | payment.expired | Only for hosted-page payments created with expiryTime: no transfer arrived before that time. Payments created without expiryTime do not expire. |
For bank transfers, failed and expired are not always the last status. Money can arrive late, and an overpaid transfer can be resolved by BXNK after review. In both cases the payment then moves to completed and you receive payment.completed. Always handle payment.completed, even for a payment you already saw as failed or expired.
- Use webhooks to learn when a payment completes. Webhooks are signed: verify the
x-psp-signatureheader as described in Webhook Delivery. - Polling is fine too, but don't poll faster than every few minutes. Call
GET /api/v1/product-apis/payments/{paymentId}and checkdata.status. - Returning to your success URL is not proof of payment. Only
status: "completed"confirms that the money arrived.
If the customer sends the wrong amount
The customer must send exactly the payment amount.
- Less than the amount: the payment stays in
processingand is not completed. - More than the amount: the payment is marked
failedwithdeclineReason: "overpaid", and BXNK holds the whole transfer for review. If it is resolved, the payment can still move tocompleted.
In both cases, contact BXNK support with the paymentId and BXNK will help resolve it with the customer.
Errors when creating the payment
Only a missing or invalid field returns an error status. If the request is valid but the bank transfer can't be set up, the response is still 201, with status: "failed" and a declineReason, for example "This payment method is not available right now". Always check data.status before you show bank details.
| Response | When it happens | What to do |
|---|---|---|
400 | A field is missing or invalid, for example the amount or currency. | Fix the request; the message names the field. |
401 | The access token is missing or has expired. | Get a new token (Step 1). |
409 | The same Idempotency-Key was already used with a different body, or the first request is still being processed. | For a retry, send exactly the same body; for a new payment, use a new key. |
201, status: "failed" | The currency is not switched on for bank transfers on your account, or not in the mode of your API key (TEST or LIVE). | Check Step 2. Ask BXNK to switch the currency on. |
201, status: "failed" | The amount is outside the limits for the currency. | Create a new payment with an amount inside the limits. |
201, status: "failed" | The bank details for the currency are still being prepared (this can happen for some currencies right after they are switched on). | Wait a few minutes, then create a new payment. |
201, status: "failed" | Our banking partner is temporarily unreachable. | Try again later by creating a new payment. |
To try again after a failed response, use a new Idempotency-Key. Sending the same key returns the original failed response.

