{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/akeda-ru/json-schema/akeda-ru-core-accounting-period-close-schema.json",
  "title": "CoreAccountingPeriodClose",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akeda-ru-core-accounting-api-openapi.yml#/components/schemas/CoreAccountingPeriodClose",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "business",
    "closed_through"
  ],
  "properties": {
    "business": {
      "$ref": "#/$defs/UUID",
      "description": "Бизнес, чей учёт закрывается; без него — параметр business адреса, иначе отказ 400"
    },
    "closed_through": {
      "type": "string",
      "format": "date",
      "description": "Дата, по которую включительно закрывается учёт (ГГГГ-ММ-ДД)"
    },
    "reason": {
      "type": "string",
      "description": "Комментарий к решению для журнала"
    }
  },
  "$defs": {
    "UUID": {
      "type": "string",
      "format": "uuid"
    }
  }
}