Skip to main content

Buy Data Bundle via the parent account

To successfully buy a data bundle using our endpoints, it is necessary to undergo the following steps:
  1. Fetch available data plans — this returns a list of available data plans, each with a productId.
  2. Buy the data bundle, passing the productId of the plan you want in the purchase request. productId is required.
Purchasing by amount alone is deprecated and only still works for merchants already integrated against it. All new integrations must select a plan from step 1 and pass its productId — this is the only reliable way to get the exact bundle you intended, since more than one plan on the same network can share the same price.

POST /v2/bill/data

Request body

string
required
The product ID of the data plan to purchase (obtained from fetch data plans endpoint)
string
required
Phone number of the user who is to receive the data bundle
string
required
Network (e.g. MTN, AIRTEL, GLO, 9MOBILE, etc)
string
required
Merchant Transaction Reference (a unique reference to identify this transaction on your system)
string
required
The name of the person to be attached to this transaction

Response body

string
required
Response code
string
required
Response description
object