Connect. Share. Learn

Find answers, support, and inspiration from other MoMo API users.

You're not signed in. Please sign-in to report an issue or post a comment.

Go / Golang API Client for the MTN Momo API

https://github.com/NdoleStudio/mtnmomo-go

Hidden
Sun, 28 Nov 2021 10:08:07 GMT
Proposed

401 unauthorized

pls how can I get bc-authorize 0auth keys .......... .......... ............ . . jwt oauth is not working .. still get 401 unauthorized

Hidden
Sun, 21 Nov 2021 15:17:56 GMT
Proposed

Invallied subscription key

I've provided sub-keys found in profile ...... but still get 404 access denied ..... ____________________________________________

Hidden
Thu, 18 Nov 2021 09:04:42 GMT
Proposed

I'm getting a 404 on POST transfer

When POST requesting https://sandbox.momodeveloper.mtn.com/disbursement/v1_0/transfer from my app i'm getting a 404 error with "Resource not found" message

Hidden
Mon, 14 Jun 2021 09:12:21 GMT
Proposed

Scope parameters

Dear Team i want to know in collection API what scope i need to ender for bc-authorization

Hidden
Sat, 08 May 2021 06:26:12 GMT
Proposed

How can we get subscription key from web portal or by code?

Hi $headers = array( // Request headers 'Authorization' => '', 'X-Target-Environment' => '', 'Content-Type' => 'application/x-www-form-urlencoded', 'Ocp-Apim-Subscription-Key' => '{subscription key}', ); How can we get subscription key from web portal or by code? If web portal than can you please show me or send link? If by code can you please send us code or api link?

Hidden
Sat, 13 Mar 2021 14:04:56 GMT
Proposed

/bc-authorize - POST

POST https://sandbox.momodeveloper.mtn.com/disbursement/v1_0/bc-authorize HTTP/1.1 Host: sandbox.momodeveloper.mtn.com Authorization: Basic NzRkNTA5OWQtOWM3OS00ZTQxLWE4ZjgtZjk5ODY3OTM0ZjVlOmE1YjgyN2IzZmIzYTRiMGY4MDJhM2U4MWE0Yzc4ODlm X-Target-Environment: sandbox Content-Type: application/x-www-form-urlencoded Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• login_hint=ID:{msisdn}/MSISDN&scope={scope}&access_type={online/offline} Response status 400 Bad Request Response latency 173 ms Response content Request-Context: appId=cid-v1:e996501c-e721-4ac1-97ff-dc6887b85e8c Date: Thu, 25 Feb 2021 09:41:54 GMT Content-Length: 0 IS THERE ANYTHING AM MISSING OR NOT INCLUDING I HAVE BEEN RECIEVING BAD REQUESTS

Hidden
Thu, 25 Feb 2021 09:43:09 GMT
Proposed

Phone numbers provided on Testing Page aren't behaving like they should

I'm currently testing the /requesttopay endpoint and It seems all phone numbers provided on the testing page either fail or are stuck in a pending state. The testing page I'm reffering to is located here https://momodeveloper.mtn.com/api-documentation/testing/.

Hidden
Wed, 20 Jan 2021 00:28:03 GMT
Proposed

Quota Exceeded

I am geeting error in /collection/token/ APi Quota Exceeded

Hidden
Thu, 24 Dec 2020 13:18:02 GMT
Proposed

Submitted my app but no go live

I submitted my app week ago but i have not yet hear about anything from support. please solve the issue, i am being waiting from 2 weeks. thank you

Hidden
Tue, 22 Dec 2020 19:00:26 GMT
Proposed

Postman Collection

I just figured out that Widget Demo is not working in the Sandbox. Looks like invoices are invalid. Also if you want to try other APIs, Collection, Disbursments in Postman i made a collection which u can download here https://www.clickon.ch/momopay-postman, i have also described several issues with MoMoApi under "Demystifying MoMoPay API Sandbox". Maybe u can fix these at some point! Thanks! Bless!

Hidden
Thu, 29 Oct 2020 10:58:09 GMT
Proposed

500 Internal Server Error on creating API user

I have been trying to create an API User from India using the API https://sandbox.momodeveloper.mtn.com/v1_0/apiuser but I'm always getting an Internal server error. This is the response I got in both Postman and in the Api sandbox (try it) environment. { "statusCode": 500, "message": "Internal server error", "activityId": "ccae632f-5bf2-4483-aaca-8956bcf1a2ad" } Is these APIs can only be accessed from certain locations? Please help me ASAP

Hidden
Fri, 09 Oct 2020 07:33:48 GMT
Proposed

unable to go live

Hello, I apply for Go Live since 15 days and I didn't received a response from your services.

Hidden
Tue, 06 Oct 2020 20:02:24 GMT
Proposed

API Sanbox -- callback not working ( /requesttopay )

When exactly the callback we pass in the headers [ X-Callback-Url ] gets called? I have tried different testing numbers. But the callback url that I provided is never called, even after hours.

Hidden
Tue, 25 Aug 2020 05:34:45 GMT
Proposed

Request to pay

Bad Request - Invalid URL HTTP Error 400. The request URL is invalid.

Hidden
Sun, 19 Jul 2020 20:36:56 GMT
Proposed

400 Bad Request error - requesttopay

I am getting "400 Bad Request" response yet I have filled everything correctly even the Bearer authorization, please validate for me what the issue might be. Below is the request I am sending: POST https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay HTTP/1.1 Host: sandbox.momodeveloper.mtn.com Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSMjU2In0.eyJjbGllbnRJZCI6ImEyZDBjODVkLWI4MzQtNGI3NC1hY2U1LWRiNjY5MTI1MTc3NyIsImV4cGlyZXMiOiIyMDIwLTA2LTE2VDA3OjA3OjAxLjA1NSIsInNlc3Npb25JZCI6IjYwMThhZjc5LTMwMDAtNGUwOC1iNjVkLTgzY2ZjNDVkZDBiNCJ9.DUqskHhUebDWy8DmVH4iiEsIpwtsB6KyhTBY-nk_QBLmGtQIqfAcJ-EcgtZ_2LtUHWaArHd2BulLXSatkLvT3O-Up348T8kTsLFYHHc5qo8_6XE-i33w9iCBgOpj4ynEoqlS0FRh7B27s4TCD72QNXyHT_C9N3Z-WsY4qjnOVYa75OOrkNUMNdd3vz99W2z4u3CwmpjGnYNogoKR8x1SIPHCFQBBgibIlODDGHrisD7jEIGMdehtGkwCdEPb3QSgG0zSzM3skrFd0H17wE7niL99xtT3qXcIdjnDSQEzp21PaM1G7X6ahW5DUy4xncD2a8sYR4-eAGxnLCjTvtJ-pg X-Callback-Url: http://*******.******.com/index.php?callback_action=1 X-Reference-Id: 045ffaca-5a9b-4298-a456-cb4cf355bb49 X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "10", "currency": "EUR", "externalId": "124467", "payer": { "partyIdType": "MSISDN", "partyId": "46733123453" }, "payerMessage": "Test", "payeeNote": "Test" }

Hidden
Tue, 16 Jun 2020 06:15:40 GMT
Proposed

Error 505 Internal Server Error

I have an an error 505 that cannot be found amongst common errors This arrived in trying to generate a token for disbursements b'{ "statusCode": 500, "message": "Internal server error", "activityId": "2c68016f-c5d0-40e8-82f7-0d4c2213db34" }'

Hidden
Mon, 08 Jun 2020 18:56:54 GMT
Proposed

Authorization header value??

When creating the access token, what do we pass as the value for the Authorization header?

Hidden
Sun, 24 May 2020 08:51:58 GMT
Proposed

creating a sandbox user fails with http status 500

im doing a request that looks sth like below, with a proper and active subscription key. however, the response status is always 500. tried with the primary and secondary subscription key. POST /v1_0/apiuser HTTP/1.1 Host: sandbox.momodeveloper.mtn.com X-Reference-Id: a191340a-8531-471a-afb5-1cea925b8da3 Ocp-Apim-Subscription-Key: 9999d9999c79999f9c9999ff41729999 {"providerCallbackHost":"mocky.io"}

Hidden
Sun, 17 May 2020 14:39:02 GMT
Proposed

Error Code 403: Forbidden

Getting {"code":"Forbidden","message":403} for every request, kindly assist!

Hidden
Mon, 16 Mar 2020 15:25:44 GMT
Proposed

EWP system Identifier

Please where do I find my EWP system Identifier

Hidden
Sat, 14 Mar 2020 10:49:59 GMT
Proposed

HTTPS certificate errors for collections widget

I have been trying to look at the collections widget in the sandbox. The following url has an invalid cert https://widget.northeurope.cloudapp.azure.com:9443/demo.html https://widget.northeurope.cloudapp.azure.com:9443 is also used from the javascript and so the demo breaks and we cannot try this in the Sandbox

Hidden
Wed, 11 Mar 2020 13:04:16 GMT
Proposed

Remittance/token

Getting no response while I was trying to generate the Token under Remittance Category from the url (https://momodeveloper.mtn.com/docs/services/remittance/operations/token-POST/console). When I clicked send button it loads and get disabled for few seconds and then gets back to normal state without getting any response message. I passed the below two parameters 1) Authorization ( Converted the UserId and ApiKey into base64 format) 2) Ocp-Apim-Subscription-Key (Obtained from Momo portal) Even I would like to know whether is there any character needed in between userId and ApiKey before converting into base64 format ?

Hidden
Tue, 10 Mar 2020 07:14:08 GMT
Proposed

remittance transfer not working

Hi, When I try to create a remittance transfer using EUR currency I'm getting a message Client error: `POST https://ericssonbasicapi2.azure-api.net/remittance/transfer` resulted in a `404 Resource Not Found` response: { "statusCode": 404, "message": "Resource not found" }

Hidden
Mon, 09 Mar 2020 10:28:28 GMT
Proposed

Clé d'abonnement introuvable

Il est dit dans la documentation de l'api que la clé d'abonnement est indispensable pour tous les appels d'API. Il est également spécifié que cette clé se trouve dans le profil de l'utilisateur ce qui n'est pas le cas pour moi. Que dois-je faire pour en obtenir une et passer la pharse des tests.

Hidden
Thu, 05 Mar 2020 14:07:13 GMT
Proposed

Process for an AIRTIME transfet

Hello guys, thanks for the great job you did on your API it is just beautiful. I wish to know how is it possible to do an AIRTIME transfer through your API. I went through it and could not see where it is. I need your aid as soon as possible please. Thanks Best regards

Hidden
Wed, 04 Mar 2020 14:49:06 GMT
Proposed

DotNet Client

Currently using this for a project. I built a dotnet client. Anyone building using dotnet can use this https://www.nuget.org/packages/MtnMobileMoney.DotNet.Client. Let me know if you encounter any issues.

Hidden
Mon, 02 Mar 2020 23:13:08 GMT
Proposed

Wordpress Installation

Hello, i need guidance on how to install the api in woocomerce wordpress

Hidden
Fri, 28 Feb 2020 23:22:50 GMT
Proposed

MTN MoMo PHP package (SDK)

Checkout this PHP package to wrap the Momo Api. let me know if you need help, post it on the github issues of the package. https://github.com/patricpoba/mtn-momo-api-php

Hidden
Tue, 25 Feb 2020 16:02:30 GMT
Proposed

INVALID_CALLBACK_URL_HOST

I provided a providerCallbackHost url of 'http://api2.ropaygh.com:2190/mtnpay_callback' in the apiuser section. When I make a request to the 'requesttopay' endpoint using the same url for the X-Callback-Url header, i get this error: {"message":"Callback URL does not match the configured value.","code":"INVALID_CALLBACK_URL_HOST"}. Please advice.

Hidden
Wed, 12 Feb 2020 16:43:40 GMT
Proposed

We can't able to access the API

We can't able to access the API - screenshot attached

Hidden
Tue, 04 Feb 2020 07:20:10 GMT
Proposed

Getting empty content when try to create api user

I have manage to create the api user response was 201,but the content is empty.Please help.

Hidden
Sat, 01 Feb 2020 14:23:10 GMT
Proposed

Sandbox User Provisioning

Getting the error below when self provisioning. What subscription key should be used in the call header since self provisioning is not listed under profile subscriptions { "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." }

Hidden
Fri, 31 Jan 2020 15:10:01 GMT
Proposed

GET-/v1_0/accountholder/{accountHolderIdType}/{accountHolderId}/active

why I am faceing bad request 404 when i want to get information below include api , i am include Authorization token of subscriber and demo account holder 45623568986 and account holder type in sandbox please provide solution or demo account holder and account holder type which are work and active on sandbox for testing purpose GET https://sandbox.momodeveloper.mtn.com/collection/v1_0/accountholder/45623568986/MSISDN/active HTTP/1.1 Host: sandbox.momodeveloper.mtn.com Authorization: Basic eyJ0eXAiOiJKV1QiLCJhbGciOiJSMjU2In0.eyJjbGllbnRJZCI6ImZiNzc0YjkxLTFiYTMtNGJmZS04MDMxLWRjNWU5YTZjZTJlYSIsImV4cGlyZXMiOiIyMDIwLTAxLTI5VDA4OjIxOjU3LjYyOSIsInNlc3Npb25JZCI6IjM0OTY0ZTA3LTEzMzAtNDE1Ny04MGViLWFiMzhhZTZkNGMxMiJ9.FiTc1RjfFrWlTuW_JKcV3LnVcch0bvIs4d6zsS9uHMES9RW7rX46-ZV2pKAw-1gKJlBbTaCC4CL3bxgKyeD5wJOqA6Khi0NM1iAb9fIuqQ_mYvYlSRthM2mSgNv2JOItOiBgikNSkJaRUCemP6tmy9Kld-UFEz1zzIR7FdM5BYlxXqZilSioSiRWvcDk4Memwv3Oh5uM8bcR9swO_EzSO4vVtCCPLOPULAfgA37dFPNezVxBmg5CnDJlyx9o-SuvmAR7fifTDN1afvr0xQGdUCBFR6OsyAiZjAD0y8lXvNnZ4z5E_Jv8Z5gEbRJc3HOSBj2U3Y3GAZeCIal3_dYRxg X-Target-Environment: sandbox Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••

Hidden
Wed, 29 Jan 2020 07:35:26 GMT
Proposed

Poor Documentation

Whats the use of Developer docs if they cant explain even the most important items like X-Reference-Id: {baseUrl} and how to use or get them?

Hidden
Tue, 28 Jan 2020 16:02:01 GMT
Proposed

X-Reference-Id

Hey guys, where to find that X-Reference-Id for provisioning?

Hidden
Tue, 28 Jan 2020 14:57:29 GMT
Proposed

Cant Find API Keys on my dashbaord

I am new to momo Api. I subscribe to the collection Api but can't locate the Api Keys on Primary and Secondary Keys. Please i need help on how to get the Api Keys. Thanks

Hidden
Wed, 22 Jan 2020 06:55:18 GMT
Proposed

Sandbox URL Callback

Why isn't the code below working? What URL callback is suitable for the sandbox environment? Thanks!! POST https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay HTTP/1.1 Host: sandbox.momodeveloper.mtn.com Authorization: Basic ZTk5NjUwMWMtZTcyMS00YWMxLTk3ZmYtZGM2ODg3Yjg1ZThjOjA4MmMwMTg1YWFlZDRmZjlhMTMyZjZkMDY2MGZiYjlj X-Reference-Id: e996501c-e721-4ac1-97ff-dc6887b85e8c X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "10", "currency": "EUR", "externalId": "12345", "payer": { "partyIdType": "MSISDN", "partyId": "0785571876" }, "payerMessage": "Testing", "payeeNote": "Testing" }

Hidden
Sat, 18 Jan 2020 11:42:56 GMT
Proposed

Bad Request

Im trying to access the /requesttopay section but I'm having difficulties in identifying the values for Authorization header and X-Target-Environment Im actually using your api sandbox environment. Any help??

Hidden
Wed, 15 Jan 2020 13:55:29 GMT
Proposed

x-target-enviroment

Hello team! Please, what should I write into the x-target-environment blank?

Hidden
Tue, 14 Jan 2020 16:35:15 GMT
Proposed

Subscription limit

What is the subscription limit about? How many services are we supposed to subscribe in the sandbox environment?

Hidden
Tue, 14 Jan 2020 02:54:12 GMT
Proposed

PASSING CALLBACK URL ON requesttopay RETURNS 400 BAD Request

The request below works fine but it returns 400 Bad request as soon as i add callback url in the header. I believe the callback url is the best option than my system calling your server periodilly to confirm if the payment request was successful or not. POST https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay HTTP/1.1 Host: sandbox.momodeveloper.mtn.com Authorization: Bearer ****** X-Reference-Id: c2f3ff93-c46a-402c-be42-94e1b64b8951 X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "100", "currency": "EUR", "externalId": "5427", "payer": { "partyIdType": "MSISDN", "partyId": "25678*******" }, "payerMessage": "Payment for Order No:5427", "payeeNote": "Payment for Order No:5427" }

Hidden
Sun, 12 Jan 2020 13:04:13 GMT
Proposed

What do you mean with {base url} and X-reference-Id

Actually I want to create API User and API Key but I am meeting some challenges. Dear support team, we need clear information and help.In your api documentation,always you are using {base url} and we don't it.Please explain for me what do you mean with it. You are also asking us to set X-refence-Id as a header for this API.What is this and how can we get it? Thanks in advance

Hidden
Sat, 11 Jan 2020 08:46:16 GMT
Proposed

Collection widget not working well for me or the instructions are not just clear enough

GET method not working returns a 404 not found error, when i click the widget, it fails to connect and i get a connection problem message

Hidden
Fri, 10 Jan 2020 08:43:02 GMT
Proposed

Callback not being sent back

Am sending a disbursement request, with a callback url defined I am however not receiving the callback.Please advice, also the documentation is missing on how the callback is structured or should be

Hidden
Fri, 10 Jan 2020 07:55:01 GMT
Proposed

Question

Please, do i need to purchase anything in order to use the collection product?

Hidden
Tue, 07 Jan 2020 10:49:47 GMT
Proposed

Terminology clarificatiosn.

Hello, I am new to this api and it documentatiosn trying to understand and implement. Can someone please explain to me the terminologies like "Provider" and "Wallet Platform". their difference and how it interelated and work together.

Hidden
Tue, 07 Jan 2020 08:21:47 GMT
Proposed

Need clear informations

Hello, Please i really want to speak with the support team. When i use the whatsapp link, it opens whatsapp but says messages cannot be sent to the number. I have serious issues with intergrating the Mobile money collection and Disbursement APIs in my application. Thanks

Hidden
Mon, 06 Jan 2020 16:52:02 GMT
Proposed

Currency not supported

When i process a request to pay, i get currenxy not supported. I am using UGX. What's the problem? Thanks

Hidden
Mon, 06 Jan 2020 15:57:58 GMT
Proposed

Currency not supported

When i process a request to pay, i get currenxy not supported. I am using UGX. What's the problem? Thanks

Hidden
Mon, 06 Jan 2020 15:57:58 GMT
Proposed

Can't find the answer you are looking for?

We are here to help you should you need to speak to someone

Contact Support

Looking for developer documentation?

We have a resource to help you get up to speed with the MoMo API

View Documentation