Data Bundles
Purchase mobile data bundles for MTN, MTN Fibre, AirtelTigo, Telecel, and Glo. Each network has its own purchase endpoint and lookup flow. Use the lookup endpoint immediately before purchase because bundle identifiers and prices can change.
Use the right identifier for the network. MTN, MTN Fibre, and AT purchases use
product_id. Telecel and Glo purchases use bundle_id.
Endpoints
Bundle Lookup
Lookup responses return the currently available bundles or products for the selected network. Use the returned amount when setting amount in the purchase request. The lookup endpoints have been listed above for each network
POST
LOOKUP ENDPOINT ABOVE
Lookup Request
{ "client_id": 2 }
Purchase Request Body
Send a JSON request body with Content-Type: application/json and the HMAC authorization header described in the Authentication page.
Purchase Examples
MTN, MTN Fibre, or AirtelTigo
Request
curl -X POST https://testxchange.korba365.com/api/v1.0/mtn_data_topup/ \ -H "Authorization: HMAC YOUR_CLIENT_KEY:YOUR_SIGNATURE" \ -H "Content-Type: application/json" \ -d '{ "customer_number": "0241234567", "amount": "15.00", "transaction_id": "DATA-20260626-001", "client_id": 2, "product_id": "1001", "callback_url": "https://yourapp.com/callbacks/data/" }'
Telecel or Glo
Request
curl -X POST https://testxchange.korba365.com/api/v1.0/new_glo_data_purchase/ \ -H "Authorization: HMAC YOUR_CLIENT_KEY:YOUR_SIGNATURE" \ -H "Content-Type: application/json" \ -d '{ "customer_number": "0241234567", "amount": "10.00", "transaction_id": "DATA-20260626-002", "client_id": 2, "bundle_id": "2001", "callback_url": "https://yourapp.com/callbacks/data/" }'
Responses
200 OK
{ "success": true, "results": "Transaction initiated successfully.", "error_code": null }
400 Bad Request
{ "success": false, "error_code": 405, "error_message": "Duplicate Transaction ID" }