Question

am failing to create the access token

  • 30 April 2024
  • 1 reply
  • 17 views

i dont know when i try to create the access token in the sandbox i get 401 response invalid client .any one help me


1 reply

Userlevel 1

Hello,

You need to ensure you are sending the “Ocp-Apim-Subscription-Key” header. Also please note that you need to be sure you are sending the right subscription key for the right product e.g collection or disbursement based on the API being called. 

Lastly verify that you are passing the “Authorization” header with details “Authorization: Basic ResultOfBase64Encode(ApiUser:ApiKey)”

Reply