Skip to content

Close Sanction / Cerrar Sancion

PUT
/external/sancion-cerrar/{sancion_id}
curl --request PUT \
--url https://api-dev.zonaparqueo.com/external/sancion-cerrar/1 \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "observaciones": "example" }'

Closes an open sanction. This is a prerequisite for payment: the server rejects payment of an open sanction with the message no se puede pagar porque no esta cerrada. It is idempotent in practice: closing an already-closed sanction is harmless.

sancion_id
required
integer

Sanction identifier

Media typeapplication/json
object
observaciones

Closing remarks (optional)

string
Examplegenerated
{
"observaciones": "example"
}

Sanction closed successfully

Media typeapplication/json
object
estado
string
Allowed values: ok
data

Response data

object
Example
{
"estado": "ok"
}

Error closing the sanction

Media typeapplication/json
object
estado
string
Allowed values: fail
error

Error message

string
errores

Field-specific error details

object
Example
{
"estado": "fail"
}