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?
Authorisation
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
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/899a2fbb-33bf-4bbe-b5d5-43b364786639.png)
Example: Get consumer information with consent
The image below shows you how to accomplish the use case
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/bfeaddb8-8177-4a94-8bf1-fded404cef08.png)
There is even and image showing you how it will flow
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/b8335b93-b86b-4247-b38a-f269d7886073.png)
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?
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/e4a3bfb7-21c0-4d98-b675-b48dcbee00c3.png)
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/d3a5a2e8-3be7-40ad-a7ad-95d2c6d81e1a.png)
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
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/b00a1547-8fbd-4dc0-a9c6-316ff5b7f9b4.png)
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:
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/c48261f3-2c17-46b2-a61d-63621c17062c.png)
Please could you provide an exemple of each placeholder? I’m confused.
can the SCOPE be anything?
This is what I entered on Postman
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/5f08bdc3-98ca-4dc9-b5c8-c42276587164.png)
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:
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/12cc5f6b-5b7f-40f2-838e-7cee58a1f11c.png)
Unfortunately I still have a Bad-Request
I can't see the cause of the problem.
This is the Authorisation:
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/61aead0b-ea66-4e6d-8046-eac8ee06b2cd.png)
This is my Payload:
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/336f4e4b-c10c-4212-aa96-c45ced6d6d86.png)
This are the header parameters.
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/f6e848c2-ee7e-40b0-b391-13e0975b3038.png)
And this is the response:
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/5d1ee15c-fd11-41c2-8d33-6ea3124b0790.png)
i think because you are using basic authentication, here is my request:
![](https://uploads-eu-west-1.insided.com/mtngroup-en/attachment/25924459-7c8b-4a4b-b04b-f46c24023dee.png)
Thx
It works.
Thx
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.