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.
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.
Request to pay
Bad Request - Invalid URL HTTP Error 400. The request URL is invalid.
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" }
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" }'
Authorization header value??
When creating the access token, what do we pass as the value for the Authorization header?
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"}
Error Code 403: Forbidden
Getting {"code":"Forbidden","message":403} for every request, kindly assist!
EWP system Identifier
Please where do I find my EWP system Identifier
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
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 ?
Can't find the answer you are looking for?
We are here to help you should you need to speak to someone
Contact SupportLooking for developer documentation?
We have a resource to help you get up to speed with the MoMo API
View Documentation