Good morning team, I hope you are doing great. I am having some concerns if you can help me:
What is the role of bc-authorize and CreateOauth2Token ? (I didn’t understand how it happens in real time, or what is its use).
what is the difference between CreateOauth2Token and CreateAccessToken?
Why do I need bc-authorize and CreateOauth2Token if I can make my requests only with CreateAccessToken?
To understand the flow of any of these API’s go to the use cases and select what you want to do it will list out your flow
Example: RequesttoPay
The image below shows you how to accomplish the use case
Example: Get consumer information with consent
The image below shows you how to accomplish the use case
There is even and image showing you how it will flow
So for anything check the Use Cases and follow the order.
https://momodeveloper.mtn.com/api-documentation/use-cases
Thank you so much Franklin.
But there are some cases that don’t exist. Are they under development?
Wellcome Malak, which use case dont exist ?
Are you talking about Select API, that’s an instruction to select an API from the drop down.
or
are you talking about Merchant payment with consumer consent the use case is described in the image below
Yes exactly I am talking about the one in the image, where is the corresponding endpoint?
Yap I only see the first 3 End points.
- CreateAccessToken: https://sandbox.momodeveloper.mtn.com/collection/token/
- bc-authorize: https://sandbox.momodeveloper.mtn.com/collection/v1_0/bc-authorize
- CreateOauth2Token: https://sandbox.momodeveloper.mtn.com/collection/oauth2/token/
- MerchantTransferWithConsent: ???
MerchantTransferWithConsent does not appear to be part of the sandbox server, I see the endpoint in the image. but nothing in the sandbox. I guess it is live server only. maybe some one from the Momo team can confirm
I wish so
thank you anyway
Hi
I’m trying to make a POST to
According to the documentation, the payload should look like this:
Please could you provide an exemple of each placeholder? I’m confused.
can the SCOPE be anything?
This is what I entered on Postman
Thanks for your support
Hi
In my situation, I find success when the scope is “profile”, rather than anything else.
Example:
login_hint=ID:46733123453/MSISDN&scope=profile&access_type=online
Example:
Unfortunately I still have a Bad-Request
I can't see the cause of the problem.
This is the Authorisation:
This is my Payload:
This are the header parameters.
And this is the response:
i think because you are using basic authentication, here is my request:
Thx
It works.
Thx
I am trying the bc_authorize endpoint on disbursement, I have primarily all the required headers and body but I keep getting a 401 authorized response in the api website (sandbox) and also Postman. what could be the reason?
I fixed it, the issue was because the token had expired and had to generate a new token.
now I am trying to use the CreateAuth2Token endpoing. I have supplied the necessary headers, along with the auth_req_id I recieved from the bc_authorize but I am getting a 400 status error without any message.
Yap I only see the first 3 End points.
- CreateAccessToken: https://sandbox.momodeveloper.mtn.com/collection/token/
- bc-authorize: https://sandbox.momodeveloper.mtn.com/collection/v1_0/bc-authorize
- CreateOauth2Token: https://sandbox.momodeveloper.mtn.com/collection/oauth2/token/
- MerchantTransferWithConsent: ???
MerchantTransferWithConsent does not appear to be part of the sandbox server, I see the endpoint in the image. but nothing in the sandbox. I guess it is live server only. maybe some one from the Momo team can confirm
There was no response to this question, indeed where is the endpoint for this, if it is not available on sandbox, I am sure there should be an endpoint for production.
MerchantTransferWithConsent: ???
Reply
Sign into the MoMo Developer Community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.