Delete a Shipment
Delete an Ocean shipment to stop tracking the shipment in project44's and delete its record in Movement.
Requirements
Have the following information:
- Master Shipment ID (this is the
idreturned in the200 OKresponse during shipment creation).
Workflow
Complete these steps:
- Prepare a
DELETErequest to /api/v4/shipments/{shipmentId}/tracking. - Add the Master Shipment ID.
- Submit the request.
Expected Response
The request is successfully submitted and confirmed when a 204 No Content response is received.
Errors
If there was a problem with your request, you will receive one of the following error codes
400 Invalid request401 Invalid or missing credentials403 User not authorized to perform this operation404 Not Found409 Conflict- This error occurs when aBOOKING_NUMBERorBILL_OF_LADINGshipment cannot be deleted due to the presence of related container shipments that must be deleted first. The Master Shipment ID of these related containers can be found asidin therelatedShipmentsarray in the GET requests for the BOOKING_NUMBER or BILL_OF_LADING shipment at /api/v4/shipments/{shipmentId}/tracking.
To resolve this, you need to delete the related container shipments first using theDELETE API, one by one, as outlined in the workflow steps. Once all related container shipments are deleted, you can proceed to delete the BOOKING_NUMBER or BILL_OF_LADING shipment.
See Error Response Codes in the Appendix for more information on the meaning of these error codes.