Get a price list
GET/api/price-lists/:id
Required permissions:
- pricelist.view: allows view resources of price lists.
Here the dedicated support page.
Request
Path Parameters
The ID of the price list to view
Header Parameters
The company you want to interact with
The API version you want to use
Responses
- 200
- 400
- 401
- 403
- 404
Returns the requested price list.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
The price list name
The price list description
The date from which the price list is available. This follows the YYYY-MM-DD format
The date until which the price list is available. This follows the YYYY-MM-DD format
Whether this is the default price list for the client
Whether this is the default price list for the company
Whether to sync costs with company default price list
Possible values: >= 1
ID of the client to associate with this employee
{
"id": 1,
"created_at": "2025-04-22T10:10:03.010Z",
"updated_at": "2025-04-22T10:10:03.010Z",
"name": "string",
"description": "string",
"available_from": "2025-04-22",
"available_to": "2025-04-22",
"is_default_for_client": true,
"is_default_for_company": true,
"uses_default_price_list_costs": true,
"client_id": 1
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "not_found",
"message": "string"
}