SwitchLock Docs
API v1.0 — General Availability

SwitchLock API

A double-entry financial ledger for the Zimbabwean market. Accept payments, hold funds in escrow, issue wallets, and process withdrawals — all through a single API built for compliance, integrity, and scale.

What can you build?

SwitchLock is a primitive — a financial engine you compose into products.

Marketplace Escrow

Hold buyer funds in escrow, release to sellers only when goods are confirmed. Built-in dispute resolution, milestone releases, and negotiation flows.

Escrow Docs

Digital Wallet Platform

Issue multi-currency wallets (USD & ZiG) to your users. Accept deposits, process withdrawals, and query full transaction history with double-entry integrity.

Ledger Docs

WhatsApp Payment Bot

Let buyers complete escrow payments entirely through WhatsApp. OTP verification, real-time status updates, and document collection — no app required.

WhatsApp Docs

Multi-Tenant Payment Rail

Run a fully isolated ledger per company tenant. Each merchant gets its own accounts, API keys, fee configs, and administrator roles.

Tenant Docs

How the API is organised

Every resource lives under a versioned base path (/v1). All authenticated endpoints require an x-api-key header and a company context header x-company-id.

ResourceBase PathWhat it covers
Payments/v1/paymentsPayment links, deposits, EFT checkout, accept/reject payments
Escrow/v1/escrowInitiate, fund, release, dispute, and negotiate escrow settlements
Identity/v1/identityCreate users, upload KYC documents, link national IDs
Ledger/v1/ledgerAccount statements, balances, transaction history, stats
Treasury/v1/treasuryWithdrawals to bank, bank fund captures, fee configs
Companies/v1/core/companiesRegister tenants, manage API keys, administrators, KYB
Auth/v1/authDashboard login, token refresh, password reset
WhatsApp/v1/whatsappMeta webhook handlers, file upload, signed URL generation

Start here

What's built in

USD & ZiG Native

Seamlessly track Zimbabwe Gold (ZiG) and USD side-by-side with no FX ambiguity.

Double-Entry Ledger

Every cent is accounted for. Every debit has a credit. Math-verified at rest.

IMTT & WHT Compliant

Built-in engines calculate and deduct Intermediated Money Transfer Tax and Withholding Tax automatically.

Idempotent Payments

Safe retries on all financial mutations. Duplicate requests return the original result, never double-charge.

Stateful Escrow

A full escrow state machine — PENDING → FUNDED → DELIVERED → RELEASED — with timeline events at every step.

WhatsApp-First

Buyers can pay, verify identity, and receive receipts without ever leaving WhatsApp.

Never call this API from a browser or mobile app directly.

All SwitchLock API calls must originate from your secure backend. API keys embedded in frontend code are trivially extractable and could allow unauthorized fund movements on your account.