Skip to main content
Question

sandbox API testing , Bad request error

  • 21 September 2023
  • 5 replies
  • 71 views

POST https://sandbox.momodeveloper.mtn.com/disbursement/v1_0/bc-authorize HTTP/1.1
Host: sandbox.momodeveloper.mtn.com
Authorization: YjE4Y2VlZTYtMDBjMS00ZmQzLWJhOTUtOGM1ZDFlMGE1ZjJkOmIyY2MwNzVkMDZjZDQ2YjY5MDM5ZTk5MjE2ZWFhOTA3
X-Target-Environment: sandbox
X-Callback-Url: string
Content-Type: application/x-www-form-urlencoded
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••

login_hint=ID:{msisdn}/MSISDN&scope={scope}&access_type={online/offline}
 

Hello David, its is clear from the code you have shared that you are missing some requirements.
Forexample, the Authorization is supposed to have the word Basic at the start, there after the Base64 encoded string.
 


Kindly vote answered if true, so other developers with the same inquiry can easily find the answer.


Please share a similar request with complete request, so that i may test then respond


Please share a similar request with complete request, so that i may test then respond

 


I found the answer in the link below, on post man

https://web.postman.co/workspace/My-Workspace~db6063c4-b8b7-4396-8de1-0a0c3a5633b8/collection/16404369-14f46d82-4701-45d4-8666-5928591c1666


Reply