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.

ParamRequired?Descriptiontype
amountYesAmount is the cost involved in purchasing airtimeInteger
phoneYesPhone number should be a means to how airtime is sent. (Start with country code e.g +234)String
networkYesNetwork is an integer 1 - 9, that covers MTN, Airtel, etc.)Integer
beneficiaryNoSet Beneficiary check (1 = true and 0 = false)Boolean
beneficiary_nameNoSet 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'
Language
Click Try It! to start a request and see the response here!