Create a payment

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, min 0.000005)
  • currency (string)

Common optional fields:

  • paymentMethods (array of strings: card | crypto | bank_transfer)
  • paymentMethod (string: card | crypto | bank_transfer)
  • cardPaymentType (on_ramp for 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:

  • paymentId
  • status (created | processing | completed | failed | expired | refunded | cancelled)
  • amount
  • currency
  • paymentMethod (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: always bank_transfer for these payments.
  • instructions.schemaIn: the bank rail, for example bank_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.

Body Params
number
required
≥ 0.000005
string
required
length between 3 and 10
paymentMethods
array of strings
paymentMethods
Allowed:
string
enum
Allowed:
string
enum
Allowed:
string
enum

Selects the embedded Sumsub and Banxa Native on-ramp experience.

Allowed:
string
string
string
string
string
string
boolean
string

Customer full name.

string

Customer email address.

metadata
object
Headers
string

Optional. Send a unique value per payment; retrying with the same key and body returns the original response instead of creating a second payment, and the same key with a different body is a 409. Required for card payments (S2S and on-ramp).

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json