Appearance
Money
Every amount is an object with an integer number of minor units (kobo for NGN, cents for USD) and an ISO 4217 currency code.
| Direction | Shape | Example |
|---|---|---|
| Request | { "amountMinor": number, "currency": string } | { "amountMinor": 125000, "currency": "NGN" } |
| Response | { "amountMinor": string, "currency": string } | { "amountMinor": "125000", "currency": "NGN" } |
125000 kobo is ₦1,250.00.
Why strings in responses
Balances and totals are 64-bit integers on the server. JavaScript numbers lose precision above 2^53, so responses send amountMinor as a decimal string. Parse it with BigInt (or your language's big-integer or decimal type), never with parseFloat.
ts
const minor = BigInt(balance.amountMinor); // 125000n
const display = new Intl.NumberFormat("en-NG", {
style: "currency",
currency: balance.currency,
}).format(Number(minor) / 100); // Display only; NGN has 2 decimalsRules
- Never use floats for money, in storage or arithmetic. Do the arithmetic in minor units.
- Currency always travels with the amount. Don't assume NGN.
- Use the currency's own number of decimals for display (from the
currencieslookup). - Fees are computed on the server and returned as their own amounts (
fee,net), so the client never recomputes them. - Every money-moving request takes an
Idempotency-Key. - Behind the API, every movement is a balanced double-entry ledger transaction. Receipts and history are derived from it, so they always add up.
Fees
Platform fees are a configurable percentage of gross:
| Product | Default fee |
|---|---|
| Mart sales | 15% |
| Fan funding | 10% |
| Live tickets | 15% |
| Live gifts | 20% |
| Superfan memberships | 10% |
| Beats and licences | 15% |
Payment-provider fees (Hyparrow service fee and VAT) are shown at checkout. See Wallet & payments.