Shipment
recipientAddress
object · requiredsenderAddress
object · requiredpackages
object[] · minItems: 1 · maxItems: 50 · unique · required
id
string · uuidExample: 123e4567-e89b-12d3-a456-426614174000recipientEmail
string · emailExample: recipient@example.comnotes
object[]Notes about the shipment
status
string | null · enumEnum values:CREATEDIN_TRANSITDELIVEREDEXCEPTIONtrackingNumber
string · pattern:^[A-Z0-9]{10,20}$
createdAt
string · date-timecomments
object[] · enum · maxItems: 100Enum values:PENDINGAPPROVEDREJECTEDtags
string[]Enum values:FRAGILEEXPRESSINTERNATIONALCUSTOMS_REQUIREDfacilities
string[]Enum values:LAX1JFK2ORD3DFW4SEA5customData
arrayArray of custom data items that can be of any type
metadata
objectEmpty object for future extensibility
customFields
objectDictionary of custom string fields that can be added to the shipment
Example: {"customerReference":"CUST-123","internalNotes":"Handle with care","specialInstructions":"Leave at front desk"}facilityCapabilities
objectDictionary 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"}}tracking
objectReal-time tracking information for this shipment
returnTracking
Tracking details for return shipment if applicable
Address
street
string · minLength: 1 · maxLength: 200 · requiredcity
string · minLength: 1 · maxLength: 100 · requiredcountry
string · pattern:^[A-Z]{2}$
· requiredISO 3166-1 alpha-2 country code
postalCode
string · minLength: 1 · maxLength: 20 · required
state
string · minLength: 1 · maxLength: 100
Package
weight
number · float · min: 0.1 · max: 1000 · requiredWeight in kilograms
dimensions
object · required
Dimensions
length
number · float · min: 1 · max: 300 · requiredLength in centimeters
width
number · float · min: 1 · max: 300 · requiredWidth in centimeters
height
number · float · min: 1 · max: 300 · requiredHeight in centimeters
Error
code
string · minLength: 1 · maxLength: 50 · pattern:^[A-Z_]+$
· requiredmessage
string · minLength: 1 · maxLength: 500 · required
ShipmentValidationError
code
string · enum · requiredSpecific validation error code
Enum values:INVALID_ADDRESSINVALID_PACKAGEINVALID_WEIGHTMISSING_FIELDmessage
string · requiredHuman-readable error message
field
string · requiredField that failed validation
suggestion
stringSuggested fix for the error
TrackingDetails
currentLocation
string · requiredCurrent location of the shipment
Example: Distribution Center - Los Angeles, CAlastUpdate
string · date-time · requiredLast tracking update timestamp
estimatedDelivery
string · date-timeEstimated delivery date and time
carrier
string · enumCarrier handling the shipment
Enum values:FEDEXUPSUSPSDHLExample: FEDEXdeliveryConfirmation
object
ShipmentHistory
currentShipment
objectpreviousShipment
object · minProps: 1 · maxProps: 3transferredAt
string · date-timeWhen the shipment was transferred
Comment
id
string · pattern:^[a-zA-Z0-9-]+$
· requiredUnique identifier for the comment
author
string · requiredName of the person who wrote the comment
text
string · requiredContent of the comment
timestamp
string · date-time · requiredWhen the comment was posted
replies
object[]Nested replies to this comment
Organization
id
string · pattern:^[a-zA-Z0-9-]+$
· requiredUnique identifier for the organization
name
string · minLength: 1 · maxLength: 200 · requiredName of the organization
parent
objectThe parent organization (direct object circular reference)
sub
object[] · maxItems: 100Child organizations (array circular reference)
LinkedShipment
id
string · uuid · requiredUnique identifier for the shipment
status
string · 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
valid
boolean · requiredWhether the data is valid according to the schema
errors
object[]Validation errors if any
schemaId
stringIdentifier of the schema used for validation
timestamp
string · date-timeWhen the validation was performed
SchemaMetadata
id
string · requiredUnique identifier for the schema
name
string · requiredHuman-readable name of the schema
version
string · pattern:^\d+\.\d+\.\d+$
· requiredVersion of the schema
description
stringDescription of the schema
createdAt
string · date-timeWhen the schema was created
updatedAt
string · date-timeWhen the schema was last updated
spaceEntityType
string · enumThe type of space entity this schema represents
Enum values:CARGOVESSELCREWROUTESTATIONPLANETASTEROIDSATELLITE