Purchase Data Bundle

post
Purchase a Data Bundle

https://test.platform.baxi.com.ng​/services​/databundle​/request
This endpoint allows you to get free cakes.
Request
Response
Request
Headers
Baxi-date
required
string
Current date in RFC format
Authorization
required
string
See the authentication page
Body Parameters
agentReference
required
string
This is a unique identification number generated by the integrator to identify this transaction.
agentId
required
string
This is the unique identification number given to the integrator.
datacode
required
string
This is the "datacode" value of the selected bundle from the "Retrieve Provider Bundles" request.
service_type
required
string
This can be any of the "service_type" from the "Data Bundle Providers" request. This can be (mtn, airtel, glo, 9mobile etc.)
amount
required
number
This is the "price" value of the selected bundle from the "Retrieve Provider Bundles" request
phone
required
string
This is the phone number on which the data bundle will be loaded.
Response
200: OK
status: The success status means the transaction is successful. message: just a description of the transaction status data: has an object value. statusCode: "0" means the transaction is successful. transactionStatus: Response from the airtime provider. transactionReference: This is the transaction reference generated by our B2B plaform. This is the transaction reference you need to be able to do a re-query of the said transaction. transactionMessage: successful message response.
"status": "success",
"message": "Successful",
"code": 200,
"data": {
"statusCode": "0",
"transactionStatus": "success",
"transactionReference": 2,
"transactionMessage": "Data bundle successful on 07035361770"
}
}