Skip to main content
If your workspace is a financial institution with sub-accounts, you can charge your own fee on the payouts those sub-accounts send. Zuba adds the fee to the sub-account’s debit, holds it while the payout is in flight, and pays it to your main balance once the payout is paid. If the payout fails, is cancelled or is returned, the fee goes back to the sub-account. You can set a fee in two ways:
  • A default per currency pair. Set it once with PUT /v1/developer-fees (or in the dashboard) and every payout on that pair from any of your sub-accounts carries it.
  • An override per payout. Send developerFee on POST /v1/payouts to replace the default for that one payout, or to waive it.
Payouts sent from your main balance (no Zuba-Account-Id header) never carry a developer fee.

Prerequisites

  • A financial-institution workspace with sub-accounts. Developer fees apply only to payouts sent from a sub-account (see Sending from a sub-account). Any other workspace gets 403 developer_fees_not_available on every developer fee endpoint. Contact your account manager to get set up.
  • An API key with the developer fee scopes. Reading fees needs read:developer_fees; setting or removing one needs write:developer_fees (see Scopes).
The examples below use the sandbox host https://api.sandbox.zuba.com. In production, swap it for https://api.zuba.com; everything else is identical.

How a fee is calculated

A fee has a percentage, a fixed amount, or both:
  • percentage is a percent of the payout amount, from 0 to 100 with at most 2 decimal places. "0.5" is 0.5%.
  • fixed is an amount in the payout’s source currency (the currency debited), with no more decimal places than that currency has (2 for USD, 8 for USDC and USDT).
When both are set they are added together. The result is rounded up to the source currency’s smallest unit. The developer fee is charged on top of the payout and Zuba’s fee. The payout’s totalDebit is the full amount taken from the sub-account, developer fee included.

Step 1: See which pairs you can set a fee on

A fee can be set on any currency pair your workspace has enabled for payouts. List them:
All pairs come back in one page, sorted by from then to.

Step 2: Set a default fee for a pair

PUT creates the fee or replaces the one already set on the pair. There is one fee per pair, and it applies to every sub-account. Sending the same fee again changes nothing. To list every fee you have set:
The list is newest first and paginated with cursor and limit, like other list endpoints. A fee on a pair that is no longer enabled for payouts stays in the list with enabled: false. It is kept, but charges nothing.

Step 3: Send a payout from a sub-account

Send the payout as usual with the sub-account’s ID in Zuba-Account-Id. The default fee for its pair applies on its own:
The payout carries a developerFee object:
A returned payout refunds the developer fee even when it keeps Zuba’s fee. developerFee is null on a payout that carries no developer fee. The same object is on GET /v1/payouts/{id} and in payout webhook events.

Override or waive the fee on one payout

Send developerFee in the POST /v1/payouts body to price one payout differently from the pair’s default:
To waive the fee on a payout, send zero for both terms:
A waived fee has an amount of 0 and is never held: its status reads earned unless the payout failed, was cancelled or was returned. An override with a fixed amount other than zero needs the source currency, so on a payout other than crypto the request must also carry inputCurrency or a quoteId. Without one it is refused with 422 input_currency_required. A waiver needs neither, since a zero fixed amount is the same in every currency.

Remove a fee

A successful removal returns 204. Payouts on that pair then carry no developer fee unless the request sends its own.

Managing fees in the dashboard

Owners and admins of a financial-institution workspace can also set, change and remove fees in the dashboard under Accounts → Developer fees. It lists every enabled pair with its fee, or “No fee”, and the fee on a 1,000 payout. Other roles see the fees read-only.

Errors

See Error handling for the general error format.