Raw schema
{
"type": "object",
"properties": {
"order_number": {
"type": "string",
"minLength": 1,
"description": "Your reference for the order (orderNumber)."
},
"customer_name": {
"type": "string",
"minLength": 1,
"description": "Customer name."
},
"customer_address": {
"type": "string",
"minLength": 1,
"description": "Delivery address."
},
"customer_phone_number": {
"type": "string",
"minLength": 1,
"description": "Customer phone number with country code, e.g. +14155550100."
},
"customer_email": {
"description": "Customer email.",
"type": "string"
},
"restaurant_name": {
"type": "string",
"minLength": 1,
"description": "Pickup location / store name."
},
"restaurant_address": {
"type": "string",
"minLength": 1,
"description": "Pickup address."
},
"restaurant_phone_number": {
"description": "Pickup location phone with country code.",
"type": "string"
},
"expected_delivery_date": {
"description": "Expected delivery date, yyyy-mm-dd (UTC).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"expected_pickup_time": {
"description": "Expected pickup time, hh:mm:ss (UTC).",
"type": "string",
"pattern": "^\\d{2}:\\d{2}:\\d{2}$"
},
"expected_delivery_time": {
"description": "Expected delivery time, hh:mm:ss (UTC).",
"type": "string",
"pattern": "^\\d{2}:\\d{2}:\\d{2}$"
},
"pickup_latitude": {
"description": "Pickup latitude.",
"type": "number",
"minimum": -90,
"maximum": 90
},
"pickup_longitude": {
"description": "Pickup longitude.",
"type": "number",
"minimum": -180,
"maximum": 180
},
"delivery_latitude": {
"description": "Delivery latitude.",
"type": "number",
"minimum": -90,
"maximum": 90
},
"delivery_longitude": {
"description": "Delivery longitude.",
"type": "number",
"minimum": -180,
"maximum": 180
},
"order_items": {
"description": "Items in the order.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Item name."
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Quantity."
},
"unit_price": {
"description": "Price per unit.",
"type": "number",
"minimum": 0
},
"detail": {
"description": "Item note.",
"type": "string"
},
"add_ons": {
"description": "Add-ons.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"quantity"
]
}
},
"tips": {
"description": "Tip amount.",
"type": "number",
"minimum": 0
},
"tax": {
"description": "Tax amount.",
"type": "number",
"minimum": 0
},
"discount_amount": {
"description": "Discount amount.",
"type": "number",
"minimum": 0
},
"delivery_fee": {
"description": "Delivery fee.",
"type": "number",
"minimum": 0
},
"total_order_cost": {
"description": "Total order cost.",
"type": "number",
"minimum": 0
},
"pickup_instruction": {
"description": "Instructions for the pickup.",
"type": "string"
},
"delivery_instruction": {
"description": "Instructions for the driver at delivery.",
"type": "string"
},
"order_source": {
"description": "Where the order came from (free text).",
"type": "string"
},
"additional_id": {
"description": "An extra reference id.",
"type": "string"
},
"payment_method": {
"description": "Payment method.",
"type": "string",
"enum": [
"cash",
"credit_card"
]
}
},
"required": [
"order_number",
"customer_name",
"customer_address",
"customer_phone_number",
"restaurant_name",
"restaurant_address"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}