Bills PaymentsAirtimeAirtime Topup

Airtime Topup

The Airtime Top-Up API allows you to integrate airtime recharge functionality into your applications. It enables users to automatically send mobile airtime to a specified phone number across supported

Endpoint

POST https://backendapi.sayswitchgroup.com/api/v1/airtime/topup

Sample cURL Request

curl -X POST https://backendapi.sayswitchgroup.com/api/v1/airtime/topup \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_SECRET_KEY" \
  -d '{
    "network": "mtn",
    "phone": "08012345678",
    "amount": "100"
  }'

Sample Response

{
  "success": true,
  "code": "00000",
  "message": "SUCCESSFUL",
  "data": {
    "orderNo": "17484753663740358984353674",
    "reference": "2022009802414346",
    "status": "delivered",
    "errorMsg": "TRANSACTION SUCCESSFUL"
  }
}

Response Explanation

KeyTypeDescription
successbooleanIndicates whether the top-up was successful (true or false).
codestringA system-generated status code. "00000" means the transaction was OK.
messagestringGeneral message about the transaction result.
dataobjectContains the transaction result details.
orderNostringUnique transaction ID for internal tracking.
referencestringA unique reference ID for the user or client to track the transaction.
statusstringDelivery status (delivered, pending, failed).
errorMsgstringDescription of the result, useful for debugging or user messaging.