{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prro-cloud/json-schema/prro-cloud-cash-register-list-item-schema.json",
  "title": "CashRegisterListItem",
  "description": "Каса в переліку: ідентифікатор для запитів і реквізити, за якими людина впізнає касу.",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prro-cloud-openapi.yaml#/components/schemas/CashRegisterListItem",
  "type": "object",
  "required": [
    "id",
    "fiscal_number",
    "local_number",
    "mode",
    "state"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Ідентифікатор каси в цьому API. Значення використовують як cash_register_id у запиті на чек і як {id} в інших маршрутах."
    },
    "fiscal_number": {
      "type": "string",
      "description": "Фіскальний номер каси, який присвоїла ДПС."
    },
    "local_number": {
      "type": "string",
      "description": "CASHDESKNUM: номер каси, який присвоїв клієнт."
    },
    "org_name": {
      "type": "string",
      "description": "Назва суб'єкта господарювання."
    },
    "point_name": {
      "type": "string",
      "description": "Назва господарської одиниці."
    },
    "point_address": {
      "type": "string",
      "description": "Адреса господарської одиниці."
    },
    "mode": {
      "type": "string",
      "enum": [
        "production",
        "test"
      ],
      "description": "- `production` — фіскальний режим\n- `test` — тестовий режим, усі документи тестові\n\nДокументи зміни мають режим, у якому зміну відкрито. Змінити режим\nможна, лише коли зміну закрито."
    },
    "state": {
      "type": "string",
      "enum": [
        "closed",
        "opened",
        "offline"
      ],
      "description": "- `closed` — зміну закрито\n- `opened` — зміну відкрито\n- `offline` — офлайн-сесія відкрита"
    }
  }
}