Skip to Content
APITariffsGET

GET Tariffs

Use this endpoint to retrieve tariffs.

User level: Advanced

Endpoint

GET /v1/{branchId}/tariffs
PropertyValue
MethodGET
Scope IDBranch UUID
AuthenticationAuthorization: Bearer <access_token>

Query parameters

ParameterTypeDefaultMaxDescription
limitinteger501000Number of records per page.
offsetinteger0-Pagination offset.
sortstring-Sort expression in the format field:asc or field:desc.
filterstring-Filter expression in the format field:operator:value. Repeat filter to combine multiple filters.

Filtering and sorting

Syntax

sort=field:asc sort=field:desc filter=field:operator:value

You can repeat filter in the same request.

Supported operators

OperatorMeaning
eqExact match
neNot equal
inValue is part of a list
gtGreater than
gteGreater than or equal
ltLess than
lteLess than or equal
likeCase-sensitive text match
ilikeCase-insensitive text match
isnullNull check

Resource rules

  • Filtering and sorting are whitelisted per resource.
  • organization_id and branch_id are reserved for server-side scoping and cannot be filtered by clients.
  • Tenant scope remains server-controlled.
  • Use a branch UUID in {scopeId} for this resource.

Example filters for tariffs

?filter=type:eq:flat_rate ?filter=description:ilike:%zone% ?sort=price:asc

Example request

curl -X GET "https://api.routix.com/v1/550e8400-e29b-41d4-a716-446655440000/tariffs?limit=25&offset=0&sort=price:asc&filter=type:eq:flat_rate" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."

Example response for v1

{ "data": [ { "id": "fe4e56ae-1d6a-46d2-a416-4b5b0fc546b7", "type": "flat_rate", "item_id": "d021bce1-a12b-462f-9d77-9fe0c2b55959", "zone_id": "3c312fd9-975e-43d8-a661-75d5649b1d8d", "description": "Flat rate within Zone A", "price": 125, "organization_id": "123e4567-e89b-12d3-a456-426614174000", "branch_id": "550e8400-e29b-41d4-a716-446655440000" } ], "pagination": { "limit": 10, "offset": 0, "total": 1 }, "version": "v1" }

Fields

FieldDescription
idTariff UUID.
typeTariff type.
item_idLinked item UUID.
zone_idLinked zone UUID.
descriptionTariff description.
priceTariff price.
organization_idOrganization UUID.
branch_idBranch UUID.

Response format

Success: list response

{ "data": [], "pagination": { "limit": 50, "offset": 0, "total": 123 }, "version": "v1" }

Error response

{ "error": "insufficient_scope", "error_description": "Token does not contain the required scope for tariffs" }
  • API integration
  • API calls & examples
  • Setup guide
Last updated on