Skip to main content
Question

am failing to create the access token

  • Apr 30, 2024 7:38 AM UTC
  • 3 replies
  • 193 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

3 replies

  • Community Manager
  • Apr 30, 2024 6:04 PM UTC

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)”


  • New Member
  • May 30, 2025 12:47 AM UTC

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)”

Is ApiUser = username:password ?


  • Community Manager
  • Jun 21, 2025 5:14 AM UTC

ApiUser=username,  ApiKey=Password, but this does not mean the email or password you use to login into the portal. These are credential values generated using the User Provisioning API on sandbox and from the Mobile Money Partner Portal on production.