Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Endpoints

Every endpoint of the Fonbnk Merchant API, grouped by what it does.

Every endpoint lives on the hosts listed in Servers and needs the signed headers described in Signing requests.

Discovery

Call these before you show a price to a user. They tell you what you can sell and inside which bounds.

Endpoint
Method
What it returns

GET

Every currency you can use, its payment channels, and which currency types it pairs with.

GET

The min and max order amount for one deposit/payout pair.

/api/v2/limits

GET

The platform and per-user volume rules behind those amounts, with how much is already consumed.

Orders

Endpoint
Method
What it does

POST

Locks a price and returns the fields you must collect from the user.

POST

Creates the order and returns its transfer instructions.

POST

Starts or retries an STK push, or submits the OTP code that unlocks one.

POST

Tells us the user has paid.

POST

Cancels an order that has not been paid yet.

GET

Reads one order by its ID or by your own reference.

GET

Lists your orders, with cursor pagination and filters.

KYC

Endpoint
Method
What it does

GET

Returns the user's KYC state, the rules for their country, and the documents they can submit.

POST

Submits a KYC document for a user.

The decision flow that ties those two together is on KYC flow.

Merchant balance

Endpoint
Method
What it does

GET

Your current balance per currency.

GET

The (network, asset) pairs you can top up with.

GET

The min and max for one deposit pair.

POST

Creates a crypto deposit and returns the address to send to.

POST

Submits the transaction hash of your deposit.

POST

Cancels a deposit that is still awaiting funds.

GET

Lists your deposits.

GET

The (network, asset) pairs you can withdraw to.

GET

The min and max for one withdrawal pair.

POST

Creates a withdrawal. Deducts the amount and waits for approval.

POST

Cancels a withdrawal that is still awaiting approval.

GET

Reads one withdrawal.

GET

Lists your withdrawals.

These are gated per account. See Merchant balance for the lifecycle and the error codes.

Pay Widget helpers

Endpoint
Method
What it does

POST

Logs a user in on your behalf so the widget can skip its auth screen.

The shared enums and object types every endpoint here refers to live on one page: Types.