Create an API key
Use a master key to manage a business, or a wallet key to limit access to one wallet.
Give your customers a wallet, a trustworthy balance and a complete transaction history without having to build the billing ledger yourself.
AirBank is the account of record behind your app, checkout or embedded component. Your integration asks us for balances, records money movements and lets your team issue the resulting invoice.
Use a master key to manage a business, or a wallet key to limit access to one wallet.
Give each client, campaign or collection its own wallet and reference.
Post a credit or debit with an idempotency key. AirBank updates the balance atomically.
Send a key on every call using Authorization: Bearer <key> or X-AirBank-Key. Keys are shown only when created; AirBank stores a one-way hash, never the original secret.
Lists every wallet belonging to your business and creates wallets for new clients or campaigns.
abm_••••••••••••••Read-only: can see balances and transactions for the linked wallet only. It can never move money, so it is safe for embedded use.
abw_••••••••••••••All endpoints are versioned under /api/v1, return JSON, and use ZAR monetary values in the current South African release.
/walletsList wallets accessible to this key.
/walletsCreate a wallet. Master key required.
/wallets/{id}/balanceRetrieve the available balance.
/wallets/{id}/transactionsRetrieve its transaction ledger.
/wallets/{id}/transactionsRecord a credit or debit and update the balance.
/wallets/{id}/transactions/{journalId}/reverseMaster key only. Post a compensating reversal; history remains intact.
/meConfirm the authenticated business and key scope.
Master keys can provision access, create and control collections, and retrieve reporting data. Wallet keys cannot use these organisation-wide endpoints.
/keysList master and wallet API keys, without ever returning secrets.
/keysCreate a master or wallet key. The token is returned once only.
/keys/{id}Revoke an active key immediately. A key cannot revoke itself.
/campaignsList the business’s collection campaigns and their totals.
/campaignsCreate a draft campaign linked to an owned wallet.
/campaigns/{publicId}Set a campaign to draft, active, paused or closed.
/reports/summaryGet money in, money out, funds held and successful-payment totals.
/reports/campaignsRetrieve each campaign’s collection performance.
/paymentsSearch payment intents by campaign, payer, merchant reference or provider transaction ID.
Master keys can register HTTPS webhook endpoints for posted and reversed wallet transactions. Every delivery is signed, retried safely and recorded by AirBank.
Subscribe a business or one wallet to wallet events or payout.paid.
/webhooksUse the signing secret returned once at creation to verify the timestamped X-AirBank-Signature header.
t=...,v1=...Include airbank.js, then drop in a campaign card (public, no key) or a read-only wallet card. Widgets render in a shadow root and never inject API data as markup.
<script src="https://YOUR-AIRBANK-HOST/js/airbank.js" defer></script>
<div data-airbank="campaign" data-campaign="PUBLIC_ID"></div>
<div data-airbank="wallet"
data-api="https://YOUR-API-HOST"
data-key="abw_…" data-refresh="30"></div>
<!-- Pay from a wallet: your server creates the session (master key), the visitor confirms -->
<div data-airbank="pay"
data-api="https://YOUR-API-HOST"
data-session="abs_…"></div>
Every transaction post requires an idempotency key, a positive amount, a direction and a transaction type. If a payment provider retries the same request, AirBank returns the original result rather than creating another movement.
Each accepted movement posts equal debit and credit ledger entries and updates the wallet balance in the same database transaction. Debits are rejected if they would take a wallet below zero; corrections are compensating reversals, never edits.
POST /api/v1/wallets/42/transactions { "amount": 250.00, "direction": "CREDIT", "transactionType": "PAYMENT", "externalReference": "TUCKSHOP-ORDER-4821", "description": "Tuckshop payment", "idempotencyKey": "6c7fd8d4-85f5-4ae9-91a2" }
Start with one wallet. Expand into embedded checkout, campaigns and payment-provider connections as your product grows.