Share sandbox questions and get support from the community
Recently active
{StatusCode: 500, ReasonPhrase: 'Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:{ X-XSS-Protection: 1; mode=block Request-Context: appId=cid-v1:e996501c-e721-4ac1-97ff-dc6887b85e8c Date: Wed, 24 Sep 2025 18:39:51 GMT Content-Length: 0}} what is the fixed
i have got error in laravel “Unable to obtain a new access token.”in sendbox
I am consuming the MTN Open API and most of the endpoints worked except for some specific endpoints which I would enlist below;Kindly note that the response I receive from these are all BAD REQUEST so kindly help me out in determining what is the issue; Request to Pay: POST https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopayHeaders: X-Target-Environment X-Callback-Url X-Reference-Id Ocp-Apim-Subscription-Key Authorization Request Body: {"amount": "2.0","currency": "GH","externalId": "7916d515-ab40-4bba-bb67-b68bfb13b94c","payer": {"partyIdType": "MSISDN","partyId": "23354****414"},"payerMessage": "Kindly accept for payment of TEST","payeeNote": "Thanks for paying for Test"} Disbursement / Transfer POST: https://sandbox.momodeveloper.mtn.com/disbursement/v1_0/transfer Headers: X-Target-Environment X-Callback-Url X-Reference-Id Ocp-Apim-Subscription-Key Authorization Request Body: {"amount": "2.0","currency": "GH","externalId": "e4f7
I tried creating an api user in the postman by sending a post request on postman to this link https://sandbox.momodeveloper.mtn.com/v1_0/apiuser. The post request contained in my header X-Referene-Id(a random uuid generated by a uuid generator), Ocp—Apim-Subscription-Key(which is the primary key gotten after subsrcibing to a product, in my case I subsricbed to the collection widget producr) and Content-type(whose value was application/json). After doing all of this and sending the post request, I am getting a status code of 401 “saying Access Denied due to invalid subscription key. Make sure to provide a valid key for an active subscription”. I have confirmed multiple times that I use the primary key and i even tried out the secondary key but same thing, I have tried to open another account to subscribe to a new product, yet still the same thing. I will sincerely appreciate it if this can be attended to as soon as possible
i dont know when i try to create the access token in the sandbox i get 401 response invalid client .any one help me
we are working on a time sensitive important project and encountering login failure while trying to obtain an access token using basic authentication
I successfully created it using/v1/0/apiuser/v1/0我使用/v1/0/apiuser/v1/0成功创建了它I successfully created it using/v1/0/apiuser/v1/0 apiuser, but using/V1_0/apiuser/{X-Reference Id} does not return any data for apiUser. Which API do I need to use to obtain apiUser? I can successfully obtain apiKey through/v1.0/apiuser/{X-Reference Id}/apikey
I have been looking through the documentation and can’t find much information about the collection widget product. All I could find is that it enables a developer or partner to integrate a MoMoPay checkout button to accept Mobile Money payments on your e-commerce site. but what differentiates it from the othe collections product and how can we implement it in the sand box.
Hi!When I do a POST to the CreateAccessToken endpoint I get a response where the token_type has a value set to "access_token" instead of something like "Bearer". I’m expecting the token_type to be Bearer since the Transfer endpoint documentation states that the Authorization header should be the “Bearer Authentication Token generated using CreateAccessToken API Call”.Am I missing something?Any help/advice would be greatly appreciated!
I am trying to creacte an api user in the sandbox environment, I can verify that I am doing everything correctly however I am getting “Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.” . I have tried using the primary and secondary keys, none are working for me. I have gone through most of the issues mentioned and the solution people justed nothing seems to be working for me. As a reference this is the request I am making,curl --location 'https://sandbox.momodeveloper.mtn.com/v1_0/apiuser' \--header 'Ocp-Apim-Subscription-Key: b93400415bde4c96b06c57e698789cda' \--header 'X-Reference-Id: 8b1a5696-9c43-41c6-a884-d11e0f5bfe17' \--header 'Content-Type: application/json' \--data '{ "providerCallbackHost": "https://webhook.site/b6b6cb4c-e9fa-42b8-96a8-b82e25859b85"}'
Hello, i m using momo for wallet base . The wallet is not momo wallet but the user can request to send money in her momo to another account. We need to check balance and transfert the Money from one account to another . How can i achieved that ? thanks
Hi there,It seems that you have some issues with the generated subscription keys for this Collection Widget. Can you please help me get a proper key that I can use. Neither the primary nor the secondary keys are working.
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.1Authorization: ...X-Reference-Id: 0a63a755-355f-409c-a94d-a42818dea651X-Target-Environment: sandboxContent-Type: application/jsonCache-Control: no-cacheOcp-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
Hello sir/madam,I have subscripted Collection Widget product but both key is not working. please help.
I have created an API user and API key on sandbox and has set the providerCallbackHost correctly, However when I try to make a disbursement on the endpoint disbursement/v1_0/deposit, I am getting the error “Callback URL does not match the configured value.” on request. even though the callback url host is the same as providerCallbackHost when creating the API user.attached are screenshots of the request and response.
Hello guys,I’m receiving this error when i try to get access_token “The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch, RemoteCertificateChainErrors” I’m using .Net environment
I am building a simple app for disbursement and would like to get consent from user(merchant) before disbursement with recipients managed on the web.Now I have gotten the Oauth2 token but can not find the endpoints to actually use it.I checked use cases page and it appears I can use MerchantTransferWithConsent but there is no documentation of endpoints on Postman Collection. How do I achieve this kind of disbursement with consent flow that I have?Thanks for your time.
I am trying to get Oauth2 token after successfully issuing a bc_authorize request and getting the auth_req_id.now trying to get token to the request by making a post to {{base_url}}/disbursement/oauth2/token/ and I keep getting 400 status error with no message, it is difficult to know exactly what I am doing wrong, I have attached screenshots of my Postman screen.~I appreciate the assistance
Good morning team, I hope you are doing great. I am having some concerns if you can help me:What is the role of bc-authorize and CreateOauth2Token ? (I didn’t understand how it happens in real time, or what is its use).what is the difference between CreateOauth2Token and CreateAccessToken?Why do I need bc-authorize and CreateOauth2Token if I can make my requests only with CreateAccessToken?
How can I be gaining in momo api
I am trying to create a new user with the collection sandbox API but I keep getting the error below for this endpoint and another endpoint I tested since yesterday: {"statusCode": 500,"message": "Internal server error","activityId": "98383705-c916-4012-8e07-d27644e1da22"}
I have had this issue the whole of today. Is it an issue with the sandbox? { "statusCode": 500, "message": "Internal server error", "activityId": "c5f402f7-dabf-4473-8df7-2a1f4172a42d" }
Hello 🤗I tried to configure the callback URL in the sandbox with two values and both didn’t work. Here are the steps I followed:1- Created and API user:{"providerCallbackHost": "localhost:3000"}2- Generated and API key.3- Generated basic auth with the reference ID of the user API and the API key.4- added this header to the requesttopay:'X-Callback-Url': 'http://localhost:3000/api/mtn'I tried these values too:"providerCallbackHost": "kiad-api-pr-28.onrender.com"'X-Callback-Url': ‘http://kiad-api-pr-28.onrender.com/api/mtn’But these urls was never reached.Can you please help me 🤕@Ddamula @allan.ddamulira @crankluga @anicet
I have subscribed to the Collections product, and trying to test the request to pay (v1_0/requesttopay) in sandbox. I am setting the callback URL in the header of this request. Using the same domain I had provided while creating API user.The callback URL allows both HTTP and HTTPS, both PUT and POST is also allowed.The payments requests are getting accepted and when I do a status check they are successful. But I am not receiving any callbacks. I have tried sending multiple payment requests but did not receive callback for any of the request. Example request payload:URL: https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopayRequest payload:{"currency":"EUR","amount":"15","externalId":"b5926558-cd36-40fa-b455-67ef5e97d2e5","payer":{"partyIdType":"MSISDN","partyId":"22933123466"},"payerMessage":"Wallet Recharge","payeeNote":"Wallet Recharge"}
Hello I want to know what value concerns X-Target-Environment for the request headers in the sandbox because I put sandbox but the answer returns me an error 400 thank you kindly refer me to those who know this is a description about X-Target-Environment The identifier of the Wallet Platform system where the transaction shall be processed. This parameter is used to route the request to the Wallet Platform system that will initiate the transaction.
Get Paid: Enabling Seamless Payments for All businesses from the MoMo Subscribers
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.