{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/urban-outfitters/refs/heads/main/json-schema/marketplace-api-order-schema.json",
  "title": "Order",
  "description": "A marketplace order from Urban Outfitters",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Order identifier",
      "example": "order-xyz789"
    },
    "status": {
      "type": "string",
      "description": "Order status",
      "enum": [
        "pending",
        "acknowledged",
        "shipped",
        "delivered",
        "cancelled"
      ],
      "example": "pending"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Order creation time",
      "example": "2025-03-15T14:30:00Z"
    },
    "items": {
      "type": "array",
      "description": "Ordered items",
      "items": {
        "$ref": "#/components/schemas/OrderItem"
      }
    },
    "shippingAddress": {
      "$ref": "#/components/schemas/ShippingAddress"
    },
    "total": {
      "type": "number",
      "description": "Order total",
      "example": 90.0
    },
    "currency": {
      "type": "string",
      "example": "USD"
    }
  }
}