Prerequisites
- A Kori merchant account with an API key and secret (dashboard → API Keys).
- The key must include the scopes you intend to use here:
payandbalance.
1. Get a token
Exchange your key + secret for a Bearer token. Request only the scopes you need.Response
data.token — you’ll send it on every subsequent request.
2. Check your balance
3. Collect a payment
This prompts the customer’s phone to approve the payment.Response (202 Accepted)
4. Confirm settlement
Wait for thepayment_received webhook, or poll the transaction:
status becomes success, the funds are credited to your balance and you can
fulfill the order.
Next steps
Scopes
See every permission an API key can grant.
Webhooks
Get notified when payments settle.