GET Master data
Use this endpoint to retrieve master data.
User level: Advanced
Endpoint
GET /v1/{organizationId}/master_data| Property | Value |
|---|---|
| Method | GET |
| Scope ID | Organization UUID |
| Authentication | Authorization: Bearer <access_token> |
Query parameters
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
limit | integer | 50 | 1000 | Number of records per page. |
offset | integer | 0 | - | Pagination offset. |
sort | string | - | Sort expression in the format field:asc or field:desc. | |
filter | string | - | 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:valueYou can repeat filter in the same request.
Supported operators
| Operator | Meaning |
|---|---|
eq | Exact match |
ne | Not equal |
in | Value is part of a list |
gt | Greater than |
gte | Greater than or equal |
lt | Less than |
lte | Less than or equal |
like | Case-sensitive text match |
ilike | Case-insensitive text match |
isnull | Null check |
Resource rules
- Filtering and sorting are whitelisted per resource.
organization_idandbranch_idare reserved for server-side scoping and cannot be filtered by clients.- Tenant scope remains server-controlled.
- Use an organization UUID in
{scopeId}for this resource.
Example filters for master data
?filter=category:eq:vehicle_type
?filter=level:eq:organization
?sort=value:ascExample request
curl -X GET "https://api.routix.com/v1/123e4567-e89b-12d3-a456-426614174000/master_data?limit=25&offset=0&sort=value:asc&filter=category:eq:vehicle_type&filter=level:eq:organization" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."Example response for v1
{
"data": [
{
"id": "2f47e2d0-97fa-4d52-b01c-d6b4f8fa7350",
"category": "vehicle_type",
"key": "truck",
"value": "Truck",
"description": "Default truck category",
"level": "organization",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"branch_id": "550e8400-e29b-41d4-a716-446655440000"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 1
},
"version": "v1"
}Fields
| Field | Description |
|---|---|
id | Master-data record UUID. |
category | Master-data category. |
key | Record key. |
value | Record value. |
description | Record description. |
level | Level at which the record applies. |
organization_id | Organization UUID. |
branch_id | Branch 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 master data"
}Related pages
- API integration
- API calls & examples
- Setup guide
Last updated on

