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

4 Purchase Voucher

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 Digital Vouchers.

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.

Method POST
Endpoint https://b2b-api.nedbank.co.za/apimarket/b2b-sb/nb-vas/vouchers/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": "b7610988-de0e-4810-02d0-08d9250f5d47",
  "Amount": 500,
  "Quantity": 1,
  "Reference": "APIM"
}


                                
                                
Response JSON

Voucher with Serial Number. Few Vouchers do provide Serial Number as below :

                                                 
{
    "RequestID": "c4e3aae2-bb48-49fc-be65-d993b9aeb364",
    "OrderID": "34b1d628-8805-4510-6a93-08d92ede6e5c",
    "ReferenceNumber": "20210616/Nedbank/489133779104",
    "OrderStatus": "SUCCESS",
    "OrderRequestedDate": "2021-06-16",
    "Tokens": [
        {
            "Key": "Vendor Reference Number",
            "Value": "1113380279610620"
        },
        {
            "Key": "Serial Number",
            "Value": "20210616175456291275"
        }
    ],
    "Result": {
        "Status": "SUCCESS",
        "Code": "R000",
        "Description": "SUCCESS"
    }
}                         
                        

Voucher with no Serial Nuumber :

                                                 
{
    "RequestID": "c4e3aae2-bb48-49fc-be65-d993b9aeb364",
    "OrderID": "34b1d628-8805-4510-6a93-08d92ede6e5c",
    "ReferenceNumber": "20210616/Nedbank/489133779104",
    "OrderStatus": "SUCCESS",
    "OrderRequestedDate": "2021-06-16",
    "Tokens": [
        {
            "Key": "Vendor Reference Number",
            "Value": "1113380279610620"
        }
    ],
    "Result": {
        "Status": "SUCCESS",
        "Code": "R000",
        "Description": "SUCCESS"
    }
}