Schemas
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.comstatus
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"}}
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
ShipmentHistory
currentShipment
objectpreviousShipment
circular
transferredAt
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
array ·circular
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
circular
sub
array · maxItems: 100 ·circular
Child organizations (array circular reference)
LinkedShipment
id
string · uuid · requiredUnique identifier for the shipment
status
string · enum · requiredEnum values:PENDINGIN_TRANSITDELIVERED
next
circular
previous
circular
SchemaValidationRequest
data
object · requiredThe data to validate against the schema
options
object
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