Skip to main content
This guide takes you from an API key to a live collection in four requests.

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: pay and balance.
Use the Sandbox base URL https://dev.kori.ml while testing.

1. Get a token

Exchange your key + secret for a Bearer token. Request only the scopes you need.
Response
Save 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)
status: "pending" means the prompt was sent, not that the customer paid. Do not fulfill the order yet.

4. Confirm settlement

Wait for the payment_received webhook, or poll the transaction:
When 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.