Introduction
What the iSmartPay API does, and how test and live differ.
The iSmartPay API lets your business take money from customers and send money to them. Payments run over mobile money and iSmartPay.
Quick start
Take a payment
Create a test key and make your first collection.
Share a payment link
Send a customer to a checkout page iSmartPay runs for you.
Give each client a wallet
Open as many sub-accounts as you need and keep every client’s money apart.
Charge on a schedule
Ask a customer to agree once, then take the same amount every week or month.
Hold money in escrow
Keep money aside for a beneficiary, then pay it out or send it back.
Pay out in bulk
Send up to 100 payouts in one request.
Get webhooks
Get told when a payment changes.
Pay another business
Send money from your wallet to another iSmartPay business by its handle.
Browse the API reference
Every route, with its fields and errors.
What you can do
- Collect. Ask a customer to pay you. They approve on their phone.
- Pay out. Send money from your wallet to a customer’s mobile money account.
- Give each client their own wallet. Open sub-accounts, as many as you need, under your one verification. Collect into them, pay out of them, and move money between them in one step with no fee. See Wallets and sub-accounts and Moving money between sub-accounts.
- Charge on a schedule. Ask a customer to agree once, then take the same amount every day, week or month with no prompt. See Subscriptions.
- Hold money in escrow. Set money aside for a beneficiary for up to 90 days, then pay it out or return it. In the sandbox for now. See Escrow holds.
- Pay out in bulk. Send up to 100 payouts in one request. See Payout batches.
- Share a payment link. Customers can pay by mobile money or with iSmartPay. See Hosted checkouts.
- Buy airtime and data for a mobile number. See Utility purchases.
- Settle your wallet to your own accounts, on a schedule or now. See Settlements.
- Pay another business from your wallet by its handle. See Wallet transfers.
- Ask another iSmartPay account for money, and cancel the request if you need to. See Payment requests.
- Check fees, limits and balance before you move money.
- Get webhooks when a payment changes state, and catch up on any you missed. See Transactions and events.
The full list of routes is in the API reference. All routes live under /v1. Requests and responses are JSON. Every call carries a bearer token.
Test and live
iSmartPay has two separate environments, test and live, and each needs its own account. Build in test first, then create a live account when you are ready to go live.
| Environment | Base URL | Console |
|---|---|---|
| Test | https://stgdeveloper-api.ismartghana.com |
stgdevelopers.ismartghana.com |
| Live | https://api.ismartghana.com |
developers.ismartghana.com |
- Each has its own keys and its own webhook endpoints.
- A key only works in the environment that made it. A test key sent to live is rejected with
403 environment_mismatch, and so is a live key sent to test. - Test moves no real money, except for utility purchases: those send real airtime and data in test too.
Build and check everything in test first. When it works, follow Going live.
Conventions
- Money is a decimal string in major units, such as
"120.00". See Money and fees. - Errors look like
{"error":{"code":"...","message":"..."}}. See Errors. - Every response has a
Request-Idheader. Quote it if you contact support. - Each key has a rate limit. Past it you get
429 rate_limitedwith aRetry-Afterheader. Wait that many seconds, then retry.