Skip to main content

Cancel delivery service

DELETE 

/company/delivery/:service_code

Cancels an existing shipment by changing its status to 'canceled'. Only shipments in 'planned' or 'in_progress' status can be canceled. Requires JWT authentication.

Use Cases:

  • Cancel a planned shipment that will no longer be carried out
  • Stop an in-progress shipment due to logistical problems
  • Reverse a poorly planned shipment

Example of a successful response:

{
service_code: DEL-12345,
status: canceled,
etl_date: 2025-08-10T08:00:00Z,
updated_at: 2025-08-08T15:30:00Z
}

Restrictions:

  • A completed shipment cannot be canceled
  • An already canceled shipment cannot be canceled

Request

Responses

Shipment canceled successfully.