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.

NOTHING DEH WORK

MTN please seat up, cause nothting is working on these endpoint.Abaaaa

Hidden
Tue, 17 Sep 2019 12:37:22 GMT
Open

Token Generation Issue in PHP

How to generate token in php? What are the User ID and API key here? Is there any format to combine User Id and API Key? Please define one example? Thanks

Hidden
Tue, 17 Sep 2019 09:53:59 GMT
Proposed

payment service

not able to test any service

Hidden
Tue, 17 Sep 2019 08:46:55 GMT
Proposed

Why is this not working

POST https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay HTTP/1.1 Host: sandbox.momodeveloper.mtn.com X-Reference-Id: 1b73e4b2-97c2-4c12-8871-6c756696db2b X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "2", "currency": "GH", "externalId": "1b73e4b2-97c2-4c12-8871-6c756696db2b", "payer": { "partyIdType": "MSISDN", "partyId": "0546766186" }, "payerMessage": "dummy", "payeeNote": "dummy" }

Hidden
Mon, 16 Sep 2019 13:40:57 GMT
Proposed

Format of Data Sent

Can you help with the currency format example GH OR GHS. Also you need to give a vivid valid example so we can follow. Its making the whole process lengthy. API is not any new thing, make the documentation clear with examples.

Hidden
Mon, 16 Sep 2019 12:49:01 GMT
Proposed

collection widget

Hi, pleased to meet you. I am trying to connect and test out the collection widget and in need of some help understanding how to setup it properly. Please advise. Widget Demo: https://widget.northeurope.cloudapp.azure.com:9443/demo.html do not working for me.

Hidden
Thu, 12 Sep 2019 13:24:47 GMT
Proposed

My key is being rejeceted that its invalid yet its the one in my profile why?

When i use my subscription key in my web site to receive money its being rejeceted

Hidden
Wed, 04 Sep 2019 20:19:33 GMT
Proposed

Generating API User and API Key

I intend to use the API from Ghana and i am having some trouble generating the API User and API Key. The documentation says "API user and Key are wholly managed by the merchant through Partner Portal"; how can i access the partner portal?

Hidden
Tue, 03 Sep 2019 16:53:02 GMT
Proposed

Internal Server Error

I have been trying to generate the access token from https://sandbox.momodeveloper.mtn.com/collection/token/ endpoint but it is always unsuccessful. This is the response i get: { "statusCode": 500, "message": "Internal server error", "activityId": "f1ebecf8-aae8-4f7f-929f-3bb4dfba458c" } Please i need immediate help Thanks

Hidden
Tue, 03 Sep 2019 13:41:15 GMT
Proposed

Callback URL does not match the configured value.

How do i register a callback url for receive information on transaction information when a customer pays for services

Hidden
Tue, 20 Aug 2019 12:35:36 GMT
Proposed

How to withdraw money from developer account?

Same as title

Hidden
Wed, 31 Jul 2019 11:17:13 GMT
Proposed

Bad Request when sending a post request. See my body and header

{ 'Authorization' : 'Bearer '+token, 'X-Callback-Url' : 'http://myapp.com/momoapi/callback', 'X-Reference-Id' : reference_id, 'X-Target-Environment' : 'sandbox', 'Content-Type' : 'application/json', 'Ocp-Apim-Subscription-Key': '019414ea5a5948039203bf5a1d87ce4c' } body = { "amount":"5000", "currency":"UGX", "externalId":"12345", "payer": { "partyIdType":"MSISDN", "partyId":"0780123456" }, "payerMessage":"text message", "payeeNote":"test note" }

Hidden
Fri, 26 Jul 2019 14:58:56 GMT
Proposed

Not an Issue, rather a support question

Does this api cover all countries in Africa using MTN?

Hidden
Thu, 25 Jul 2019 13:58:22 GMT
Proposed

Can't get response from token - POST web service call

POST https://ericssonbasicapi2.azure-api.net/collection/token/ HTTP/1.1 Host: ericssonbasicapi2.azure-api.net Authorization: Base64 encoded string (containing API user ID and API key) Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• I try this service call from my android app and i get SocketTimeOut Exception I also try this service from API sandbox and i didn't get any response from it

Hidden
Thu, 18 Jul 2019 10:34:52 GMT
Proposed

data-api-user-id

data-api-user-id

Hidden
Tue, 09 Jul 2019 19:42:13 GMT
Proposed

Running Localhost Application

