Collections and payouts for Rwanda and Uganda.
Guides and API reference for collecting and paying out in RWF and UGX. Build in test mode, then go live.
Test keys never move real money. Try the demo checkout
curl -X POST https://api.inversepay.app/api/b/v1/charges \
-H "Authorization: Bearer $INVERSEPAY_TEST_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"idempotency_key": "order-1001",
"amount_minor": 500000,
"currency": "RWF",
"payer": {
"phone_number": "250788123456",
"network": "MTN",
"country_code": "RW"
}
}'Coverage
Rwanda and Uganda, one request shape.
Collect and pay out in RWF and UGX. The request is the same in both countries; only the currency and the payer's number change.
Rwanda
RWFUganda
UGXThe shape of everything
Three rules, and the whole surface follows them.
Learn these once and every endpoint on the API behaves the way you expect it to.
Amounts are minor units
5,000 RWF is 500000. Nothing accepts a decimal amount, because a decimal amount is a rounding argument waiting to happen.
"amount_minor": 500000Writes need an idempotency key
Send the same key again and you get the original object back, not a second one. This is how you retry safely after a timeout.
Idempotency-Key: 01J...Test and live never mix
A test key cannot see live data and a live key cannot see test data — including idempotency keys, so your build-time order references never collide with the real ones.
sk_test_… / sk_live_…Testing
Fail on purpose, before you fail by accident.
Test mode is the same API and the same validation, reached with a key that begins sk_test_. Send one of these amounts and it declines or times out on cue.
999999declined999998timed out999997payouts: succeeded, then reversed999996payouts: pending review- anything elsesucceeds
Start here
Pick a thread.
Get a test key and send your first charge.
About ten minutes, and nothing you do with a test key moves real money.