{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-create-update-order-schema.json", "title": "CreateUpdateOrder", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/brevo-orders-api-openapi.yml#/components/schemas/CreateUpdateOrder", "type": "object", "required": [ "id", "email", "status", "amount", "products", "createdAt" ], "properties": { "id": { "type": "string", "description": "Unique identifier for the order." }, "email": { "type": "string", "format": "email", "description": "Email address of the customer who placed the order." }, "status": { "type": "string", "description": "Status of the order such as completed, pending, or cancelled." }, "amount": { "type": "number", "format": "float", "description": "Total order amount including shipping, tax, and item prices." }, "products": { "type": "array", "description": "Products included in the order.", "items": { "$ref": "#/$defs/OrderProduct" } }, "createdAt": { "type": "string", "format": "date-time", "description": "UTC date-time when the order was created." }, "updatedAt": { "type": "string", "format": "date-time", "description": "UTC date-time when the order was last updated." }, "coupons": { "type": "array", "description": "Coupon codes applied to the order.", "items": { "type": "string" } } }, "$defs": { "OrderProduct": { "type": "object", "required": [ "productId", "quantity", "price" ], "properties": { "productId": { "type": "string", "description": "Unique identifier of the product." }, "quantity": { "type": "integer", "description": "Quantity of the product ordered.", "minimum": 1 }, "price": { "type": "number", "format": "float", "description": "Price of the product at the time of order." }, "variantId": { "type": "string", "description": "Variant identifier if the product has variants." } } } } }