Sorry, you need to enable JavaScript to visit this website.

3 Purchase Prepaid

Action

Using your clientID and clientSecret (which you obtained when you created an application), you will make a Post request using the endpoint and values below to purchase Prepaid Airtime and or Data.

Rules

1.For BillingType as Variable, the Amount entered by user must be in the range of MinAmount and MaxAmount that is received in the Get Catalogue step.
2.For BillingType as Fixed, the Amount entered by user must match with the Price that is received in the Get Catalogue step.
3.The length of the Recipient field must be between 1-100 characters and also allows alphanumeric characters.
4.Cellphone number is numeric and has a minimum of 10 digits and no spaces between the digits.
5.Number can be 11 digits with country code "27" included.
6.Number can be maximum 12 digits if "+" and country code "27" is included in the number provided.

Method POST
Endpoint https://b2b-api.nedbank.co.za/apimarket/b2b-sb/nb-vas/prepaid/purchase
Request
Headers
Header Value Description
x-ibm-client-id <YOUR CLIENT ID> The client ID you received when creating the app on the portal.
x-ibm-client-secret <YOUR CLIENT SECRET> The client secret you received when creating the app on the portal.

Body JSON
                                
{
  "ProductID": "1ce7081d-c681-4811-19e6-08d7f5a6abf1",
  "Amount": 40,
  "Quantity": 1,
  "Reference": "Test",
  "MobileNumber":"0622211230"
}


                                
                                
Response JSON
                            
{
    "RequestID": "834fd7ba-9bf7-4ff5-83c3-75f75816746e",
    "OrderID": "c0289d54-6c3f-4099-0aa9-08d92bbb4a11",
    "ReferenceNumber": "20210616/Nedbank/489133779101",
    "OrderStatus": "SUCCESS",
    "OrderRequestedDate": "2021-06-16",
    "Result": {
        "Status": "SUCCESS",
        "Code": "R000",
        "Description": "SUCCESS",
        "Subcode": ""
    }
}