Skip to main content
Question

Request to pay dont send callback

  • November 23, 2025
  • 2 replies
  • 82 views

Hi everyone,

I’m having some trouble with the MTN MoMo API, specifically with the requestToPay endpoint.

When I send a requestToPay, I get an HTTP 200 response, but the body looks like this:

 

HTTP/1.1 200 OK cache-control: no-cache content-length: 247 content-type: text/html; charset=utf-8 pragma: no-cache vary: Origin x-content-type-options: nosniff x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block <html> <head><title>Request Rejected</title></head> <body> The requested URL was rejected. Please consult with your administrator.<br><br> Your support ID is: 11597720049318046811<br><br> <a href='javascript:history.back();'>[Go Back]</a> </body> </html>

The problem is that no callback is ever sent, even though I receive this 200 response.

Has anyone experienced this before or knows what might be wrong? Any help would be appreciated. 🙏

 

2 replies

  • New Member
  • January 2, 2026

Did you find a solution ?


  • Community Manager
  • January 6, 2026

Based on the documentation for requesttopay the expected success code is `202 Accepted` and not 200.

 

The error you are getting indicates that you are passing some unexpected value in either your headers or the request body. Some of the possible causes can be.

  1. Using an x-reference-id that is not in UUID v4 format
  2. Using x-callback-url header that is not a valid URL, expected format https://yourdomain.com.**** 
  3. Using Authorization Basic YourToken, instead of Bearer YourToken