Skip to main content
Solved

400 Bad request on CreateAccessToken

  • March 2, 2024
  • 4 replies
  • 184 views

Hi. I am trying to create an acess token on the sandbox environment but I am experiencing a 400 error. but I sent the request on postman and it went succesfully but failed on the momo developer sandbox and there is no additional info as to why it fails

 

Best answer by crankluga

On the home page of the MoMo developer community,
Visit the HowToVideos Section for guidence. Your answers are there.

4 replies

  • Active
  • 62 replies
  • March 4, 2024

1→  Be sure you   are using  the CollctionsEndpoint and  not the collections widget. 
2→ Use another Auth but not OAuth2Token


  • Author
  • Active
  • 6 replies
  • March 4, 2024

1→  Be sure you   are using  the CollctionsEndpoint and  not the collections widget. 
2→ Use another Auth but not OAuth2Token

I am actually using the Collection Endpoint and I am creating an access token not OAuth token. How do I get authorization to use for he header? I have base64 encoded the X-Reference-Id and Api key but it doesn’t work


  • Active
  • 62 replies
  • Answer
  • March 4, 2024

On the home page of the MoMo developer community,
Visit the HowToVideos Section for guidence. Your answers are there.


  • Author
  • Active
  • 6 replies
  • March 5, 2024

On the home page of the MoMo developer community,
Visit the HowToVideos Section for guidence. Your answers are there.

Solved my problem. I didn’t put Basic in front the token in the authorization header. I got my solution by watching the video. Thank you