Tariffsv1Fee Ranges
Create fee range
Create a new fee range
POST
/v1/tariffs/rangesAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/tariffs/ranges" \ -H "Content-Type: application/json" \ -d '{ "tariff_id": "d82b8db6-f412-4b9c-8c5e-6a0221035c86", "range_start": 0, "range_end": 0, "method": "fixed" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"tariff_id": "d82b8db6-f412-4b9c-8c5e-6a0221035c86",
"range_start": 0,
"range_end": 0,
"fixed_fee": 0,
"percent_fee": 0,
"method": "fixed",
"min_fee": 0,
"max_fee": 0,
"media": "string",
"asset": "string",
"from_channel": "string",
"to_channel": "string",
"transaction_type": "string",
"valid_from": "2019-08-24T14:15:22Z",
"valid_to": "2019-08-24T14:15:22Z",
"active": true
}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`).
Get a specific fee range