📱 Airtime Purchase (VTU)

Send instant airtime top-ups to Nigerian mobile numbers programmatically through HeedPay. Ensure you have an active account and valid API credentials configured before making requests.

How Airtime Top-Up Works

The Airtime API processes real-time top-up requests against supported mobile network operators, deducts the transaction value from your wallet balance, and returns updated balance and status details.

1. Request Dispatch

Your backend sends a POST request containing the target network, recipient phone number, plan type, amount, and a unique request-id for idempotency and tracking.

2. Instant Fulfillment & Balance Update

Once processed, the recipient receives airtime immediately and the response returns your previous balance (oldbal), updated balance (newbal), and transaction status.

Integration Endpoint

Send a POST request with a JSON payload to vend airtime.

POST https://heedpay.com.ng/api/airtime/

Required Request Headers

Header Key Value Example
Authorization heedpay9g4efbt45hg0d553f297b703fb510dd46e3e5cc
Content-Type application/json
Accept application/json

Request Body Parameters

Field Type Description
network integer Network ID code (e.g., 1 for MTN).
phone string 11-digit recipient phone number (e.g., 08012345678).
plan_type string Airtime channel type (e.g., VTU).
bypass boolean Bypass validation/restriction flag (true or false).
request-id string Unique transaction reference (e.g., AIRTIME|123245bdcds).
amount string Airtime amount in Naira (e.g., "100").

JSON Request Body

CONTENT-TYPE: APPLICATION/JSON
{ "network": 1, "phone": "08012345678", "plan_type": "VTU", "bypass": true, "request-id": "AIRTIME|123245bdcds", "amount": "100" }

Expected Success Response

HTTP STATUS: 200 OK
{ "status": "success", "network": "mtn", "plan_type": "VTU", "request-id": "AIRTIME_123444", "Amount": 300, "oldbal": 500, "newbal": 200, "message": "Airtime purchase of MTN VTU ₦100.00 to 09020971597." }

Documentation last updated recently