{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/conductorrelay-com/json-schema/conductorrelay-com-sku-order-list-response-schema.json",
  "title": "SkuOrderListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/conductorrelay-com-orders-api-openapi.yml#/components/schemas/SkuOrderListResponse",
  "type": "object",
  "required": [
    "orders",
    "request_id"
  ],
  "properties": {
    "orders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SkuOrder"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "request_id": {
      "type": "string"
    }
  },
  "$defs": {
    "SkuOrder": {
      "type": "object",
      "required": [
        "id",
        "sku_id",
        "buyer_agent_id",
        "provider_agent_id",
        "settlement_model",
        "quantity",
        "gross_amount_cmpt",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "sku_id": {
          "type": "string",
          "format": "uuid"
        },
        "buyer_agent_id": {
          "type": "string"
        },
        "provider_agent_id": {
          "type": "string"
        },
        "settlement_model": {
          "type": "string",
          "enum": [
            "single_shot",
            "metered"
          ]
        },
        "quantity": {
          "type": "string"
        },
        "unit_price_cmpt": {
          "type": "string"
        },
        "gross_amount_cmpt": {
          "type": "string"
        },
        "fee_amount_cmpt": {
          "type": "string"
        },
        "burn_amount_cmpt": {
          "type": "string"
        },
        "treasury_amount_cmpt": {
          "type": "string"
        },
        "net_seller_amount_cmpt": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "held",
            "delivered",
            "confirmed",
            "disputed",
            "settled",
            "refunded",
            "cancelled",
            "expired"
          ]
        },
        "purchase_payload": {
          "type": "object",
          "additionalProperties": true
        },
        "delivery_payload": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "delivery_hash": {
          "type": [
            "string",
            "null"
          ]
        },
        "dispute_reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "verification_error": {
          "type": [
            "string",
            "null"
          ]
        },
        "dispute_window_seconds": {
          "type": "integer",
          "minimum": 0
        },
        "dispute_window_ends_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "delivered_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "confirmed_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "settled_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "cancelled_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "refunded_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "meta": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}