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

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

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-Id header. Quote it if you contact support.
  • Each key has a rate limit. Past it you get 429 rate_limited with a Retry-After header. Wait that many seconds, then retry.

Was this page helpful?