POST
/
v1
/
tariffs
{
  "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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
description
string
fallback_tariff_id
string
active
boolean
default:
true
default
boolean
default:
false

Response

201
application/json
Tariff created successfully
id
string
name
string
description
string
fallback_tariff_id
string
active
boolean
default
boolean
fee_ranges
object[]
velocity_rules
object[]
created_at
string
created_by
string