Make your first call

Create a sandbox payment end to end in about ten minutes.

This walkthrough creates a bank-transfer pay-in in sandbox: the simplest end-to-end flow, fully server to server.

1. Get a token

curl -X POST https://sandbox-api.bxnk.com/api/v1/product-apis/auth/token \
  -H "Content-Type: application/json" \
  -d '{"accessKey":"<TEST access key>","secret":"<TEST secret>"}'

Save data.accessToken.

2. Check what's switched on for you

curl https://sandbox-api.bxnk.com/api/v1/product-apis/account-currencies?type=deposit \
  -H "Authorization: Bearer $TOKEN"

Use a currency where canDeposit and isEnabled are both true.

3. Register a webhook

curl -X POST https://sandbox-api.bxnk.com/api/v1/product-apis/psp/webhooks \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mId":"MID-ABCDEFGHIJ","url":"https://your-app.example/webhooks/bxnk"}'

Keep the secret in the response. You need it to verify signatures.

4. Create a payment

curl -X POST https://sandbox-api.bxnk.com/api/v1/product-apis/payments \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: first-call-0001" \
  -d '{
    "amount": 100,
    "currency": "EUR",
    "paymentMethod": "bank_transfer",
    "orderReference": "ORDER-1001",
    "customerReference": "CUSTOMER-42"
  }'

The response includes instructions.bankDetails and a reference. That's what your customer pays to.

5. Watch it complete

Send a sandbox transfer to the bank details (ask your BXNK contact how), with the reference in the payment message. You'll receive payment.processing, then payment.completed, and the USDC appears in your balance:

curl https://sandbox-api.bxnk.com/api/v1/product-apis/psp/balances/assets \
  -H "Authorization: Bearer $TOKEN"
πŸ‘

That's the full loop

Token β†’ payment β†’ webhook β†’ balance. Every other flow follows the same pattern.

β†’ Next: API concepts Β· Flow guides


Did this page help you?