{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"Country-agnostic sales-order acknowledgement sent to the customer after acceptance of their purchase order. Incoterms enum references Incoterms 2020 (ICC Publication 723E).","required":["supplier","customer","order_number","order_date","requested_delivery_date","confirmed_delivery_date","items","delivery_terms","payment_terms","totals"],"additionalProperties":false,"properties":{"supplier":{"type":"object","required":["name","address","contact_email"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"address":{"type":"string","minLength":1},"vat_id":{"type":"string"},"contact_email":{"type":"string","format":"email"}}},"customer":{"type":"object","required":["name","address"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"address":{"type":"string","minLength":1},"vat_id":{"type":"string"},"delivery_address":{"type":"string"}}},"order_number":{"type":"string","minLength":1},"customer_po_reference":{"type":"string","description":"Optional. Customer's own purchase order number."},"order_date":{"type":"string","format":"date"},"requested_delivery_date":{"type":"string","format":"date"},"confirmed_delivery_date":{"type":"string","format":"date"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["sku","description","quantity","unit_price","amount"],"additionalProperties":false,"properties":{"sku":{"type":"string","minLength":1},"description":{"type":"string","minLength":1},"quantity":{"type":"number","exclusiveMinimum":0},"unit_price":{"type":"number","minimum":0},"amount":{"type":"number","minimum":0}}}},"delivery_terms":{"type":"string","enum":["EXW","FCA","FAS","FOB","CFR","CIF","CPT","CIP","DAP","DPU","DDP"],"description":"Incoterms 2020."},"delivery_place":{"type":"string","description":"Named place required by most Incoterms 2020 rules (e.g. 'DAP Paris 8e, France')."},"payment_terms":{"type":"string","minLength":1},"totals":{"type":"object","required":["subtotal","vat_total","total","currency"],"additionalProperties":false,"properties":{"subtotal":{"type":"number","minimum":0},"vat_total":{"type":"number","minimum":0},"total":{"type":"number","minimum":0},"currency":{"type":"string"}}},"signatory":{"type":"object","required":["name","role"],"additionalProperties":false,"properties":{"name":{"type":"string"},"role":{"type":"string"},"date":{"type":"string","format":"date"}}}}}