Calculate fee
Calculate transaction fee. When `customer_id` is set, the server resolves `reference_id` from customer metadata (`{customer_id}:{package_year}`). Either `customer_id` or `reference_id` must be supplied. With `commit: true`, pass `transfer_id` so velocity commits are idempotent per transfer and matched rule (`transfer_id:rule_id`).
/v1/tariffs/calculate-feeAuthorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Provide customer_id (server resolves reference_id) or an explicit reference_id. When commit is true, include transfer_id for per-transfer velocity idempotency. Omitted or empty from_channel / to_channel default to any (wildcard fee-range matching).
Response Body
application/json
curl -X POST "https://example.com/v1/tariffs/calculate-fee" \ -H "Content-Type: application/json" \ -d '{ "amount": { "amount": "string", "currency": "string" }, "media": "string" }'{
"tariff_id": "d82b8db6-f412-4b9c-8c5e-6a0221035c86",
"tariff_name": "string",
"fee_range_id": "e83fe3ea-57cf-4b81-97b5-d4ebfa07c6cf",
"fixed_fee": {
"amount": "string",
"currency": "string",
"precision": 0
},
"percent_fee": 0,
"total_fee": {
"amount": "string",
"currency": "string",
"precision": 0
},
"min_fee": {
"amount": "string",
"currency": "string",
"precision": 0
},
"max_fee": {
"amount": "string",
"currency": "string",
"precision": 0
},
"method": "fixed",
"is_fallback": true
}