Raw schema
{
"type": "object",
"properties": {
"payload": {
"type": "object",
"properties": {
"orderedItem": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"productId": {
"type": "string"
},
"sku": {
"type": "string",
"maxLength": 100
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"price": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3
}
},
"required": [
"value",
"currency"
]
}
},
"required": [
"name",
"quantity",
"price"
]
}
},
"totalPrice": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3
}
},
"required": [
"value",
"currency"
]
},
"billingAddress": {
"type": "object",
"properties": {
"streetAddress": {
"type": "string",
"maxLength": 200
},
"addressLocality": {
"type": "string",
"maxLength": 100
},
"addressRegion": {
"type": "string",
"maxLength": 100
},
"postalCode": {
"type": "string",
"maxLength": 20
},
"addressCountry": {
"type": "string",
"minLength": 2,
"maxLength": 2
}
}
},
"shippingAddress": {
"type": "object",
"properties": {
"streetAddress": {
"type": "string",
"maxLength": 200
},
"addressLocality": {
"type": "string",
"maxLength": 100
},
"addressRegion": {
"type": "string",
"maxLength": 100
},
"postalCode": {
"type": "string",
"maxLength": 20
},
"addressCountry": {
"type": "string",
"minLength": 2,
"maxLength": 2
}
}
},
"delivery": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"pickup",
"delivery",
"digital"
]
},
"when": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
},
"required": [
"method"
]
},
"paymentMethod": {
"type": "string",
"maxLength": 60
},
"notes": {
"type": "string",
"maxLength": 5000
}
},
"required": [
"orderedItem",
"totalPrice"
]
},
"contact": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"type": "string",
"maxLength": 40
},
"locale": {
"type": "string",
"maxLength": 12
}
}
},
"message": {
"type": "string",
"maxLength": 20000
},
"idempotency_key": {
"description": "Same key + same request = same answer. Required for agents.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"pass": {
"description": "The person's passes (sdpass1_…), space-separated, at most 8: presented to the network that issued each, so the business recognises the customer. Or send them in the Sdi-Pass header. Never stored.",
"type": "string",
"maxLength": 1608
},
"key": {
"description": "The person's key (sdkey1_…), if that is all you have: it is exchanged once for a pass, which comes back in identity.passes — keep the pass and send it next time instead. Never stored.",
"type": "string",
"maxLength": 200
}
},
"required": [
"payload"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}