Hello My application will be running on Localhost but i wanted clients who come to on site to pay through momo pay and how am i going to submit my application for review

Hidden
Mon, 08 Jul 2019 12:40:22 GMT
Proposed

400 Bad Request - requesttopay API

Hello, What is solution of above errors? Below is header and body params. [headers:protected] => Array ( [user-agent] => HTTP_Request2/2.3.0 (http://pear.php.net/package/http_request2) PHP/5.6.40 [authorization] => Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSMjU2In0.eyJjbGllbnRJZCI6IjQ4OGYyNzAzLTk0NjQtNGQyMy1iYjI2LTVlMTU5OWI0OTljMSIsImV4cGlyZXMiOiIyMDE5LTA2LTEyVDExOjEzOjAxLjM3NCIsInNlc3Npb25JZCI6ImJkMzUyN2JmLWRiOGMtNGIwZS05YjhmLTU3NTFkZThjYzZiYyJ9.F5cgsWzDi945fqu_24CSXJvwZFVJI1YkWF7KfsKqYHG5-YbO3doEyP2wzk3eKM5cCI8q63zzMreLlZRsbxJXfZN_YxaIPPaqTquAIFKcCDFziUfVhZDuVf9c5h2w3w6GyHl-5EJwtowapwJSjLbb26zqhtQWOUREykCcxnKCGOPTbDkdYSEYCUoP2q06bxerJyKgjEzpBxzH2urEdjYPTadLlw19VHij3pquVhESexdbB9KVr-C9ITC7el8L95uXcbmiaTBU-9vmwaajOsdtMttlPwEz4YEy2dBYUNVNeTEidskqInhtNrLcjZXBKkmKJgO0OS4D1fqiVp0XTYv4zw [x-callback-url] => http://babysitting4.bbcsproducts.com/mtn/callback.php [x-reference-id] => 488f2703-9464-4d23-bb26-5e1599b499c1 [x-target-environment] => sandbox [content-type] => application/json [ocp-apim-subscription-key] => 2420b5713a6f4387a945a39998b11f24 ) [_path:Net_URL2:private] => /collection/v1_0/requesttopay [_query:Net_URL2:private] => amount=5000¤cy=EUR&externalId=23312345&payer[partyIdType]=MSISDN&payer[partyId]=46733123450&payerMessage=test&payeeNote=test

Hidden
Wed, 12 Jun 2019 10:14:08 GMT
Proposed

Momo Pay API Client Packages

Hello, Are there any client packages we can just install to get access to the api without much hustle? I sort of built one for JavaScript/Typescript/Nodejs. I need it reviewed. https://github.com/sopherapps/mtn-pay-js I hope to build one for python too but I need to know whether I am on the right path first. Please review.

Hidden
Tue, 04 Jun 2019 20:40:06 GMT
Proposed

Create API user via python code

Sending the request via python code returns code 200 instead of 201. Print(data) does not print anything. b''

Hidden
Tue, 21 May 2019 10:03:38 GMT
Proposed

Create API User through API

Hi, I'm trying to make the MTN API integration in Safeboda, but I'm facing with an issue during the API user creation through the API. I just generate the Subscription Keys and making the following call to the API return the following error. curl -X POST \ http://momodeveloper.mtn.com/apiuser \ -H 'Content-Type: application/json' \ -H 'Ocp-Apim-Subscription-Key: aa1490b5298e4e1ab8d2d9b4d1986a75' \ -H 'X-Reference-Id: c576c5f8-8567-4b06-b32e-545d32770970' \ -H 'cache-control: no-cache' \ -d '{ "providerCallbackHost": "safeboda.com" }' Ocp-Apim-Subscription-Key: My primary key generated in the developer portal. X-Reference-Id: A UUID generated. Response: Status code: 500 Internal Server Error .... configuration system.web customErrors mode="Off" system.web configuration .... configuration system.web customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm" system.web configuration Do you have an idea about what I'm making wrong? Regards Ivan

Hidden
Fri, 17 May 2019 10:43:44 GMT
Proposed

The identifier of the EWP system

Hello, How do i get the identifier of the EWP system.

Hidden
Wed, 15 May 2019 10:24:51 GMT
Proposed

Callback URL

How do i register a callback url for receive information on transaction information when a customer pays for services

Hidden
Tue, 14 May 2019 14:30:25 GMT
Proposed

test

test

Hidden
Wed, 08 May 2019 13:21:18 GMT
Proposed

Balance EUR

Hello, I've done first request to collection/v1_0/account/balance and received response that I have -25 EUR, not even UGX. Then I tried to request a payment (in EUR, because I got an error that UGX is not supported), I got 202 Accepted response, but the Payer can't figure out how to pay this request. Then I tried to check my balance again, and now I'm getting response the following response: Before token renewal: { "message": "Authorization failed. Insufficient permissions.", "code": "NOT_ALLOWED" } After token renewal: { "message": "Requested resource was not found.", "code": "RESOURCE_NOT_FOUND" }

Hidden
Tue, 07 May 2019 20:10:35 GMT
Proposed

{ "statusCode": 404, "message": "Resource not found" }

SandBox Resource Not Up and Running https://ericssonbasicapi2.azure-api.net/ Testing the Collection Api and thats the response i get { "statusCode": 404, "message": "Resource not found" }

Hidden
Mon, 29 Apr 2019 16:19:42 GMT
Proposed

Urgent assistance required.

Am trying to create an api user,response status is 201, but i always get an empty respose in the Api sandbox(try it) environment.What is the use of setting up a providerCallbackHost and what should I set the host to. Please assist

Hidden
Wed, 17 Apr 2019 04:45:49 GMT
Proposed

Create an api user

Am trying to create an api user,response status is 201, but i always get an empty respose in the Api sandbox(try it) environment.What is the use of setting up a providerCallbackHost and what should I set the host to. Please assist

Hidden
Wed, 10 Apr 2019 07:33:45 GMT
Proposed

How to set authorization

Basic authentication header containing API user ID and API key. Should be sent in as B64 encoded.Can you give an example of how API user ID and key are concatenated?

Hidden
Wed, 10 Apr 2019 02:12:29 GMT
Proposed

What's the format / payload for the Callback URL

Hi there, Could you provide an example of what the URL structure (and payload) for the X-Callback-Url should be in the request to pay endpoint?

Hidden
Sat, 30 Mar 2019 00:30:53 GMT
Proposed

Suscription Key

Where is the Subscription Key in the profile. I see two strings called keys but none of them is subscription key. I have searched previous questions but no answer yet.

Hidden
Mon, 11 Mar 2019 18:49:26 GMT
Proposed

Failed collections widget

I have submitted my problem to your chat team nearly every day, frequently 2 or 3 times a day for weeks. I've had promises for noon, soon etc. I also submitted this form, weeks ago and received a promise. No followup. I am doing a system for a major Ugandan Corporation and the only outstanding thing is the payment. I have a very small test program. When I click the Icon I get this failure. I'm attaching the program. I can send you a pic of the screen but I can only attach one file. Please don't ignore this. I'm desperate. Regards Marcelle Silbert (Perth, Australia)

Hidden
Fri, 08 Mar 2019 05:22:06 GMT
Proposed

error 400

Good day guys! I always Got 400 Bad Request. Dont know whats the specific error. Note: I use MOMO requesttopay-POST console to run sanbox test. Any Idea? Parameter Below.... POST https://ericssonbasicapi2.azure-api.net/collection/v1_0/requesttopay HTTP/1.1 Host: ericssonbasicapi2.azure-api.net X-Reference-Id: c72025f5-5cd1-4630-99e4-8ba4722fad57 X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "100", "currency": "EUR", "externalId": "21212122", "payer": { "partyIdType": "MSISDN", "partyId": "46733123453" }, "payerMessage": "payerMessage", "payeeNote": "payeeNote" }

Hidden
Mon, 04 Mar 2019 03:12:48 GMT
Proposed

How to get the X-Target-Environment

Some help on how to get the X-Target-Environment

Hidden
Sat, 23 Feb 2019 07:38:02 GMT
Proposed

Acquiring API

I would love to know how to fully acquire the API and intergrating it to my mobile app Thanks

Hidden
Sat, 23 Feb 2019 07:25:27 GMT
Proposed

any video

am wonder of any video tutorial to help me go thru this integration of api into my app

Hidden
Mon, 18 Feb 2019 11:03:18 GMT
Proposed

X-Reference-Id

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

Hidden
Fri, 15 Feb 2019 01:53:35 GMT
Proposed

M.T.N A.P.I

hi i would like to find out do you need to go live so that an account can be created for the partner in which funds received will be deposited into Also can you use this a.p.i in zambia

Hidden
Thu, 14 Feb 2019 07:58:22 GMT
Proposed

Failed collection widget

Can someone please give me a sample of a working collection widget?

Hidden
Wed, 13 Feb 2019 01:00:34 GMT
Proposed

Failed collections widget

I can't get a response from chat. I've tried twice. I'm hoping you can help. I'm a new user. I'm trying to test collection widget in sandbox but it is showing Something went wrong.

Hidden
Wed, 13 Feb 2019 00:57:01 GMT
Proposed

API

Hello, I want somone to take me through the whole process on how to integrate the MTN API in my PHP web application so that I can recieve money from the clients via MM. abdulissahaku4@gmail.com is my email

Hidden
Sat, 02 Feb 2019 12:09:57 GMT
Proposed

Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API

But am submitting a value The best error description would be "Wrong subscription key please provide the right key" up to now i dont know what the problem is now am using curl_php to send my request Thanks

Hidden
Thu, 31 Jan 2019 15:31:20 GMT
Proposed

zrer

rtttet

Hidden
Wed, 30 Jan 2019 10:57:16 GMT
Proposed

Help

Hello, I want somone to take me through the whole process on how to integrate the MTN API in my PHP web application so that I can recieve money from the clients via MM. normanmugumya00@gmail.com is my email

Hidden
Mon, 28 Jan 2019 17:27:48 GMT
Proposed

Empty response on /apiuser

Am trying to create an api user but i always get an empty response in Postman and bad request in the Api sandbox(try it) environment. Please assist

Hidden
Wed, 23 Jan 2019 20:30:58 GMT
Proposed

preapproval

Is preapproval under all the products

Hidden
Wed, 23 Jan 2019 16:28:05 GMT
Proposed

Subscription Limit Reached

I wanted to subscribe to Request to pay collection but whenever i go to the Products page, there is message "Subscription limit reached". I really wanted to test the API calls before i integrate in my app. What shoul i do please?

Hidden
Tue, 15 Jan 2019 11:17:01 GMT
Proposed

Getting internal servet error

Hello, I am using below mention information but getting error. POST https://ericssonbasicapi2.azure-api.net/disbursement/token/ HTTP/1.1 Host: ericssonbasicapi2.azure-api.net Authorization: c3VkaXB0by5tYWp1bWRhcjE5NzZAZ21haWwuY29t Ocp-Apim-Subscription-Key: 76ed8be31fed455daf82c7816a26b091 In postman I am also getting error. Can you please help me to sort out this problem. If I am using wrong then Please tell me what is wrong and what has to be used.

Hidden
Mon, 14 Jan 2019 08:19:01 GMT
Proposed

[GET] Reuest to /requesttopay/{Ref_ID} endpoint does not return a 'SUCCESSFUL' status as stated in the documentation.

Hi, I am followinf the documentation on getting the status of a payment via the trasaction_id in the sandbox. As stated in testing under "Test Numbers" 46733123453 ongoing (will answer pending first and if requested again after 30 seconds it will respond success) I am able to successfully [POST] and [GET] accordingly. However, after the first [GET] request, 30 seconds later I am unable to view a 'SUCCESSFUL' status on any subsequent calls. COuld this be a bug or am I dping anything wrong? Regards,

Hidden
Tue, 08 Jan 2019 09:34:26 GMT
Proposed

Request To Pay keeps returning Error 400 Bade Request

Hopefully someone can point out the particular issue. Authorization is basic auth encode base64 from postman POST https://ericssonbasicapi2.azure-api.net/collection/v1_0/requesttopay HTTP/1.1 Host: ericssonbasicapi2.azure-api.net Authorization: Basic NDA5YjgzYTgtN2VjMS00YmVjLTlmNWItZDJkNDVhODgxYzRjOjM4NDBjYzYwODkxZTRmODI5NTFiMTg5NWEzZmNmZjYx X-Reference-Id: 409b83a8-7ec1-4bec-9f5b-d2d45a881c4c X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: •••••••••••••••••••••••••••••••• { "amount": "10", "currency": "EUR", "externalId": "8765437654", "payer": { "partyIdType": "MSISDN", "partyId": "46733123453" }, "payerMessage": "hello world", "payeeNote": "lets go" }

Hidden
Thu, 03 Jan 2019 22:26:21 GMT
Proposed

Error code 401

Hi Guys i am failing to go through with a request to pay post, i am not new to apis , i have tried this on sandbox, it failed and also tried to do this with post man, same error occurs, any one with a hit. Please note that i have provisioned of an API key already and i get this with no issues. Regards

Hidden
Thu, 03 Jan 2019 11:10:02 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