BB Data Purchase

This endpoint enables the purchase of data and descriptions, both of which are available for use with their inherent descriptions.

Request

{{baseUrl}}/data/purchase

Headers

ParameterTypeDescriptionMandatory
AuthorizationStringpublic secret key e.g dc_test_1T1eSavlZxy02OT3OWlvbxK4GRequired

Body Parameters

MandatoryTypeDescriptionMandatory
datacodeStringYou can subscribe to any data bundle via the following channels :USSD: dialing 1311# or *904# and select your prefered data plan.Required
phone_numberStringA valid phone numberRequired
service_typeStringThis can be (mtn,airtel,glo etc.)Required
amountStringThis is the price value of the selected bundleRequired
packageStringA standard for the type of data to purchaseOptional

Response Sample

{
    "status": "success",
    "message": "Successful",
    "code": 200,
    "data": {
        "statusCode": "0",
        "transactionStatus": "success",
        "transactionReference": 35814077,
        "transactionMessage": "Data bundle successful on 08139021881",
        "baxiReference": 1512899,
        "provider_message": "SendOk",
        "extraData": {
            "balance": "1000",
            "exchangeReference": "282505520",
            "responseMessage": "SendOk",
            "status": "ACCEPTED",
            "statusCode": "0",
            "responseCode": "0"
        }
    }
}