Quickstart
Get up and running with the Malipo API in minutes.
Get your API key
Section titled “Get your API key”Create a sandbox API key from the Sandbox section of your dashboard.
Make your first request
Section titled “Make your first request”Use the test console or your own code to make a charge request.
curl -X POST https://api.malipo.dev/v1/charges \ -H "Authorization: Bearer sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "amount": 1000, "currency": "CDF", "phone": "+243812345678", "network": "airtel" }'SDK examples
Section titled “SDK examples”Create a charge using our official SDKs in your preferred language.
JavaScript / TypeScript
Section titled “JavaScript / TypeScript”import { Malipo } from "malipo";
const malipo = new Malipo("sk_test_...");
const charge = await malipo.charges.create({ amount: 1000, currency: "CDF", phone: "+243812345678", network: "airtel"});Python
Section titled “Python”import malipo
malipo.api_key = "sk_test_..."
charge = malipo.Charge.create( amount=1000, currency="CDF", phone="+243812345678", network="airtel")curl -X POST https://api.malipo.dev/v1/charges \ -H "Authorization: Bearer sk_test_..." \ -H "Content-Type: application/json" \ -d '{ "amount": 1000, "currency": "CDF", "phone": "+243812345678", "network": "airtel" }'