Raw schema
{
"type": "object",
"properties": {
"recipient": {
"type": "object",
"properties": {
"first_name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"last_name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"company_name": {
"type": "string",
"maxLength": 150
},
"address_1": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"address_2": {
"type": "string",
"maxLength": 200
},
"city": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"state_code": {
"description": "US/Canada state or province code, e.g. AK.",
"type": "string",
"maxLength": 10
},
"province": {
"description": "Province or region for countries without state codes.",
"type": "string",
"maxLength": 100
},
"zip_postal_code": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"country_code": {
"type": "string",
"minLength": 2,
"maxLength": 2,
"description": "Two-letter country code, e.g. us."
},
"phone": {
"type": "string",
"maxLength": 40
},
"email": {
"type": "string",
"maxLength": 200
}
},
"required": [
"first_name",
"last_name",
"address_1",
"city",
"zip_postal_code",
"country_code"
],
"description": "Where the order would ship."
},
"items": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "A virtual inventory SKU or a product code."
},
"quantity": {
"description": "Quantity, 1-999 (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 999
}
},
"required": [
"sku"
]
},
"description": "SKUs (virtual inventory) with quantities."
}
},
"required": [
"recipient",
"items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}