Skip to main content
StickyF.A.Q.

MoMo API Production Configuration .

  • August 2, 2023
  • 9 replies
  • 3739 views

Forum|alt.badge.img

Changing from sandbox configs to production environment details required one to do the following; -

 

Account details.

In SandBox, the API_USER and API_KEY are self-generated by calling the APIs in the sandbox-user-provisioning. In production, these details are got from the Partner Portal (https://mobilemoneyreadonly.mtn.co.ug).  The account credentials required to sign in are;-

  • Username (e.g username.sp1) → this is shared one on one by the account manager.
  • MSISDN → a fully registered MTN SIM Card that can receive an OTP.

 

Note: Partner Portal urls are country specific above shared example is for Uganda, an equivalent for another country can be got from your account manager.

 

API_USER & API_KEY

On navigating to the Partner Portal; -

  1. Sign in using the option of “Forgot Password or “First Login”. An OTP is sent to the MSISDN which you can use to sign in and then set/reset your password.

     

  2. Once signed in, locate the “API Access” menu option under the profile button at the top right corner of the page and click it.
    This will take you to the API Access page.

     

  3. From the API access page, click the Create API User button.

     

  4. From the popup, select the Account (if given more than one)
  5. Fill in the Provider Callback Host Payment Server URL
    e.g.
    If the URL for callbacks is https://kujahapa.com/openapi/print.php then,
    full_URL Payment Server URL=https://kujahapa.com/openapi/print.php
    Host = Provider Callback Host = kujahapa.com
  6. When done, select OK

     

  7. You Will be presented  a pop up with the API_Key, store it jealously
  8. API_User will be displayed along with the Callback URL

     

     

 

Production  Subscription Keys

Once KYC validation and verification is done, an account is created on the production developer portal https://momoapi.mtn.com/ using an email address which you as a partner submit to MTN team.

On the portal, you need to navigate to signin on the top navigation of the page and click on the forgot password down below (https://momoapi.mtn.com/forgot-password).

Enter the email address, sign in and reset the password.

After that, navigate to Profile section and this is where you will get the subscription keys.

 

 

Production configurations

These are the changes one has to make when crossing from sandbox to production; -

Config Sandbox Production
Base URL sandbox.momodeveloper.mtn.com

proxy.momoapi.mtn.com

X-Target-Environment sandbox Refer to countries section below.
MSISDN test numbers & any number Actual subscriber number according to country e.g. 2567…… for Uganda.
Developer portal https://momodeveloper.mtn.com/

https://momoapi.mtn.com/

Currency EUR Refer to countries section below.

 

Countries

Country X-Target-Environment Currency
MTN Uganda mtnuganda UGX
MTN Ghana mtnghana GHS
MTN Ivory Coast mtnivorycoast XOF
MTN Zambia mtnzambia ZMW
MTN Cameroon mtncameroon XAF
MTN Benin mtnbenin XOF
MTN Congo B mtncongo XAF
MTN Swaziland mtnswaziland SZL
MTN GuineaConakry mtnguineaconakry GNF
MTN SouthAfrica mtnsouthafrica ZAR
MTN Liberia mtnliberia LRD

 

 

 

9 replies

Maxie
  • New Member
  • October 10, 2023

Very helpful! Thank you Allan.


  • New Member
  • March 16, 2024

where to find this site


At https://mobilemoneyreadonly.mtn.co.ug though the interface has since changed.


  • New Member
  • August 9, 2024

How exactly does one register into the partner portal because all I see is this.
 

So, what exactly should I put as a username because it seems it expects my username to already be registered in the system since I receive this message afterwards.
 

 


Hello Emma.

It’s MTN admin to register you on that platform upon account activation. Credentials are shared with you confidentially and they are what you require to signin.


  • New Member
  • August 9, 2024

Hello Simon.

Thanks for the reply.

So, I just have another inquiry. What is the procedure for the account creation for that platform, because as it stands now, I have the production level subscription keys for my API and now all I need is to get an API user and API key. 

 


  • New Member
  • March 6, 2026

Hi everyone,

I am currently integrating the MTN MoMo payment gateway into my application and have run into an issue that I would appreciate some guidance on.

After getting the API User Key and API User Reference ID from the MTN Developer Portal, everything works correctly for some time. However, after a few hours, the token generation request starts returning the following error:

{"error":"invalid_client"}

From my debugging, it appears that the API User Key changes, which causes the authentication to fail.

I would like to clarify a couple of things:

  1. In a production environment, is it expected that the API Key needs to be regenerated periodically, or should it remain the same unless manually regenerated?

  2. If it is not supposed to change automatically, could someone explain what might cause the API Key to change after some time?

Any insights or suggestions would be greatly appreciated. Thank you in advance for your help. 🙂


  • Community Manager
  • March 7, 2026

The API Key does not change in production, unless you change it manually from the partner portal.  As to why the api key is changing in the sandbox from your experience is something the team will test and revert. But the API Key does not change. 


  • New Member
  • March 10, 2026

Hi everyone,

I wanted to know if there is any expiry time associated with the API Key generated from the MTN Partner Portal in the production environment. Does the API Key expire after a certain duration (for example, 24 hours), requiring it to be regenerated periodically?

If it does expire, could someone please confirm the correct API or process that should be used in the production environment to regenerate or refresh it?