Skip to content
iSmartPay Developers
Esc
↑↓navigate↵open⌘Jpreview
On this page

iSmartPay API

Collect money from payers and send money to recipients from your iSmartPay wallet.

Authentication

Every operation takes a bearer token from an API credential (a client id and a client secret you create in the developer console). Get a token by calling POST /v1/oauth/token on the iSmartPay identity service with your client id and secret, then send it as Authorization: Bearer <token>. Tokens are short-lived, so request a new one when you get a 401. A signed-in user’s token is not accepted here.

Each operation needs a permission on the credential, named in its description. A credential works in one environment, test or live, and only against that environment’s API; the other returns 403 environment_mismatch.

Amounts

Amounts are decimal strings in major units, for example "120.00", never numbers.

Retrying safely

Every POST needs an Idempotency-Key header. If a request times out or fails with a 5xx, send it again with the same key and body. It is applied once. Each request also gets a Request-Id response header; quote it when you contact support.

Rate limits

Requests are limited per credential. Past the limit you get 429 rate_limited and a Retry-After header.

Errors

Errors look like {"error":{"code":"...","message":"..."}}. Branch on code.

Version 1.0.0
Base URLhttps://{host}

Collections

Collect money from a payer into your wallet.

Checkouts

Hosted payment links your customers open to pay you.

Payouts

Send money from your wallet to a recipient.

Utilities

Buy airtime and data for a mobile number.

Settlements

Paying your wallet out to your own verified bank and mobile money accounts.

Transfers

Sending money from your wallet to another iSmartPay business, by handle.

Reference

Providers and account holders.

Account

Your wallet balances and limits.

Webhooks

Events sent to the endpoints you register in the console.

Events

The same events, listed on request, for catching up after missed webhooks.

Was this page helpful?