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

2 Request Rewards intent ID

Action

Using the Redemption intent access token you received in the previous call, proceed to make a Redemption intent call to receive a subscription ID using the endpoint and values below.


Method POST
Endpoint https://api.nedbank.co.za/apimarket/sandbox/open-banking/v1/subscriptions
Request
Headers
Header Value Description
Content-Type application/json The data type being sent to the endpoint.
x-fapi-financial-id OB/2017/001 Financial ID.
Authorization Bearer <ACCESS_TOKEN> The access token you received from the previous call. Replace <ACCESS_TOKEN> with the access token you received.
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
                            
{
    "Data": {  
        "Permissions":["Redemptions"],
        "Initiation": {
        "RewardsAccountId": "REPLACE WITH REWARDSACCOUNTID IN GET REWARDS ACCOUNTS/BALANCE CALL",
        "InstructionIdentification": "REPLACE WITH RANDOM UNIQUE STRING",
        "EndToEndIdentification": "REPLACE WITH RANDOM UNIQUE STRING",
        "InstructedAmount": {
            "Amount": REPLACE WITH REDEEM AMOUNT,
            "Code": "APIMP1"
        },
        "RedemptionInformation": {
            "SupplierCode": "APIM",
            "SupplierName": "APIM",
            "Reference": "APIM Top UP - 001",
            "Unstructured": "Internal ops code 5120101"
         }
       }
    }
}
                            
                            
Response JSON
                        
{
    "Data": {
        "subscription_id": "09016d12-3d05-4416-96e1-4bf9c334818c",
        "Status": "AwaitingAuthorisation",
        "CreationDateTime": "2020-11-06T05:02:34.097Z",
        "Permissions": [
            "Redemptions"
        ],
        "Initiation": {
            "RewardsAccountId": "951611002383",
            "InstructionIdentification": "7LVERCFQW06U5Y618156314341412334",
            "EndToEndIdentification": "1234CFQW06U5Y618156314341412334",
            "InstructedAmount": {
                "Amount": 1,
                "Code": "APIMP1"
            },
            "RedemptionInformation": {
                "SupplierCode": "APIM",
                "SupplierName": "APIM",
                "Reference": "APIM Top UP - 001",
                "Unstructured": "Internal ops code 5120101"
            }
        }
    },
    "Links": {
        "self": "http://localhost:3000/api/open-banking/v1/subscriptions/09016d12-3d05-4416-96e1-4bf9c334818c"
    },
    "Meta": {
        "total-pages": 1
    }
}