Fees
Read and set the fees you charge your customers on top of Depa's contractual rates, and estimate blockchain network fees.
Your contract sets a minimum fee per service. Anything you configure above it is your
markup and is credited to your collections account. Percentages are decimal fractions:
0.01 is 1%.
For markups on more rails (SWIFT, ACH, Fedwire, FPS, CHAPS), with defaults at vault level, use Vendor Fees.
/accounts/{account_id}/trading_feesReturns the trading fee charged to the account, as a decimal fraction (0.005 is 0.5%).
Authorization
BearerAuth Token from POST /sign_in, sent as Authorization: Bearer <token>.
In: header
Path Parameters
ID of the account.
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/8f3a2c1e-5b7d-4e9a-9c21-7d4b6e0f1a23/trading_fees"{ "data": { "name": "trading_fee", "enabled": true, "configuration": 0.005 }}/accounts/{account_id}/trading_feesSets the trading fee charged to the account, as a decimal fraction: 0.01 is 1%. Anything
above your contractual minimum is credited to your collections account. Fees below the
minimum, or above 100%, return 422.
Authorization
BearerAuth Token from POST /sign_in, sent as Authorization: Bearer <token>.
In: header
Path Parameters
ID of the account.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/accounts/8f3a2c1e-5b7d-4e9a-9c21-7d4b6e0f1a23/trading_fees" \ -H "Content-Type: application/json" \ -d '{ "trading_fee": 0.01 }'{ "data": { "name": "trading_fee", "enabled": true, "configuration": 0.01 }}/accounts/{account_id}/sepa_feesReturns the SEPA transfer fee charged to the account, a fixed amount plus a percentage of each payment.
Authorization
BearerAuth Token from POST /sign_in, sent as Authorization: Bearer <token>.
In: header
Path Parameters
ID of the account.
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/8f3a2c1e-5b7d-4e9a-9c21-7d4b6e0f1a23/sepa_fees"{ "data": { "fixed": 1, "percentage": 0.002 }}/accounts/{account_id}/sepa_feesSets the SEPA transfer fee charged to the account: fixed per payment plus percentage
of its amount, as a decimal fraction (0.01 is 1%). Anything above your contractual
minimum is credited to your collections account. Fees below the minimum return 422.
Authorization
BearerAuth Token from POST /sign_in, sent as Authorization: Bearer <token>.
In: header
Path Parameters
ID of the account.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/accounts/8f3a2c1e-5b7d-4e9a-9c21-7d4b6e0f1a23/sepa_fees" \ -H "Content-Type: application/json" \ -d '{ "sepa_fee": { "percentage": 0.002, "fixed": 1 } }'{ "data": { "name": "sepa_fee", "enabled": true, "configuration": { "fixed": 1, "percentage": 0.002 } }}/accounts/{account_id}/blockchain_wallets/{id}/feesReturns the network fee for a payment from this wallet, in the wallet's asset.
Authorization
BearerAuth Token from POST /sign_in, sent as Authorization: Bearer <token>.
In: header
Path Parameters
ID of the account.
uuidID of the blockchain wallet.
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/8f3a2c1e-5b7d-4e9a-9c21-7d4b6e0f1a23/blockchain_wallets/9a7b3c2d-1e4f-4a6b-8c9d-0e1f2a3b4c5d/fees"{ "data": { "network": "POLYGON", "fees": 0.05 }}/gas_feesReturns the estimated network fee of a blockchain payment for an asset and network, before you create it.
Authorization
BearerAuth Token from POST /sign_in, sent as Authorization: Bearer <token>.
In: header
Query Parameters
Blockchain network.
Value in
- "polygon"
- "bitcoin"
- "ethereum"
- "tron"
Asset to send.
Response Body
application/json
application/json
curl -X GET "https://example.com/gas_fees?blockchain=polygon&asset=USDC"{ "fees": 0.05, "asset": "USDC", "network": "polygon"}