Authentication
Requires product-api-token (sent via the configured auth header as a JWT bearer token) headers.
Request body
JSON payload containing the documented payment fields.
Required fields:
amount(number, min0.000005)currency(string)
Common optional fields:
paymentMethods(array of strings:card|crypto|bank_transfer)paymentMethod(string:card|crypto|bank_transfer)cardPaymentType(on_rampfor on-ramp HPP only)orderReference(string)customerReference(string)customerName(string): kept for hosted-page and native on-ramp payments; not stored for other S2S payments.customerEmail(string): kept for hosted-page and native on-ramp payments; not stored for other S2S payments.successUrl(string URL)failureUrl(string URL)expiryTime(string datetime)useHostedPaymentPage(boolean)metadata(object)
For an on-ramp HPP payment, set paymentMethod to card, useHostedPaymentPage to true, and cardPaymentType to on_ramp. Send the selected metadata.asset and metadata.network from GET /product-apis/on-ramp-networks. Idempotency-Key is required for this payment type.
Response
201: Payment created successfully. Returned data includes:
paymentIdstatus(created|processing|completed|failed|expired|refunded|cancelled)amountcurrencypaymentMethod(card|crypto|bank_transfer)orderReference(string or null)customerReference(string or null)hostedPaymentUrl(string or null)expiresAt(ISO 8601 datetime string or null)instructions(object or null)createdAt(ISO 8601 datetime string)
400: Bad request
401: Unauthorized
403: Forbidden
503: Service unavailable
500: Internal server error
Bank transfer payments
Set paymentMethod to bank_transfer to let the customer pay by bank transfer in a currency BXNK has switched on for you. You receive the money in USDC. The response's instructions contains the bank details and reference to show the customer:
instructions.type: alwaysbank_transferfor these payments.instructions.schemaIn: the bank rail, for examplebank_sepa.instructions.currency: the currency to send.instructions.reference: the reference the customer must put in the transfer message.instructions.bankDetails: the bank details to send to. The fields depend on the rail; show them all as returned.
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. Only invalid fields return 400.
See Accept Bank Transfers Settled in USDC for the full flow, statuses and errors.

