Every service request moves through a defined set of states from the moment it is submitted until it is completed or cancelled. The status endpoint exposes a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/SERVICIOS-BACK/llms.txt
Use this file to discover all available pages before exploring further.
PUT call that accepts a target state; the actual transition rules — including which roles may trigger which transitions — are enforced inside the UpdateServiceRequestStatus stored procedure, not solely in the API controller. This means invalid transitions are rejected at the database layer and return a descriptive error message regardless of how the request arrives.
Status lifecycle
| Transition | Trigger |
|---|---|
SOLICITADO → EN_PROCESO | Payment approved by an admin via PUT /api/servicerequests/{id}/payment |
SOLICITADO → CANCELADO_USUARIO | Customer cancels their own request while still in SOLICITADO |
SOLICITADO → CANCELADO_PAGO | Payment rejected by an admin via PUT /api/servicerequests/{id}/payment |
EN_PROCESO → FINALIZADO | Staff marks the service as completed |
PUT /api/servicerequests//status — Change status
Changes the status of a service request. All authenticated users can call this endpoint, but the stored procedure enforces role-based rules on which transitions each caller may perform. Customers, for example, can only setCANCELADO_USUARIO and only when the request is currently in SOLICITADO state.
Authentication: Bearer token (any role — transitions restricted by SQL procedure)
Path parameters
The
requestId of the service request to update.Request body
The target status for the request. Must be one of:
SOLICITADO, EN_PROCESO, FINALIZADO, CANCELADO_USUARIO, CANCELADO_PAGO. Returns 400 Bad Request if this field is absent or blank.Response
Returns200 OK with an empty body on success.
GET /api/servicerequests/cancellation-reminders — Pending refund reminders
When a customer cancels a request (CANCELADO_USUARIO), the system automatically creates a cancellation reminder record to alert staff that a refund is pending. This endpoint returns all unresolved reminders for the caller’s company.
Authentication: Bearer token — SUPER_ADMIN, ADMIN_GENERAL, GESTOR_SUPREMO, or GESTOR
Response
Returns an array of cancellation reminder objects.Unique identifier of the reminder record.
ID of the company this reminder belongs to.
ID of the cancelled service request that triggered the reminder.
Human-readable description of the pending action.
Timestamp when the reminder was created (i.e., when the customer cancelled).
Whether the reminder has been marked as handled.
Timestamp when the reminder was resolved, if applicable.
PUT /api/servicerequests/cancellation-reminders//resolve — Mark reminder resolved
Marks a cancellation reminder as handled. Call this after you have confirmed the refund viaPUT /api/servicerequests/{requestId}/refund (see the Payments page) to remove the reminder from the pending queue.
Authentication: Bearer token — SUPER_ADMIN, ADMIN_GENERAL, GESTOR_SUPREMO, or GESTOR
Path parameters
The
reminderID of the cancellation reminder to resolve.Response
Returns200 OK with an empty body on success.