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.

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

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