Welcome to the Airtime to Cash Automation API. This RESTful API allows you to integrate airtime to cash conversion functionality into your applications.
https://automation.airtimetocash.com
Get up and running in 30 minutes with our comprehensive API documentation.
Enterprise-grade security with 99.9% uptime guarantee and comprehensive error handling.
Custom response codes returned in the JSON response body to indicate the status of your request.
| Code | Description |
|---|---|
| 2000 | The Request is successful |
| 3000 | The Request failed |
| 4000 | The Request is pending (not sure of delivery - needs manual intervention) |
| 4030 | The Request is forbidden |
| 4010 | Your Session expired |
| 4290 | Too many requests |
| 5030 | Service/Recipient is unavailable at the moment |
Standard HTTP status codes for failed requests returned by our API.
| Code | Status | Description |
|---|---|---|
| 403 | Forbidden | The Request is forbidden |
| 422 | Unprocessable Entity | Unprocessable entity |
| 401 | Unauthorized | Unauthorized |
| 404 | Not Found | Route/Resource not found |
| 429 | Too Many Requests | Too many requests |
| 500 | Internal Server Error | Internal Server error (set to pending) |
All API requests require proper authentication to ensure secure access to our services.
For Generate OTP and Verify OTP endpoints:
Content-Type: application/json
Accept: application/json
For all other endpoints (after OTP verification):
Content-Type: application/json
Accept: application/json
Authorization: Bearer {YOUR_TOKEN}
Token Generation: The Bearer token must be generated from your account under the Developer's Module. This token is required for all endpoints except Generate OTP and Verify OTP.
Our API supports all major Nigerian mobile networks for airtime to cash conversion. Each network has specific codes and amount limits that must be adhered to when making API requests.
Network Code: MTN
Amount Range: ₦50 - ₦10,000
Network Code: AIRTEL
Amount Range: ₦50 - ₦20,000
Network Code: GLO
Amount Range: ₦50 - ₦1,000
Network Code: 9MOBILE
Amount Range: ₦50 - ₦20,000
Complete list of available endpoints for airtime to cash conversion.
Generate OTP for phone number verification before airtime transfer.
POST /api/v1/generate/otp
{
"networkName": "MTN",
"sender": "0806******73"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| networkName | string | Yes | Network provider (MTN, AIRTEL, GLO, 9MOBILE) |
| sender | string | Yes | Phone number |
{
"code": 2000,
"message": "Otp sent successfully to +23486*****73"
}
Verify the OTP sent to the phone number.
POST /api/v1/verify/otp
{
"networkName": "MTN",
"sender": "0806******73",
"otp": "123456"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| networkName | string | Yes | Network provider (MTN, AIRTEL, GLO, 9MOBILE) |
| sender | string | Yes | Phone number |
| otp | string | Yes | OTP code received via SMS |
{
"code": 2000,
"message": "Otp verified.",
"data": {
"airtimeBalance": "₦0.42",
"tariff": "SMEPlus 186 Prepaid",
"type": "Prepaid",
"sessionId": "20230521232229|744673|18"
}
}
Retrieve SIM information using a valid session ID to access airtime transfer functionality.
POST /api/v1/login/with/session/id
Authentication Required: This endpoint requires a Bearer token. Include Authorization: Bearer {YOUR_TOKEN} in your request headers.
{
"networkName": "MTN",
"sender": "0806******73",
"sessionId": "20230521232229|744673|18"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| networkName | string | Yes | Network provider (MTN, AIRTEL, GLO, 9MOBILE) |
| sender | string | Yes | Phone number |
| sessionId | string | Yes | Valid session ID (Gotten from Verify OTP response) |
{
"code": 2000,
"message": "Session record retrieved.",
"data": {
"airtimeBalance": "₦0.42",
"tariff": "SMEPlus 186 Prepaid",
"type": "Prepaid",
"sessionId": "20230521232229|744673|18"
}
}
Check if there are available recipients for airtime conversion before making a transfer.
POST /api/v1/check/quota/availability
Authentication Required: This endpoint requires a Bearer token. Include Authorization: Bearer {YOUR_TOKEN} in your request headers.
{
"networkName": "MTN",
"amount": 1000
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| networkName | string | Yes | Network provider (MTN, AIRTEL, GLO, 9MOBILE) |
| amount | integer | Yes | Amount to check availability for (minimum ₦50) |
Network Limits: MTN (₦50-₦10,000), AIRTEL (₦50-₦20,000), GLO (₦50-₦1,000), 9MOBILE (₦50-₦20,000)
{
"code": 5030,
"message": "Recipient(s) Available"
}
Transfer airtime and convert to cash.
POST /api/v1/transfer/airtime
Authentication Required: This endpoint requires a Bearer token. Include Authorization: Bearer {YOUR_TOKEN} in your request headers.
{
"networkName": "MTN",
"sender": "0806******73",
"amount": 1000,
"reference": "TXN123456789",
"pin": "1234",
"sessionId": "20230521232229|744673|18"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| networkName | string | Yes | Network provider (MTN, AIRTEL, GLO, 9MOBILE) |
| sender | string | Yes | Phone number |
| amount | integer | Yes | Amount to transfer (minimum ₦50) |
| reference | string | Yes | Unique transaction reference (10-40 characters) |
| pin | string | Yes | SIM Transfer PIN |
| sessionId | string | Yes | Valid session ID (Gotten from Verify OTP response) |
{
"code": 2000,
"message": "Yello! You have gifted N50.0 to 23481****89. Share link https://mtnapp.page.link/myMTNNGApp with 23481****89 to download new MyMTN app for exciting offers.",
"data": {
"amountConverted": "₦50",
"recipient": "23481****89",
"balanceBefore": "₦220,751.8",
"balanceAfter": "₦220,701.8",
"automationCharges": "₦2",
"sessionId": "20230521232229|744673|18"
}
}
API rate limits to ensure fair usage and system stability.
requests per minute
requests per minute (based on request)
Note: Rate limits are enforced per IP address. Standard rate is 60 requests per minute, with maximum of 100 requests per minute available based on request. Contact our team for custom rate limits based on your business needs.
Get your API credentials and start integrating airtime to cash conversion today.