News

MoMo API Error response enrichment


 

When querying for the status of a financial transaction, the result can either be SUCCESSFUL, FAILED, or PENDING. 

A successful outcome means the MoMo subscriber has authenticated the transaction with the correct PIN, whereas a pending status means the MoMo subscriber is yet to approve the transaction with their PIN.

Although the labels 'successful' and 'pending' are self-explanatory, a failed response could be due to a variety of factors, such as the customer entering an incorrect PIN or their wallet lacking sufficient funds to finalize the transaction.

Developers have experienced difficulty understanding some of these error messages, particularly the INTERNAL_PROCESSING_ERROR which is a generic encompassing numerous errors with the most prevalent being a lack of sufficient funds in the MoMo subscriber's wallet.

To address this issue, our team has devised a revised error response procedure that will provide specific reasons for failure, such as insufficient funds.

This revision process is ongoing and developers who are part of our community platform will receive regular updates on these errors as they are implemented.

Please note that while HTTP Codes remain unchanged, reasons for failure will be included in the response body by the team.

Generic 

{

    "externalId": "04822b2a-0896-4612-9e9e-15ce749b7883",    "amount": "500000000",

    "currency": "UGX",

    "payer": {

        "partyIdType": "MSISDN",

        "partyId": "25677000000"

    },

    "payerMessage": "test",

    "payeeNote": "test",

    "status": "FAILED",

    "reason": "INTERNAL_PROCESSING_ERROR"

}

From the Snipped, the Reason field will be updated only. 

 

 

This is indeed welcome news.


Thank you for the Identifier,  Just 2 weeks back, MTN sent a mail about the new codes new error codes, maybe a t the time you had not subscribed to the MoMo Developer Group yet. 
As developers we are yet to do test but will finally do updates, however, the above error is tested and verified of a cause in the collection video on the HOW TO SECTION of this developer community.
The new reasons include, INSUFFICIENT BALANCE, CUSTOMOER INPUT REJECTION/ CANCEL Request


Hello, 
i hope to day your received a mail from MoMo Community about your submitted error Query, 
It has been worked on following the prior email from the same team. 
A documentation will follow up soon.


@crankluga Could you please share the complete list of possible errors or direct us to a webpage where we can find them?


I am going to DO the TESTING and document as well video these and MTN  Team will share here ..