Cancel Toll Voucher

Allows canceling a toll voucher and checking the processing status.

Using the received GUID, the client can retrieve the status and result of the cancellation. The response indicates whether the operation was successful or which errors occurred.

Endpoints

POST: /valePedagio/cancelar/{enterpriseId} → Cancel toll voucher
GET: /valePedagio/cancelar/{enterpriseId}/{guid} → Retrieve cancellation status

Headers

The JWT token must be sent in the header:

Authorization: Bearer {token}

POST – Cancel Toll Voucher

Submits a cancellation request for a previously issued toll voucher. The request is processed asynchronously, and a GUID is returned for tracking.

GET – Cancellation Status

Allows checking the status of a cancellation request using the GUID.

HTTP Status Codes

  • 200: Cancellation processed successfully

  • 202: Request is still being processed

  • 400: Validation error (e.g., missing motivo or invalid {id})

  • 401: Unauthorized (missing or invalid JWT token)

  • 500: Internal server error