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
nextobjectA shipment that's part of a chain (e.g. multi-leg delivery)
previousobjectA shipment that's part of a chain (e.g. multi-leg delivery)
SchemaValidationRequest
dataobjectย ยทย requiredThe data to validate against the schema
optionsobject
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