{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/bjs-wholesale-club/main/json-schema/bjs-order-schema.json", "title": "BJS Order", "description": "Schema for a BJ's Wholesale Club order", "type": "object", "properties": { "orderId": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "confirmed", "processing", "shipped", "delivered", "cancelled"] }, "membershipNumber": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "properties": { "productId": { "type": "string" }, "name": { "type": "string" }, "quantity": { "type": "integer" }, "unitPrice": { "type": "number" } } } }, "subtotal": { "type": "number" }, "tax": { "type": "number" }, "total": { "type": "number" }, "createdAt": { "type": "string", "format": "date-time" }, "estimatedDelivery": { "type": "string", "format": "date" } }, "required": ["orderId", "status", "membershipNumber", "items", "total"] }