This endpoint would allow you to purchase airtime bill with Pandascrow.

[POST] {{baseurl}}/v1/index/services/bills/airtime

Bill Payments

To buy airtime, you'll need to pass in the following parameters userID, amount, phone, and network.

Param

Required?

Description

type

userID

Yes

Provide userID a unique id issue to each registered user

Integer

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}}/v1/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!