Raw schema
{
"type": "object",
"properties": {
"items": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"product_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Id from search_products / get_product."
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"size": {
"type": "string",
"maxLength": 40
},
"color": {
"description": "Shade label or value, e.g. \"#01 Bright\".",
"type": "string",
"maxLength": 60
}
},
"required": [
"product_id"
]
}
},
"customer": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100,
"description": "Full name of the person receiving the order."
},
"email": {
"type": "string",
"maxLength": 200,
"format": "email",
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "Receipt and order updates go here. If it matches a GENOSYS account, the order appears in that account."
},
"phone": {
"type": "string",
"minLength": 7,
"maxLength": 30,
"description": "For the courier: UAE number or one with its country code."
},
"emirate": {
"type": "string",
"enum": [
"Dubai",
"Abu Dhabi",
"Sharjah",
"Ajman",
"Ras Al Khaimah",
"Fujairah",
"Umm Al Quwain"
]
},
"address": {
"type": "string",
"minLength": 8,
"maxLength": 500,
"description": "Building or villa, street, area, and apartment number."
}
},
"required": [
"name",
"email",
"phone",
"emirate",
"address"
]
},
"notes": {
"description": "Delivery notes, e.g. preferred time.",
"type": "string",
"maxLength": 1000
},
"locale": {
"description": "Language of descriptions and links: en (default), ru or ar. Product names stay in English.",
"type": "string",
"enum": [
"en",
"ru",
"ar"
]
}
},
"required": [
"items",
"customer"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}