Raw schema
{
"type": "object",
"properties": {
"pickup": {
"type": "object",
"properties": {
"address": {
"type": "string",
"minLength": 1,
"description": "Street address only. Floor, door and building details go in comment."
},
"comment": {
"description": "Note for the courier (floor, door code location, ...).",
"type": "string",
"maxLength": 1000
},
"contact": {
"description": "Either firstname + lastname, or company, is required by Stuart.",
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"phone": {
"description": "E.164, e.g. +442079476330. Required if the address is not precise.",
"type": "string"
},
"email": {
"type": "string"
},
"company": {
"type": "string"
}
}
},
"coordinates": {
"description": "Optional coordinates (up to 6 decimals). An address string is still required.",
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90
},
"long": {
"type": "number",
"minimum": -180,
"maximum": 180
}
},
"required": [
"lat",
"long"
]
}
},
"required": [
"address"
],
"description": "The single pickup point."
},
"dropoffs": {
"minItems": 1,
"maxItems": 8,
"type": "array",
"items": {
"type": "object",
"properties": {
"address": {
"type": "string",
"minLength": 1,
"description": "Street address only. Floor, door and building details go in comment."
},
"package_type": {
"type": "string",
"enum": [
"xsmall",
"small",
"medium",
"large",
"xlarge"
],
"description": "Package size."
},
"package_description": {
"type": "string",
"maxLength": 1000
},
"client_reference": {
"description": "Your own order reference (unique).",
"type": "string"
},
"comment": {
"type": "string",
"maxLength": 1000
},
"contact": {
"description": "Either firstname + lastname, or company, is required by Stuart.",
"type": "object",
"properties": {
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"phone": {
"description": "E.164, e.g. +442079476330. Required if the address is not precise.",
"type": "string"
},
"email": {
"type": "string"
},
"company": {
"type": "string"
}
}
},
"coordinates": {
"description": "Optional coordinates (up to 6 decimals). An address string is still required.",
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90
},
"long": {
"type": "number",
"minimum": -180,
"maximum": 180
}
},
"required": [
"lat",
"long"
]
},
"end_customer_time_window_start": {
"description": "ISO 8601 start of the delivery window promised to the end customer.",
"type": "string"
},
"end_customer_time_window_end": {
"description": "ISO 8601 end of the delivery window.",
"type": "string"
}
},
"required": [
"address",
"package_type"
]
},
"description": "1 to 8 dropoff points."
},
"pickup_at": {
"description": "ISO 8601 time the courier should arrive at the pickup. Omit to dispatch immediately.",
"type": "string"
},
"assignment_code": {
"description": "Invoicing reference shown on invoices.",
"type": "string"
}
},
"required": [
"pickup",
"dropoffs"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}