Endpoints for creating, tracking, updating, and managing shipments.
Filter shipments
Search and filter shipments using various criteria
query Parameters
statusFilter by shipment status
tagsFilter by tags
Filter by creation date range
Filter by address criteria
limitMaximum number of results to return
offsetNumber of results to skip
Filter shipments › Responses
Shipments retrieved successfully
totalTotal number of shipments matching the filter
limitoffsetCreate a new shipment
Creates a new shipment with the provided details.
This endpoint allows you to create and register a new shipment in the Cosmo Cargo platform. The shipment will be assigned a unique trackingNumber and will enter the CREATED status.
How to use with SDK
Here's how to create a shipment using @cosmo-cargo/sdk:
Code
Note: Use the X-Request-Priority header to expedite processing for urgent shipments.
Headers
X-Correlation-IDUnique identifier for tracking requests across multiple services
Idempotency-KeyUnique key to ensure idempotency of the request
X-API-VersionAPI version requested by the client
X-Request-PriorityPriority level for processing the shipment request
Create a new shipment › Request Body
idrecipientEmailNotes about the shipment
statustrackingNumber^[A-Z0-9]{10,20}$createdAttagsfacilitiesArray of custom data items that can be of any type
metadataEmpty object for future extensibility
Dictionary of custom string fields that can be added to the shipment
Dictionary of facility capabilities and their status
Detailed tracking information for a shipment
Tracking details for return shipment if applicable
Create a new shipment › Responses
Shipment created successfully
idrecipientEmailNotes about the shipment
statustrackingNumber^[A-Z0-9]{10,20}$createdAttagsfacilitiesArray of custom data items that can be of any type
metadataEmpty object for future extensibility
Dictionary of custom string fields that can be added to the shipment
Dictionary of facility capabilities and their status
Detailed tracking information for a shipment
Tracking details for return shipment if applicable
Track a shipment
Get the current status and tracking information for a shipment
path Parameters
trackingNumberquery Parameters
includeHistoryInclude detailed tracking history and events in the response
Headers
X-Correlation-IDUnique identifier for tracking requests across multiple services
X-API-VersionAPI version requested by the client
X-Cache-ControlCaching behavior for the tracking response
Track a shipment › Responses
Shipment tracking information retrieved successfully
idrecipientEmailNotes about the shipment
statustrackingNumber^[A-Z0-9]{10,20}$createdAttagsfacilitiesArray of custom data items that can be of any type
metadataEmpty object for future extensibility
Dictionary of custom string fields that can be added to the shipment
Dictionary of facility capabilities and their status
Detailed tracking information for a shipment
Tracking details for return shipment if applicable
Hold shipment
Place a shipment on hold at a facility
path Parameters
shipmentIdquery Parameters
holdDurationDuration to hold the shipment
Headers
X-Hold-OperatorOperator requesting the hold
cookie Parameters
preferredLocationUser's preferred facility location
Hold shipment › Request Body
holdUntilreasonfacilityIdHold shipment › Responses
Shipment placed on hold successfully
statusholdLocationholdUntilCreate a lost shipment claim
Submit a claim for a lost or damaged shipment. This endpoint accepts multipart/form-data to allow uploading photos and other evidence files along with the claim details.
Supported File Types
- Images: JPEG, PNG, GIF, WebP (max 10MB each)
- Documents: PDF (max 25MB each)
Maximum Files
You can upload up to 10 files per claim.
path Parameters
shipmentIdThe unique identifier of the shipment
Headers
X-Correlation-IDUnique identifier for tracking requests across multiple services
Idempotency-KeyUnique key to ensure idempotency of the request
Create a lost shipment claim › Request Body
claimTypeThe type of claim being filed
descriptionDetailed description of the issue and circumstances
claimantEmailEmail address for claim correspondence
claimantPhone^\+[1-9]\d{1,14}$Phone number for claim correspondence (E.164 format)
declaredValueDeclared value of the shipment contents in USD
incidentDateDate when the incident was discovered
photosPhotos of damaged package or contents (JPEG, PNG, GIF, WebP)
documentsSupporting documents such as receipts, invoices, or police reports (PDF only)
Create a lost shipment claim › Responses
Claim created successfully
claimIdUnique identifier for the claim
shipmentIdThe shipment this claim is associated with
claimNumber^CLM-[A-Z0-9]{8}$Human-readable claim reference number
claimTypestatusCurrent status of the claim
declaredValuecreatedAtestimatedResolutionDateExpected date for claim resolution