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.

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

Token- Error Internal Server Issue

For Generating access Token I got 'Internal Server Error'

Hidden
Wed, 26 Dec 2018 10:50:43 GMT
Proposed

A proper tutorial is needed

We need a proper tutorial on how to integrate Momo api. The official docs are very vague. Forexample what is {subscription key}?? is it the primary key or secondary key or both?

Hidden
Fri, 07 Dec 2018 08:38:32 GMT
Proposed

Malformed response from /requesttopay/{referenceId} - NEGATIVE TEST CASE

Request URL - https://ericssonbasicapi2.azure-api.net/colection/v1_0/requesttopay/{referenceId} The service is returning a malformed response from what is in the schema for all negative test case Should we consider this a desirable bug and move on or you have plans for updating. Current Response for TEST CASE REJECTED { "externalId":"11250230098", "amount":"2000", "currency":"EUR", "payer": { "partyIdType":"MSISDN", "partyId":"46733123451" }, "payerMessage":"UBD356D", "payeeNote":"UBD356D", "status":"FAILED", "reason":"APPROVAL_REJECTED" } Current response for TEST CASE FAILED { "externalId":"11250230101", "amount":"500", "currency":"EUR", "payer": { "partyIdType":"MSISDN", "partyId":"46733123450" }, "payerMessage":"TEST REMARKS", "payeeNote":"TEST REMARKS", "status":"FAILED", "reason":"INTERNAL_PROCESSING_ERROR" } Expected response in the schema: { "amount": 100, "currency": "UGX", "externalId": 947354, "payer": { "partyIdType": "MSISDN", "partyId": 4656473839 }, "status": "FAILED", "reason": { "code": "PAYER_NOT_FOUND", "message": "Payee does not exist" } }

Hidden
Sun, 25 Nov 2018 19:44:08 GMT
Proposed

Can't get Access Token

This query doesn't return any response. POST https://ericssonbasicapi2.azure-api.net/colection/token/ HTTP/1.1 Host: ericssonbasicapi2.azure-api.net Authorization: b64enc_API_USER_ID:b64enc_API_Key Ocp-Apim-Subscription-Key: my_subscription_key

Hidden
Mon, 19 Nov 2018 07:48:19 GMT
Proposed

Request to Pay Endpoint Keeps Returning HTTP 400 Bad Request

Hi There, Running some tests on the sandbox, for some reason can't get past the required header authorization. Below is the request I am sending but keep getting back a HTTP 400 Bad request. My assumption was the format for the Authorization string would be "API-User:API-Key". Is there anything I'm missing? -------------------- POST https://ericssonbasicapi2.azure-api.net/colection/v1_0/requesttopay HTTP/1.1 Host: ericssonbasicapi2.azure-api.net X-Reference-Id: 49bd68d0-e86f-11e8-9f32-f2801f1b9fd1 X-Target-Environment: sandbox Content-Type: application/json Ocp-Apim-Subscription-Key: {my-subscription-key} Authorization: 49bd68d0-e86f-11e8-9f32-f2801f1b9fd1:7e756afbba244ff98f7382f3ebfd698a { "amount": "2000", "currency": "EUR", "externalId": "myMSISDN", "payer": { "partyIdType": "MSISDN", "partyId": "46733123453" }, "payerMessage": "hello world", "payeeNote": "here we are" }

Hidden
Fri, 16 Nov 2018 15:17:06 GMT
Proposed

test issue

test description

Hidden
Thu, 25 Oct 2018 12:53:28 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