Pay Reservation / Pagar Reserva
PUT
/external/reserva-pagar/{reserva_id}
const url = 'https://api-dev.zonaparqueo.com/external/reserva-pagar/12345';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"pago_tipo":1,"pago_codigo":"example","enviar_recibo":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api-dev.zonaparqueo.com/external/reserva-pagar/12345 \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "pago_tipo": 1, "pago_codigo": "example", "enviar_recibo": false }'Records payment for an existing reservation. The reservation identifier is a path parameter; payment type and code go in the body.
With enviar_recibo: true the system emails the official receipt to the client.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”reserva_id
required
integer
Reservation identifier
Example
12345Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
pago_tipo
required
Payment type assigned by administrator
integer
pago_codigo
required
Unique transaction code
string
enviar_recibo
If true, the system emails the official receipt to the client
boolean
Responses
Section titled “Responses”Payment recorded successfully
Media typeapplication/json
object
estado
string
data
Response data
object
Examples
Examplesuccess
{ "estado": "ok", "data": { "message": "Pago registrado exitosamente" }}Payment error
Media typeapplication/json
object
estado
string
error
Error message
string
errores
Field-specific error details
object
Example
{ "estado": "fail"}