Introduction
What the Flex Malipo API does and where it lives.
Collect mobile money payments, pay out from your balance, refund customers, and get every outcome on your own server.
Base URL
https://api-malipo.flex.co.tzEvery endpoint in this version starts with /api/v1. Send JSON over HTTPS, with an access token you get from your
API key (Authentication).
What you can do
Collect payments
Ask a customer to pay from their M-Pesa or Mixx by Yas wallet. They approve on their phone.
Pay out
Send money from your Flex Malipo balance to a customer's wallet.
Refunds
Send money back to the number that paid, in full or in part.
Webhooks
Get every payment outcome on your server as it happens.
Rules that apply to every call
- Every amount is an integer in the currency's smallest unit: Money.
- Every error has the same body: Errors.
- Send an
Idempotency-Keyon writes so you can retry them: Idempotency. - The API changes by dated versions: Versioning.
Test and live
Build with a test key: it works straight after sign-up and moves no money. Switch to a live key once your merchant is verified. See Test mode.