AirBank API · v1 private beta

The wallet layer
inside your product.

Give your customers a wallet, a trustworthy balance and a complete transaction history without having to build the billing ledger yourself.

Start here

Built for the journey from collection to reconciliation.

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.

01

Create an API key

Use a master key to manage a business, or a wallet key to limit access to one wallet.

02

Create a wallet

Give each client, campaign or collection its own wallet and reference.

03

Record movement

Post a credit or debit with an idempotency key. AirBank updates the balance atomically.

Authentication

Two keys. Clear boundaries.

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.

Master

Business-wide control

Lists every wallet belonging to your business and creates wallets for new clients or campaigns.

abm_••••••••••••••
Wallet

Single-wallet access

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_••••••••••••••
API reference

Core wallet endpoints

All endpoints are versioned under /api/v1, return JSON, and use ZAR monetary values in the current South African release.

MethodEndpointUse it for
GET/wallets

List wallets accessible to this key.

POST/wallets

Create a wallet. Master key required.

GET/wallets/{id}/balance

Retrieve the available balance.

GET/wallets/{id}/transactions

Retrieve its transaction ledger.

POST/wallets/{id}/transactions

Record a credit or debit and update the balance.

POST/wallets/{id}/transactions/{journalId}/reverse

Master key only. Post a compensating reversal; history remains intact.

GET/me

Confirm the authenticated business and key scope.

Management API

Manage the platform from your own back office.

Master keys can provision access, create and control collections, and retrieve reporting data. Wallet keys cannot use these organisation-wide endpoints.

MethodEndpointUse it for
GET/keys

List master and wallet API keys, without ever returning secrets.

POST/keys

Create a master or wallet key. The token is returned once only.

DELETE/keys/{id}

Revoke an active key immediately. A key cannot revoke itself.

GET/campaigns

List the business’s collection campaigns and their totals.

POST/campaigns

Create a draft campaign linked to an owned wallet.

PATCH/campaigns/{publicId}

Set a campaign to draft, active, paused or closed.

GET/reports/summary

Get money in, money out, funds held and successful-payment totals.

GET/reports/campaigns

Retrieve each campaign’s collection performance.

GET/payments

Search payment intents by campaign, payer, merchant reference or provider transaction ID.

Webhooks

Know when money moves.

Master keys can register HTTPS webhook endpoints for posted and reversed wallet transactions. Every delivery is signed, retried safely and recorded by AirBank.

POST

Create an endpoint

Subscribe a business or one wallet to wallet events or payout.paid.

/webhooks
HMAC

Verify each delivery

Use the signing secret returned once at creation to verify the timestamped X-AirBank-Signature header.

t=...,v1=...
Embed

Add AirBank to your site with one script.

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>
A safe transaction flow

Retry without double-charging.

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"
}
Ready when you are

Build the payment experience your customers should see.

Start with one wallet. Expand into embedded checkout, campaigns and payment-provider connections as your product grows.

Create your account