Containers
Delete Container
This endpoint permanently removes the container while properly unlinking all shipments from the container.
DELETE
`/v1/containers/:container`
When a container is deleted, all deliveries from the container will automatically be unlinked.
Effects of Deletion
When a container is deleted, the following actions occur:
- Shipment Processing
- All associated shipments are automatically unlinked from the container.
- Each shipment receives a new tracking update with status
removed_from_container
. - Shipment location and layout information is preserved
- Previous tracking history remains intact
- Container Removal
- The container record is permanently deleted from the system.
- Container tracking history is preserved in associated shipments.
Response Structure
Successful Deletion
The message will vary based on whether shipments were unlinked during deletion.
Error Responses
If the container doesn't exist or belongs to a different organization: