API reference
Every endpoint of the Swichi Payments API, generated from its OpenAPI contract, with a Try it panel.
The reference is generated from payments.yaml, the same contract the API is
tested against. Base URL: https://gateway.swichi.cc/v1.
Try it runs a real request from your browser. Paste a sandbox key only: the sandbox uses test money and nothing real moves. Live keys are for your server; never paste one here.
- Authenticate with
Authorization: Bearer <your payments key>(API keys). - Send
Idempotency-Keyon every POST that moves money (Idempotency). - Amounts are whole Tanzanian shillings (
"currency": "TZS"). - Errors have one shape, with
retryableand adoc_urlto Errors.