cargopanel logocargopanel for developers

Cancel Shipment

DELETEhttps://api.cargopanel.co/api/shipments/v1/cancel
DELETEhttps://api.cargopanel.co/api/shipments/v1/test/cancel

Cancel an existing shipment using its ID.

This API requires a contract. Get in touch with cargopanel Support Team.

Test API is used for testing purposes.

Request Body Parameters

idstringrequired

The ID of the shipment to be cancelled.

Request Body

The request body should be a JSON object containing the following structure:

{
  "id": "<string>"
}

Example Response

{
    "message": "Shipment cancelled successfully",
}

Responses

200Success - Shipment cancelled successfully
400Shipment delete failed
401Unauthorized - Invalid credentials
404Shipment not found
405Method Not Allowed
500Internal Server Error