Why MoMo Open API
At MoMo, one of our visions is to bridge businesses and customers, fostering diversity for businesses, belonging for customers, and inclusivity for everyone. We believe that through innovation and leveraging technology, we implemented OpenAPIs to aid us achieve this vision.
Exciting Features Let's explore some incredible capabilities of this API:
- Get Paid: Ever wished you could get paid with just a tap on your phone? Now you can! Businesses can request payments, and you just approve with your PIN. It's like magic come to life!
- Pay: Need to transfer money to a friend or pay for a service? This API has you covered. Perfect for anything from splitting dinner bills to paying your rent.
- Invoicing: Aspiring entrepreneurs can now send polished invoices directly from their phones. No more chasing down payments!
- Cash In, Cash Out: Transform your local shop into a mini-ATM. You can deposit or withdraw money from your MoMo wallet, making every corner store a banking hub!
- Know Your Customer – Basic Info API allows businesses to verify a client's identity by confirming their first and last names prior to a transaction. The KYC-Consent API permits companies to obtain customer permission to access additional details beyond basic information, including their first and last names.
MoMo Open API Use Case
- Why carry cash when you can MoMoIt? Imagine you're out shopping. You select your favorite items and, instead of searching for cash or cards at the counter, you simply show your phone. Using the Getpaid API, the cashier sends a request, you enter your PIN, and just like that, the payment is complete. It's easy and fast!
- The convenience continues. The shopkeeper orders more products from the factory, utilizing the Invoice API, they receive MoMo invoice via SMS, and pays using the MoMo App or MoMo USSD.
- After a long workday, you receive your salary from your employer leveraging the Pay API, After paying your bills support by payment API capability, refueling your car using your MoMo wallet through Debit API. As the evening sets in, you relax with your favorite show, subscribed via MoMo supported by the pre-approval API, that allows service providers to debit your MoMo wallet without PIN.
- Forget carrying cash; you can save and invest for future uncertainties. If you're short on funds, you can even get a MoMo loan and repay it later. So, why stick to cash that ages?
Getting started
Generate Subscription Keys
-
Sign up https://momodeveloper.mtn.com
-
Navigate to the products page Product-descriptions.
-
Select drop down on product that suits the business case and subscribe.
-
After completion, you can locate the Subscription Keys in your profile. Access additional information
through the link below on creating subscription keys How to create subscription keys
on MoMoDeveloper | MoMo Dev Community (mtn.com)
Configure the EnvEnvironment varibles as shown below
| Subscription name | Key Type | Variable |
| Disbursements | Primary | 635951aafb4f46bc86df1ab2c928a75b |
| Collections | Primary | 4c91dae7a6f1474387a23a1f3d448eb7|
Fork the MoMo Open API Postman Collection
Generate API User and Key SandBox
Run the below request to generate API user and Key. These will be auto saved within the environment leveraging on scripting.
Get API user and Key
Test MSISDN Numbers
In the Sandbox, adjust the Test Numbers (MSISDN) within the sandbox environment as follows. Each numeric string yields a distinct response status within the Sandbox. For Production, Number begins with the country code.
Number | Expected Status Response |
---|---|
46733123450 | Failed |
46733123451 | Rejected |
46733123452 | Timeout |
56733123453 | Success |
46733123454 | Pending |
Authorization
Consists of Bearer Access Token API, this is also saved with in the environment, will refresh once its time has expired, 60 minutes.
We have set up various support communities from WhatsApp to Postman. We've taken an extra step with Postman by thoroughly documenting API use cases per the MoMo story for businesses. For developers, we've included test scripts that guide you when debugging a bad request or response code. Check out the MoMo OpenAPI Postman collection. to get started.
Freelancers, business owners, developers, students, men, women, young and old adults, join the MoMo community. Ask questions, learn, collaborate, support, and share ideas with us. Remember, inclusion means no one is left behind. We are united, and together we grow and enhance each other.
MoMo Developer Community | MoMo Dev Community