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

4 Get Accounts authorisation

Action

Use the SCARedirectURL that you received in the previous (intent) call to redirect the user to the authorisation flow. Once authorisation is complete, you will receive an auth code if the authorisation was successful or an error code if there was an issue with authorisation. The authorisation code can then be used to get a heavy/submission token.

Test user IDs
username password Description
apimtestuser4 IamN3db@nk123 Test Nedbank ID credentials
Response code

The process will redirect the user to the url provided in the 'redirect_uri' parameter. An authorization code will be attached to the redirect url, as in the sample below. Let’s assume your redirect_url was 'https://yourapp.co.za/handle/auth/':

                        
            https://yourapp.co.za/handle/auth/?code=xxxxxxxxxxxxxxxxxxxxxxxxxxxx            
                        
                        
If there was an error during the authorisation process, you will get one of the following error messages
ErrorDescription
INTENT_NOT_FOUNDThe provided intentid was not found. Please make sure the itype you are using is correct for the API you are trying to call.
ITYPE_MISSING_OR_INVALIDThe provided itype param is either missing or has an invalid value.
INTENT_ID_MISSINGThe intentid parameter is missing from the request.
INTENT_HAS_BEEN_USED_BEFOREThe intentid that was provided has been used before.
INTENT_HAS_EXPIREDThe intentid provided has expired.
INTENT_USED_OR_EXPIREDThe intentid provided has been used before or it has expired.
BACK_BUTTON_NOT_ALLOWEDThe user clicked on the back button in the authorisation screen. This action is not allowed. The user should click the decline button if they do not wish to authorise the transaction.
RIGHT_CLICK_NOT_ALLOWEDThe user right clicked on the authorisation screen. This action is not allowed.
USER_DECLINEDThe user has declined the transaction.
APPROVEIT_DECLINED_BY_USERThe user has declined the ApproveIt request.
APPROVEIT_TIMED_OUTThe ApproveIt request has timed out. This may be because the user did not respond to the ApproveIt request.
TOO_MANY_INVALID_OTP_TRIESThe user has entered too many incorrect ApproveIt OTPs.
SESSION_INVALIDATED_DUE_TO_USER_ACTIONThe user's client returned invalid data to the authorisation server.
BACKEND_ERRORGetting this error means that something went wrong on the authorisation server. Please contact us with your intentid and clientid so we can help.

The error will be returned to your redirect uri in this format:

                                
                                    https://yourapp.co.za/handle/auth/?error=access_denied&error_description=ITYPE_MISSING_OR_INVALID