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.

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