API reference
Every endpoint, with request and response examples.
Everything under this section is generated from /openapi-b.json, which the API
builds from its own mounted routes. A page here cannot describe an endpoint that
does not exist, and an endpoint that changes shape changes here on the next
build.
Pages are grouped by the object they act on — Charges, Payment links, Payouts, Webhooks — not by URL, so you can find things by what you are trying to do. Each one starts with what it needs before you call it: the key's scope, anything to set up first, and the guide that explains it.
Before you start
Base URL
https://api.inversepay.app/api/b/v1Test and live share this one host. Sandbox is not a separate deployment: the
key decides, so a sk_test_ key is test mode and moves no money, and a
sk_live_ key is live. See Testing.
Every request carries Authorization: Bearer <your key>. See
Authentication.
Every write carries Idempotency-Key. Retrying with the same key returns
the original object rather than creating a second one.
Every amount is in minor units. 5,000 RWF is 500000, and 50,000 UGX is
5000000.
Errors
Every refusal has one shape, type, code, message and request_id,
and every operation page lists the refusals it can return. What each code means
and what to do about it is on Errors.
Try it
Every operation page shows the request and response, with samples you can copy
into a terminal or your HTTP client. Use a sk_test_ key and nothing you do
can move money.