API concepts

The handful of ideas that apply to every BXNK endpoint.

Base path

All endpoints sit under /api/v1/product-apis. Every request except token creation needs Authorization: Bearer <accessToken>.

Partners and MIDs

A Partner is any business integrating with BXNK. Each partner has one or more MIDs. Your token carries your MID, so payments, webhooks and balances are scoped to it automatically.

One payment endpoint

POST /payments handles every pay-in. The paymentMethod field picks the flow:

paymentMethodFlowIntegration
bank_transferBank transfer on-ramp, settled in USDCS2S or hosted page
cryptoCrypto or stablecoin deposit to a dedicated addressS2S or hosted page
cardCard, Apple Pay or Google Pay on-rampHosted checkout

Balances

Completed pay-ins settle to your BXNK balance in USDC. Check it with GET /psp/balances/assets. From the balance you can pay out to a bank account.

Amounts

  • Payments: numbers, at least 0.000005, up to 8 decimal places.
  • Payouts and FX quotes: decimal strings (for example "250"), to avoid rounding.

Idempotency

Send an Idempotency-Key header on anything that moves money. If a request times out, retry with the same key and same body and you get the original result back, never a duplicate.

EndpointIdempotency-Key
Create payment (bank transfer, crypto)Recommended
Create payment (card on-ramp)Required
Create payoutRequired
RefundRecommended

Use a new key for each new operation. Same key with a different body returns 409.

Rate limits

EndpointsLimit
Retrieve payment, status check, refund status100 requests per second per MID
Payout statusRefreshed at most every 30 seconds
Everything elseRefreshed at every 5 minutes

Exceeding a limit returns 429. Prefer webhooks to polling.

Error format

{
  "statusCode": 400,
  "message": ["amount must not be less than 0.000005"],
  "error": "Bad Request"
}

message can be a string or a list. See Errors.

Integration methods

MethodWhen to use it
Server-to-Server (S2S)Your systems own the checkout. You show bank details or deposit addresses yourself.
Hosted Payment Page (HPP)BXNK hosts the customer-facing page. Fastest to launch.

Did this page help you?