post http://api.pandascrow.io/sandbox/index/services/bills/airtime
This endpoint would allow you to purchase airtime bill with Pandascrow.
[POST] {{baseurl}}/sandbox/index/services/bills/airtime
Bill Payments
To buy airtime, you'll need to pass all the required parameters in the table.
Param | Required? | Description | type |
---|---|---|---|
amount | Yes | Amount is the cost involved in purchasing airtime | Integer |
phone | Yes | Phone number should be a means to how airtime is sent. (Start with country code e.g +234) | String |
network | Yes | Network is an integer 1 - 9, that covers MTN, Airtel, etc.) | Integer |
beneficiary | No | Set Beneficiary check (1 = true and 0 = false) | Boolean |
beneficiary_name | No | Set Beneficiary name where beneficiary is true (e.g John Doe) | String |
API Object
{
"status": 200,
"data": {
"error": false,
"message": "Airtime purchase successful! You earned β¦0.2",
"amount": "10"
}
}
curl -L -X POST '{{baseurl}}/sandbox/index/services/bills/airtime' \
-H 'Content-Type: application/json' \
-H 'Authorization: SECRET_KEY'
-H 'Appid: appid'