Cost concepts are the line items of a damage survey — each one represents a specific repair task (e.g. replacing a windshield, repainting a panel) with a description, an optional item code, and a unit cost. Concepts are attached to a levantamiento and their costs are summed to produce the total repair estimate via GET /api/levantamientos/:id/costo-total.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sheeplettuce/Monitor/llms.txt
Use this file to discover all available pages before exploring further.
Add a Cost Concept
Path Parameters
The numeric ID of the levantamiento to attach the concept to. Must parse as a valid integer.
Request Body
A human-readable description of the repair item, e.g.
"Cambio de parabrisas" or "Reparación de panel trasero".An item code or SKU used to identify this repair task in internal catalogues, e.g.
"CR-001".Unit cost of the repair item as a decimal number, e.g.
3500.00. Stored as a PostgreSQL Decimal. Defaults to null if not provided.Request Example
Response
201 — Created
Returns the newly createdlevantamiento_concepto record.
Error Responses
| Status | Body | Description |
|---|---|---|
400 | { "error": "id inválido" } | The :id path segment is not a valid integer. |
400 | { "error": "concepto es requerido" } | The concepto field was missing from the request body. |
401 | — | Missing or invalid Authorization header. |
404 | { "error": "Levantamiento no encontrado" } | No levantamiento exists with the given ID. |
Delete a Cost Concept
Path Parameters
The numeric primary key of the
levantamiento_concepto record to delete. Must parse as a valid integer.Request Example
Response
200 — Success
Returns a confirmation message upon successful deletion.Error Responses
| Status | Body | Description |
|---|---|---|
400 | { "error": "id_concepto inválido" } | The :id_concepto path segment is not a valid integer. |
401 | — | Missing or invalid Authorization header. |
403 | — | Authenticated user does not have the Administrador role. |
404 | { "error": "Concepto no encontrado" } | No concept exists with the given ID. |