Partner fees
Earn on each trade by adding your own fee to a quote. Pulse builds it into the rate and pays it to your wallet when the order settles.
A partner fee is your own charge on a trade. You set it on each quote, the customer sees one rate that includes it, and Pulse pays it to your wallet when the order settles. You do not collect anything from the customer yourself.
How partner fees work
- A team admin sets your fee wallets in the dashboard.
- You add a fee to a quote as a percentage, set in basis points (bps). 100 bps is 1%.
- Pulse builds the fee into the quote rate. The customer sees one rate and one pair of amounts.
- The customer accepts the quote, and you create the order from it.
- When the order settles, Pulse sends your fee to your wallet in crypto.
- The order shows the fee paid and the transaction.
The fee raises an onramp rate and lowers an offramp rate. The amount you fix on the quote decides what the customer feels:
- Fixed
source_amount: the customer sends the same amount and receives less. - Fixed
destination_amount: the customer receives the same amount and sends more.
How Pulse calculates the fee
The fee is a percentage of the crypto amount of the trade. 100 bps is 1%, so 20 bps is 0.2%. The crypto amount is what the customer receives on an onramp and what the customer sends on an offramp. Pulse rounds the fee down to the precision of the asset.
For example, a customer spends ₦150,000 on USDT on POLYGON, and you set a fee of
20 bps (0.2%).
| Without a fee | With 20 bps (0.2%) | |
|---|---|---|
| Rate | 1538.46 | 1541.54 |
| Customer spends | ₦150,000 | ₦150,000 |
| Customer receives | 97.500097 USDT | 97.305292 USDT |
| Your fee | None | 0.2% of 97.305292 = 0.19461 USDT |
When you add a partner fee, know that:
- The fee is always paid in crypto, never in naira.
- The amount on the quote is an estimate. The fee paid comes from the executed order. It can be lower if the market moves before an offramp settles.
- A refreshed quote keeps the same fee.
- The default cap is 300 bps (3%).
- Indicative rates do not include a partner fee.
- Collection deposits do not carry a partner fee, because they do not use a quote.
Before you begin: set your fee wallets
You must set your wallets before you add a fee. A team admin sets one payout wallet for each network under Fees in the dashboard.
- An onramp fee goes to your wallet on the quoted network.
- An offramp fee can arrive in a different stablecoin, or on a different network, from the quote. Set a wallet on every network so that every offramp quote with a fee succeeds.
- A wallet change after your first save goes live after 24 hours.
Add a fee to a quote
Set partner_fee.bps on the quote request. This is the quote from the
example above.
curl https://engine-api.pilot.pulseshiga.io/v1/quotes \
-H "X-API-Key: <your key>" \
-H "Content-Type: application/json" \
-d '{
"source_currency": "NGN",
"destination_currency": "USDT",
"network": "POLYGON",
"source_amount": "150000",
"partner_fee": { "bps": 20 }
}'| Field | Description |
|---|---|
rate | The rate with your fee built in. Show this rate to the customer. |
partner_fee.bps | The fee you set. |
partner_fee.amount | The estimated fee. |
partner_fee.currency | The asset of the estimate. |
See the fee paid
An order from a quote with a fee returns partner_fee on
GET /v1/orders/{id}. It has only bps until Pulse pays the
fee. After the payout, it shows the fee paid:
"partner_fee": {
"bps": 20,
"amount": "0.19461",
"currency": "USDT",
"network": "POLYGON",
"transaction_hash": "0x5c50…"
}The order list does not return partner_fee.
Errors
| Code | Cause | Fix |
|---|---|---|
partner_fee_exceeds_cap | partner_fee.bps is above your cap. | Lower the fee to your cap or below. |
partner_fee_wallet_missing | You have no fee wallet for the payout network. | Set a wallet for that network in the dashboard. |