- 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
developerFeeonPOST /v1/payoutsto replace the default for that one payout, or to waive it.
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_availableon 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 needswrite:developer_fees(see Scopes).
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 apercentage, a fixed amount, or both:
percentageis a percent of the payout amount, from0to100with at most 2 decimal places."0.5"is 0.5%.fixedis 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).
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: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:
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 inZuba-Account-Id. The default fee for its pair applies on its own:
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
SenddeveloperFee in the POST /v1/payouts body to price one payout differently from the pair’s default:
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
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.