{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reglayer-ai/json-schema/reglayer-ai-order-schema.json",
  "title": "Order",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reglayer-ai-openapi.json#/components/schemas/Order",
  "type": "object",
  "required": [
    "ok",
    "order_id",
    "status",
    "product",
    "notice"
  ],
  "properties": {
    "ok": {
      "const": true
    },
    "api_version": {
      "type": "string"
    },
    "order_id": {
      "type": "string"
    },
    "brief_id": {
      "type": "string"
    },
    "check_id": {
      "type": "string"
    },
    "status": {
      "enum": [
        "payment_required",
        "paid",
        "researching",
        "ready",
        "failed"
      ]
    },
    "product": {
      "enum": [
        "instant_brief",
        "instant_check"
      ]
    },
    "amount_cents": {
      "type": "integer"
    },
    "charged_cents": {
      "type": "integer"
    },
    "access_mode": {
      "const": "paid"
    },
    "currency": {
      "const": "usd"
    },
    "status_url": {
      "type": "string",
      "format": "uri"
    },
    "result_url": {
      "type": "string",
      "format": "uri"
    },
    "pdf_url": {
      "type": "string",
      "format": "uri"
    },
    "delivery_mode": {
      "const": "asynchronous_polling"
    },
    "connection_required": {
      "const": false
    },
    "poll_after_seconds": {
      "type": [
        "integer",
        "null"
      ]
    },
    "delivery_instructions": {
      "type": "string"
    },
    "notice": {
      "type": "string"
    }
  }
}