PATCH /api/transacciones/:id
Updates one or more fields on an existing transaction. All body fields are optional — only send the fields you want to change. The actualizado_en timestamp is set automatically.
Authentication: Required
Required role: Any authenticated user
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <token> | Yes |
| Content-Type | application/json | Yes |
Path parameters
| Parameter | Type | Description |
|---|---|---|
| id | number | The transaction ID |
Body
Updated description of the order.
Updated service location.
Updated customer name.
Updated status. One of
pendiente, abierto, or cerrado.Response
Success (200)
Returns the full updated transaction object (same shape as Get transaction).Error responses
| Status | Description |
|---|---|
| 401 | Unauthorized |
| 404 | Transaction not found |