Skip to content

Commit c6a93ce

Browse files
Aimen Sahnoungitbook-bot
authored andcommitted
GITBOOK-184: feat: add Fees page to the docs
1 parent 1117185 commit c6a93ce

2 files changed

Lines changed: 79 additions & 0 deletions

File tree

docs/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
## Request Network API
66

77
* [Create and Pay Requests](request-network-api/create-and-pay-requests.md)
8+
* [Fees](request-network-api/fees.md)
89
* [Crosschain Payments](request-network-api/crosschain-payments.md)
910
* [Crypto-to-fiat Payments](request-network-api/crypto-to-fiat-payments.md)
1011
* [Batch Payments](request-network-api/batch-payments.md)

docs/request-network-api/fees.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Fees
2+
3+
### Protocol Fee
4+
5+
Request Network charges a protocol fee on all payments processed through the API.
6+
7+
### Fee Structure
8+
9+
| Fee Type | Rate | Cap |
10+
| ------------ | ---------------------- | ------------------------------------------------- |
11+
| Protocol Fee | 5 basis points (0.05%) | \~$25/€25 for main USD and EUR backed stablecoins |
12+
13+
The protocol fees applies to all the payment types
14+
15+
* ERC20 token payments
16+
* Native currency payments (ETH, POL, etc.)
17+
* Conversion payments
18+
* Batch payments
19+
* Crosschain payments
20+
* Subscription (coming soon)
21+
22+
### Who Pays the Fee?
23+
24+
By default, the payer bears the protocol fee. The fee is added on top of the invoice amount.
25+
26+
#### Example
27+
28+
* Invoice amount: 1000 USDC
29+
* Protocol fee: 1000 x 0.05% = 0.50 USDC
30+
* Total paid by payer: 1000.50 USDC + gas fee
31+
* Amount received by payee: 1000 USDC
32+
33+
For larger payments with stablecoins, the fee is capped:
34+
35+
* Payment of 100,000 USDC -> Fee capped at 25 USDC (not 50 USDC)
36+
37+
### Shifting the Fee to the Payee
38+
39+
If you want the payee to bear the protocol fee instead of the payer, simple reduce the invoice amount by 5bps (0.05%) before creating the request.
40+
41+
#### Example:
42+
43+
* Original intended payment: 1000 USDC
44+
* Reduce by 0.05%: 1000 - (1000 x 0.05%) = 999.50 USDC
45+
* Total paid by the payer: 1000 USDC + gas fee
46+
* Amount received by payee: 999.95 USDC
47+
48+
This way, the payer pays approximately the original amount while the payee effectively absorbs the fee.
49+
50+
### Platform Fees
51+
52+
You can add your own platform fee on top of the protocol fee. Both fees are handled automatically when you configure a platform fee in your request.
53+
54+
To set up platform fees, include the following parameters in your payment request:
55+
56+
* `feePercentage` : Your platform fee percentage (e.g., "2.5").
57+
* `feeAddress` : The wallet address to receive your platform fees.
58+
59+
When both protocol and platform fees are configured, the API automatically batches them into a single transaction for the payer.
60+
61+
#### Fee Information In Responses
62+
63+
Every API response includes the fee details in the metadata:
64+
65+
```json
66+
{
67+
"metadata": {
68+
"protocolFee": {
69+
"percentage": "0.05",
70+
"address": "0x..."
71+
},
72+
"platformFee": {
73+
"percentage": "2.5",
74+
"address": "0x..."
75+
}
76+
}
77+
}
78+
```

0 commit comments

Comments
 (0)