Hello,
I am trying to call disbursement/v1_0/refund on the sandbox but I always get http 400 - Bad Request.
Is this method working on the sandbox ?
I’ve also tried from your documentation website. Here is the syntax used :
POST https://sandbox.momodeveloper.mtn.com/disbursement/v1_0/refund HTTP/1.1
Authorization: ...
X-Reference-Id: 0a63a755-355f-409c-a94d-a42818dea651
X-Target-Environment: sandbox
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: 539f8a1f05d94b17a4e53cbe90219f15
{
"amount": "7500.9",
"currency": "EUR",
"externalId": "2B58A65F38C5EA0EE06323671FAC0695",
"referenceIdToRefund": "579530f0-68d5-4886-b352-bdec7f816c9f"
}
HTTP/1.1 400 Bad Requestcontent-length: 0date: Fri, 10 Jan 2025 13:38:44 GMTvary: Originx-xss-protection: 1; mode=block