curl --request POST \
--url https://api.example.com/v1/tariffs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"fallback_tariff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"default": false
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"fallback_tariff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"default": true,
"fee_ranges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tariff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"range_start": 1,
"range_end": 1,
"fixed_fee": 1,
"percent_fee": 1,
"method": "fixed",
"min_fee": 1,
"max_fee": 1,
"media": "<string>",
"asset": "<string>",
"from_channel": "<string>",
"to_channel": "<string>",
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"active": true
}
],
"velocity_rules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "transaction_count",
"interval": "once",
"limit": 1,
"active": true
}
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Create a new tariff
curl --request POST \
--url https://api.example.com/v1/tariffs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"fallback_tariff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"default": false
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"fallback_tariff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"default": true,
"fee_ranges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tariff_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"range_start": 1,
"range_end": 1,
"fixed_fee": 1,
"percent_fee": 1,
"method": "fixed",
"min_fee": 1,
"max_fee": 1,
"media": "<string>",
"asset": "<string>",
"from_channel": "<string>",
"to_channel": "<string>",
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"active": true
}
],
"velocity_rules": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "transaction_count",
"interval": "once",
"limit": 1,
"active": true
}
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Tariff created successfully
Show child attributes
x >= 0x >= 0x >= 0x >= 0fixed, percentage, greater, lesser, sum x >= 0x >= 0Show child attributes