We're announcing 🧑🚀 inter-galactic shipping ✨ for 3025!
Endpoints for creating, tracking, updating, and managing shipments.
Search and filter shipments using various criteria
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
Shipments retrieved successfully
totalTotal number of shipments matching the filter
limitoffsetCreates 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.
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.
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
senderAddresscircularidrecipientEmailNotes about the shipment
statustrackingNumber^[A-Z0-9]{10,20}$createdAtcommentsComment (circular)tagsfacilitiesArray 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
Shipment created successfully
senderAddresscircularidrecipientEmailNotes about the shipment
statustrackingNumber^[A-Z0-9]{10,20}$createdAtcommentsComment (circular)tagsfacilitiesArray 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
Get the current status and tracking information for a shipment
trackingNumberincludeHistoryInclude detailed tracking history and events in the response
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
Shipment tracking information retrieved successfully
senderAddresscircularidrecipientEmailNotes about the shipment
statustrackingNumber^[A-Z0-9]{10,20}$createdAtcommentsComment (circular)tagsfacilitiesArray 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
Place a shipment on hold at a facility
shipmentIdholdDurationDuration to hold the shipment
X-Hold-OperatorOperator requesting the hold
preferredLocationUser's preferred facility location
holdUntilreasonfacilityIdShipment placed on hold successfully
statusholdLocationholdUntilSubmit 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.
You can upload up to 10 files per claim.
shipmentIdThe unique identifier of the shipment
X-Correlation-IDUnique identifier for tracking requests across multiple services
Idempotency-KeyUnique key to ensure idempotency of the request
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)
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