Quickstart
Your first transfer — four calls, from nothing to money leaving an account.
You're in test mode. Everything below runs against an nsk_test_ key. Nothing settles.
Every request authenticates with the x-api-key header.
export TUSHE_KEY=nsk_test_…1. Create a customer
A customer is the legal owner of everything else. type decides whether KYC or KYB applies.
curl -X POST https://api.trytushe.com/v1/customers \
-H "x-api-key: $TUSHE_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "individual",
"firstName": "Ada",
"lastName": "Obi",
"email": "[email protected]"
}'A business customer sends "type": "business" with legalName and registrationNumber instead
of a first and last name.
2. Verify identity
Tier 1 is BVN. Each verification method has its own endpoint.
curl -X POST https://api.trytushe.com/v1/customers/{customerId}/kyc/verify/bvn \
-H "x-api-key: $TUSHE_KEY" \
-H "Content-Type: application/json" \
-d '{ "bvn": "22222222222" }'The sibling routes are /kyc/verify/gov-id, /kyc/verify/liveness and /kyc/verify/address.
GET /v1/customers/{customerId}/kyc/status reports the tier reached.
3. Open an account
customerId and currency are required.
curl -X POST https://api.trytushe.com/v1/accounts \
-H "x-api-key: $TUSHE_KEY" \
-H "Content-Type: application/json" \
-d '{
"customerId": "018f4be0-0000-7000-8000-000000000001",
"currency": "NGN",
"type": "wallet"
}'4. Pay out
The account is in the path, not the body. Send an idempotency-key: retrying is safe,
double-paying is not.
curl -X POST https://api.trytushe.com/v1/accounts/{accountId}/payouts \
-H "x-api-key: $TUSHE_KEY" \
-H "idempotency-key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"bankCode": "058",
"accountNumber": "0123456789",
"amount": "5000000",
"currency": "NGN"
}'amount is a string of minor units — "5000000" is ₦50,000.00. Send recipientId instead of
bankCode + accountNumber to pay a saved recipient; exactly one of the two.
This returns 202, not 201 — accepted, not sent. Payouts settle asynchronously; listen for
payout.completed, don't poll. And a payout left pending must never be retried — see
Error codes.