Cancel Shipment
DELETE
https://api.cargopanel.co/api/shipments/v1/cancelDELETE
https://api.cargopanel.co/api/shipments/v1/test/cancelCancel 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
idstringrequiredThe 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