Purchase Data
Vending
Purchase Data
Purchase data bundle for a phone number
POST
Purchase Data
Overview
Purchase a data bundle for any Nigerian phone number using a specific product code. The data will be credited instantly to the recipient’s phone.Request Body
Send an array with one or more data purchases.Response Fields
string
Reference to store for reconciliation and support.
object
Details of the accepted batch.
Status Codes
Purchase Flow
- Get Available Plans: First, call the List Data Plans endpoint to see available data plans for a specific network
- Select Product Code: Choose the desired data plan and note its
ProductCode - Purchase Data: Submit the selected plan details exactly as returned by the catalog
Notes
- Data is credited instantly to the recipient’s phone
- Phone numbers are accepted as
080...,23480..., or80...and normalized to the 11-digit local format; non-Nigerian mobile numbers are rejected before any charge - Product codes and voucher codes are case-sensitive
- Transaction processing may take a few seconds
- Ensure the phone number is on the correct network for the data plan
- Store the
requestReferencereturned by the API for reconciliation and support
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Minimum array length:
1Recipient's phone number. Accepted as 08012345678, 2348012345678, or 8012345678 — normalized to the 11-digit local format.
Example:
"08107176819"
Product code returned by the Data catalog
Example:
"MTN_DATA_PRODUCT_CODE"
Target network returned by the Data catalog
Example:
"MTN"
Voucher code returned by the Data catalog
Example:
"MTN_DATA_VOUCHER_CODE"
Amount returned by the Data catalog
Example:
1000
Data value returned by the Data catalog, when provided
Example:
1024