Airtime
Purchase airtime for a mobile number
Request
curl -X POST "https://api.simpu.co/airtime/buy" \
-H "Content-Type: application/json" \
-d '{
"network": "Airtel",
"amount": 1500,
"recipient": "2348023456789",
"callback": "https://example.com/airtime/delivery_report",
"external_ref": "674535b2b39158b9aae90188fcec23eb"
}'Response
{
"id": "674535b2b39158b9aae90188fcec23eb",
"recipient": "2348023456789",
"external_ref": "674535b2b39158b9aae90188fcec23eb",
"callback": "https://example.com/airtime/delivery_report",
"status": "pending",
"created_datetime": "2024-06-28T23:56:38.128604+00:00",
"network": "Airtel",
"meta": {
"method": "POST",
"resource": "/airtime/buy",
"charge": {
"amount": 1500,
"available_balance": 2000,
"balance_before": 500,
"refunded": false
}
}
}/airtime/buy
application/json
Buy airtime object
200
400
application/json
Buy airtime response
Request
curl -X POST "https://api.simpu.co/airtime/buy" \
-H "Content-Type: application/json" \
-d '{
"network": "Airtel",
"amount": 1500,
"recipient": "2348023456789",
"callback": "https://example.com/airtime/delivery_report",
"external_ref": "674535b2b39158b9aae90188fcec23eb"
}'Response
{
"id": "674535b2b39158b9aae90188fcec23eb",
"recipient": "2348023456789",
"external_ref": "674535b2b39158b9aae90188fcec23eb",
"callback": "https://example.com/airtime/delivery_report",
"status": "pending",
"created_datetime": "2024-06-28T23:56:38.128604+00:00",
"network": "Airtel",
"meta": {
"method": "POST",
"resource": "/airtime/buy",
"charge": {
"amount": 1500,
"available_balance": 2000,
"balance_before": 500,
"refunded": false
}
}
}