Airtime and Data Vending
Vend data bundles via a sub account
Changed onDeprecated. This endpoint is deprecated and will be removed in a future release. Use POST /v2/bill/data/{subAccountId} instead.
post/v1/bill/data/{subAccountId}
Request
- Base URLhttps://api.nomba.com
- URLhttps://api.nomba.com/v1/bill/data/{subAccountId}
- AuthHTTP bearer
Path parameters
subAccountIdstring uuid required
Example:890022ce-bae0-45c1-9b9d-ee7872e6ca27
The sub accountId via which data bundle is to be vended
Headers
accountIdstring uuid required
Example:890022ce-bae0-45c1-9b9d-ee7872e6ca27
The parent accountId of the business this sub account belongs to
Request body
Example request
{
"productId": "mtn47",
"phoneNumber": "08055441122",
"network": "GLO",
"merchantTxRef": "3bvwhibh38220dsjakTwvb",
"senderName": "John Doe"
}Response
OK - your request was successful.
Example response
{
"code": "00",
"description": "Success",
"data": {
"amount": 200,
"productId": "mtn47",
"plan": "3.5GB Daily Plan",
"timeCreated": "2023-09-04T07:09:06.900Z",
"type": "topup",
"meta": {
"merchantTxRef": "test1116",
"rrn": "240626232937"
},
"status": "SUCCESS",
"id": "API-DATA-AAA1A-36dc6c70-5cf2-4592-93be-9bccc23df7f5"
}
}Changes
- info
endpoint added
- info