{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/createprints-ai/json-schema/createprints-ai-order-list-schema.json",
  "title": "OrderList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/createprints-ai-orders-api-openapi.yml#/components/schemas/OrderList",
  "type": "object",
  "required": [
    "orders",
    "cursor"
  ],
  "properties": {
    "orders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrderListItem"
      }
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "$defs": {
    "OrderListItem": {
      "type": "object",
      "required": [
        "orderId",
        "orderReference",
        "createdAt",
        "status",
        "itemQuantity",
        "totalAmountCents",
        "totalAmountFormatted",
        "currency",
        "stripeSessionId"
      ],
      "properties": {
        "orderId": {
          "type": "string",
          "format": "uuid"
        },
        "orderReference": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string"
        },
        "itemQuantity": {
          "type": "integer",
          "minimum": 0
        },
        "totalAmountCents": {
          "type": "integer",
          "minimum": 0
        },
        "totalAmountFormatted": {
          "type": "string"
        },
        "currency": {
          "type": "string",
          "const": "GBP"
        },
        "stripeSessionId": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}