Subthingy API
The Subthingy API powers airtime, data, electricity, and pay-TV purchases for your customers. All routes live under a single base URL:
https://api.subthingy.io/v1There is no separate staging host — live and test traffic share the same base URL. Which environment a request runs in is determined entirely by the X-Merchant-Key / X-Merchant-Secret pair you send: every merchant is provisioned with both a live credential and a test credential, and the API resolves environment from whichever one is presented. See Environments.
Quick start
- Contact your account manager for your live and test API keys and onboarding.
- Send
X-Merchant-KeyandX-Merchant-Secreton every request (see Authentication) — use your test key while integrating, and your live key for real customer traffic. - Complete production IP whitelisting before go-live.
- Create a purchase with a sync route (recommended) — see Transactions or Bill payments.
- If you use async, poll the matching status endpoint with the same
request_refyou submitted. - Provide reconciliation email addresses for T+1 reports.
What you can do
| Action | Guide |
|---|---|
| Buy airtime or data | Transactions |
| Pay electricity | Bill payments |
| Pay cable TV (DStv, GOtv, StarTimes, Showmax) | Bill payments |
| Check outcome | Transactions · Bills |
| List purchases | Transactions |
| MTN wallet balance | Wallet balance |
| Data bundle catalog | Data plans |
| Live vs. test keys | Environments |
Networks (airtime & data)
Use lowercase network names: mtn, glo, airtel, 9mobile.
Last updated on