Every service request carries a linked payment record that is created automatically inDocumentation 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.
PENDIENTE state when the request is submitted. Staff with the appropriate roles review the uploaded payment proof image and either approve or reject it. When a customer cancels a request that already has a payment on file, the payment moves to PENDIENTE_DEVOLUCION until a staff member confirms the money was returned using the refund endpoint.
Payment state reference
| State | Meaning |
|---|---|
PENDIENTE | Payment proof uploaded; awaiting staff review |
VALIDADO | Payment approved; request moves to EN_PROCESO |
RECHAZADO | Payment rejected; request moves to CANCELADO_PAGO |
PENDIENTE_DEVOLUCION | Request was cancelled by the customer; refund not yet confirmed |
REINTEGRADO | Refund confirmed by staff; money returned to customer |
PUT /api/servicerequests//payment — Validate or reject payment
Reviews the payment proof for a service request. Approving the payment advances the request toEN_PROCESO; rejecting it moves the request to CANCELADO_PAGO. Both paths are handled by the ValidateServiceRequestPayment stored procedure.
Authentication: Bearer token — SUPER_ADMIN, ADMIN_GENERAL, or GESTOR_SUPREMO
Path parameters
The
requestId of the service request whose payment is being reviewed.Request body
Set to
true to approve the payment proof and advance the request to EN_PROCESO. Set to false to reject it and move the request to CANCELADO_PAGO.The actual quantity or amount to record for this request. When provided, the stored procedure uses this value to calculate
TotalPaid. Defaults to 1 if omitted.Response
A human-readable confirmation of the action taken:
"Pago validado" on approval or "Pago rechazado" on rejection.PUT /api/servicerequests//refund — Confirm refund
Confirms that the money for a cancelled request has been returned to the customer. This endpoint is used after a request reachesCANCELADO_USUARIO state — meaning the customer cancelled while the payment was still PENDIENTE. The stored procedure moves the payment from PENDIENTE_DEVOLUCION to REINTEGRADO.
Authentication: Bearer token — SUPER_ADMIN, ADMIN_GENERAL, GESTOR_SUPREMO, or GESTOR
Path parameters
The
requestId of the cancelled service request being refunded.Response
A confirmation message asking staff to verify the funds reached the customer’s account.