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

4 Request Token (heavy/submission)

Action

To use the code returned with the redirect uri and get a heavy/submission access token for the Rewards Redemption call, make use of the endpoint and values found below.


Method POST
Endpoint https://api.nedbank.co.za/apimarket/sandbox/nboauth/oauth20/token
Request
Headers
Header Value Description
Accept application/json The data type the endpoint will accept
Content-Type application/x-www-form-urlencoded The data type being sent to the endpoint

Body x-www-form-urlencoded
Field Value Description
client_id <YOUR CLIENT CID> The client id you received when creating the App in the portal
client_secret <YOUR CLIENT SECRET> The client secret you received when creating the App in the portal
redirect_uri <REDIRECT URI> Replace with the redirect uri you used in the previous call
code <CODE> Replace with the code you received from the previous call
grant_type authorization_code the grant type to be used
Response JSON
                            
{
    "access_token": "AFYLGI2gs30aCU4rnalg",
    "x-nb-subscription-id": "a64f56ab-1f72-4c8a-b572-d19e16ee50a8",
    "refresh_token": "EkvHpaauYTHC0LetggzFvVZ8Tl5Q6EK7eeBPEMlf",
    "scope": "openid redemptions",
    "id_token": "eyJraWQiOiJqbTlRZEpMZ2w3UFNGRTVrdUxIblBibWVzdEdRcFRDNTNQX2Z1NEstWTJrIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiU212MUxrNmNUemswREQ3d3lUYWozQSIsImlhdCI6MTUzNTQ1NTk0OCwiaXNzIjoiaHR0cHM6Ly9uZWRiYW5rLmNvLnphIiwiYXRfaGFzaCI6ImkyVUNhSFlUejh0RmtraWowdm5Ed2ciLCJzdWIiOiI0ODI3NTQyODI3IiwiZXhwIjoxNTM1NDU5NTQ4LCJhdWQiOiI4YzE2MTEzNi03OTg4LTQ2MzEtODQxYy05NWEyNDgxNTE0OTEifQ.Ip1JbuMtz-_zCODMQ52otoUK2LQrSV__270U43mZ8nE1wbO7GhPnbdZsX9Pc4KZBStgWm07DmqABAt2lY3hi1Aseq1OYW-lnk0T8qF2sX27rv2aPzb8lYLTejvgtS86c1uLKSXl6bt_F6gofE4J7LlOA7TKa3oR1g9caUpWyP-6xwj5-J_AFuYM7BCEXfeyiy_L-cw4uoEhL0YAI-K9iCXLqEZ21FpbxhnkNIP7z6JDLQ1i_n0c8fOfQuItUuQu_qbNdt7uRH9xdlo4mt5RttZ07_HIvlpMycaiEJkvD1Cy9obTRiUJaA71ydWoGwEQ2ItRlDrSm3YjvN-mVtVlMug",
    "intentid": "a64f56ab-1f72-4c8a-b572-d19e16ee50a8",
    "token_type": "bearer",
    "expires_in": 3599
}