Skip to main content
Solved

CreateOauth2Token request is returning 400

  • October 25, 2024
  • 2 replies
  • 98 views

I am trying to get Oauth2 token after successfully issuing a bc_authorize request and getting the auth_req_id.

now trying to get token to the request by making a post to {{base_url}}/disbursement/oauth2/token/ and I keep getting 400 status error with no message, it is difficult to know exactly what I am doing wrong, I have attached screenshots of my Postman screen.

~
I appreciate the assistance

Best answer by allan.ddamulira

Oauth2 is used when interacting the KYC API. 

This is effectively demonstrated through the MoMo OpenAPI postman collection. Fork the collection and run   in Postman. Feel free to reach out if you encounter any difficulties.

MoMo OpenAPI Postman collection

 

2 replies

Forum|alt.badge.img
  • Community Manager
  • 46 replies
  • Answer
  • October 25, 2024

Oauth2 is used when interacting the KYC API. 

This is effectively demonstrated through the MoMo OpenAPI postman collection. Fork the collection and run   in Postman. Feel free to reach out if you encounter any difficulties.

MoMo OpenAPI Postman collection

 


  • Author
  • New Member
  • 3 replies
  • October 25, 2024

Oauth2 is used when interacting the KYC API. 

This is effectively demonstrated through the MoMo OpenAPI postman collection. Fork the collection and run   in Postman. Feel free to reach out if you encounter any difficulties.

MoMo OpenAPI Postman collection

 

Thanks alot allan, I am now getting the Oauth2 token, I guess my next question will be the endpoints that are not available on api sandbox page and the postman collection.
I am talking about endpoints like:
MerchantTransferWithConsent

and all endpoints that requires Oauth2 token.

thanks