Purchase Data Bundle
This endpoint allows you to get free cakes.
POST https://payments.baxipay.com.ng/api/baxipay/services/databundle/request
Parameters
Header
Baxi-date string Current date in RFC format
Authorization string See authentication page
Body
agentReference string This is a unique identification number generated by the integrator to
identify this transaction.
agentId string This is the unique identification number given to the integrator.
datacode string This is the "datacode" value of the selected bundle from the
"Retrieve Provider Bundles" request.
service_type string This can be any "service_type" from the "Data Bundle Providers"
request. This can be (mtn, airtel, glo, etc.)
amount number This is the "price" value of the selected bundle from the
"Retrieve Provider Bundles" request.
phone string This is the phone number on which the data bundle will be loaded.
package string This is only compulsory for SPECTRANET. This is based on the data
retrieved from the bundles package property of the plan. Can be any of
"RENEW", "CHANGE_IMMEDIATE", "CHANGE_AFTER_EXPIRY".
Responses
-
200 status: The success status means the transaction is successful.
message: Just a description of transaction status. data: has an object property. statuscode: "0" means the transaction is successful. transactionStatus: Response from the service provider. transactionReference: This is the transaction reference generated by our B2B platform. This is the transaction reference you need to do a re-query of the said transaction. tranasactionMessage: successful message response.
"status": "success",
"message": "Successful",
"code": 200,
"data": {
"statusCode": "0",
"transactionStatus": "success",
"transactionReference": 2,
"transactionMessage": "Data bundle successful on 07035361770"
}
}
Updated about 1 month ago