{
  "dataset": "orders",
  "title": "Orders",
  "license": "CC0-1.0",
  "updated": "2026-11-28",
  "fields": [
    {
      "name": "order_id",
      "type": "string",
      "nullable": false,
      "allowed_values": null,
      "description": "Unique order identifier. Primary key.",
      "example": "O000001"
    },
    {
      "name": "customer_id",
      "type": "string",
      "nullable": false,
      "allowed_values": null,
      "description": "The customer who placed the order. Foreign key to Customers.customer_id.",
      "example": "C00042"
    },
    {
      "name": "order_date",
      "type": "date",
      "nullable": false,
      "allowed_values": null,
      "description": "Day the order was placed (ISO 8601, UTC).",
      "example": "2026-02-09"
    },
    {
      "name": "channel",
      "type": "string",
      "nullable": false,
      "allowed_values": [
        "web",
        "sales",
        "partner",
        "marketplace"
      ],
      "description": "Where the order came from.",
      "example": "web"
    },
    {
      "name": "currency",
      "type": "string",
      "nullable": false,
      "allowed_values": [
        "USD",
        "EUR",
        "GBP",
        "KES"
      ],
      "description": "Currency of amount, ISO 4217.",
      "example": "USD"
    },
    {
      "name": "amount",
      "type": "decimal",
      "nullable": false,
      "allowed_values": null,
      "description": "Order total after discount, in the order currency, two decimal places.",
      "example": "249.00"
    },
    {
      "name": "discount_pct",
      "type": "integer",
      "nullable": true,
      "allowed_values": null,
      "description": "Discount applied, in whole percent. Empty when none.",
      "example": "10"
    },
    {
      "name": "status",
      "type": "string",
      "nullable": false,
      "allowed_values": [
        "paid",
        "pending",
        "refunded",
        "failed"
      ],
      "description": "Payment status.",
      "example": "paid"
    },
    {
      "name": "paid_at",
      "type": "datetime",
      "nullable": true,
      "allowed_values": null,
      "description": "When payment was received (ISO 8601, UTC). Empty unless status is paid or refunded.",
      "example": "2026-02-09T14:21:07Z"
    }
  ]
}
