Shipment
recipientAddressobject · requiredsenderAddressobject · requiredpackagesobject[] · minItems: 1 · maxItems: 50 · unique · required
idstring · uuidExample: 123e4567-e89b-12d3-a456-426614174000recipientEmailstring · emailExample: recipient@example.comnotesobject[]Notes about the shipment
statusstring | null · enumEnum values:CREATEDIN_TRANSITDELIVEREDEXCEPTIONtrackingNumberstring · pattern:^[A-Z0-9]{10,20}$createdAtstring · date-timecommentsobject[] · enum · maxItems: 100Enum values:PENDINGAPPROVEDREJECTEDtagsstring[]Enum values:FRAGILEEXPRESSINTERNATIONALCUSTOMS_REQUIREDfacilitiesstring[]Enum values:LAX1JFK2ORD3DFW4SEA5customDataarrayArray of custom data items that can be of any type
metadataobjectEmpty object for future extensibility
customFieldsobjectDictionary of custom string fields that can be added to the shipment
Example: {"customerReference":"CUST-123","internalNotes":"Handle with care","specialInstructions":"Leave at front desk"}facilityCapabilitiesobjectDictionary of facility capabilities and their status
Example: {"temperatureControl":{"enabled":true,"lastChecked":"2024-03-15T10:30:00Z"},"hazardousMaterials":{"enabled":false,"lastChecked":"2024-03-14T15:45:00Z"}}trackingobjectReal-time tracking information for this shipment
returnTrackingTracking details for return shipment if applicable
Address
streetstring · minLength: 1 · maxLength: 200 · requiredcitystring · minLength: 1 · maxLength: 100 · requiredcountrystring · pattern:^[A-Z]{2}$· requiredISO 3166-1 alpha-2 country code
postalCodestring · minLength: 1 · maxLength: 20 · required
statestring · minLength: 1 · maxLength: 100
Package
weightnumber · float · min: 0.1 · max: 1000 · requiredWeight in kilograms
dimensionsobject · required
Dimensions
lengthnumber · float · min: 1 · max: 300 · requiredLength in centimeters
widthnumber · float · min: 1 · max: 300 · requiredWidth in centimeters
heightnumber · float · min: 1 · max: 300 · requiredHeight in centimeters
Error
codestring · minLength: 1 · maxLength: 50 · pattern:^[A-Z_]+$· requiredmessagestring · minLength: 1 · maxLength: 500 · required
ShipmentValidationError
codestring · enum · requiredSpecific validation error code
Enum values:INVALID_ADDRESSINVALID_PACKAGEINVALID_WEIGHTMISSING_FIELDmessagestring · requiredHuman-readable error message
fieldstring · requiredField that failed validation
suggestionstringSuggested fix for the error
TrackingDetails
currentLocationstring · requiredCurrent location of the shipment
Example: Distribution Center - Los Angeles, CAlastUpdatestring · date-time · requiredLast tracking update timestamp
estimatedDeliverystring · date-timeEstimated delivery date and time
carrierstring · enumCarrier handling the shipment
Enum values:FEDEXUPSUSPSDHLExample: FEDEXdeliveryConfirmationobject
ShipmentHistory
currentShipmentobjectpreviousShipmentobject · minProps: 1 · maxProps: 3transferredAtstring · date-timeWhen the shipment was transferred
Comment
idstring · pattern:^[a-zA-Z0-9-]+$· requiredUnique identifier for the comment
authorstring · requiredName of the person who wrote the comment
textstring · requiredContent of the comment
timestampstring · date-time · requiredWhen the comment was posted
repliesobject[]Nested replies to this comment
Organization
idstring · pattern:^[a-zA-Z0-9-]+$· requiredUnique identifier for the organization
namestring · minLength: 1 · maxLength: 200 · requiredName of the organization
parentobjectThe parent organization (direct object circular reference)
subobject[] · maxItems: 100Child organizations (array circular reference)
LinkedShipment
idstring · uuid · requiredUnique identifier for the shipment
statusstring · enum · requiredEnum values:PENDINGIN_TRANSITDELIVERED
next| nullA shipment that's part of a chain (e.g. multi-leg delivery)
previous| nullA shipment that's part of a chain (e.g. multi-leg delivery)
SchemaValidationResponse
validboolean · requiredWhether the data is valid according to the schema
errorsobject[]Validation errors if any
schemaIdstringIdentifier of the schema used for validation
timestampstring · date-timeWhen the validation was performed
SchemaMetadata
idstring · requiredUnique identifier for the schema
namestring · requiredHuman-readable name of the schema
versionstring · pattern:^\d+\.\d+\.\d+$· requiredVersion of the schema
descriptionstringDescription of the schema
createdAtstring · date-timeWhen the schema was created
updatedAtstring · date-timeWhen the schema was last updated
spaceEntityTypestring · enumThe type of space entity this schema represents
Enum values:CARGOVESSELCREWROUTESTATIONPLANETASTEROIDSATELLITE