{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-batch-update-chart-of-account-v2-dto-schema.json",
  "title": "BatchUpdateChartOfAccountV2Dto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-accountcontrollerv2-api-openapi.yml#/components/schemas/BatchUpdateChartOfAccountV2Dto",
  "type": "object",
  "properties": {
    "connectionUuid": {
      "type": "string",
      "description": "Unique connection identifier."
    },
    "batch": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchUpdateChartOfAccount"
      }
    }
  },
  "required": [
    "connectionUuid",
    "batch"
  ],
  "$defs": {
    "BatchUpdateChartOfAccount": {
      "type": "object",
      "properties": {
        "nominalCode": {
          "type": "string",
          "maxLength": 10,
          "minLength": 5
        },
        "name": {
          "type": "string",
          "maxLength": 100
        },
        "description": {
          "type": "string",
          "maxLength": 100
        },
        "classification": {
          "type": "string",
          "enum": [
            "asset",
            "equity",
            "expense",
            "liability",
            "revenue",
            "nonPosting"
          ]
        },
        "currency": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "bank",
            "currentAsset",
            "fixedAsset",
            "inventory",
            "nonCurrentAsset",
            "accountReceivable",
            "equity",
            "expense",
            "otherExpense",
            "cogs",
            "accountPayable",
            "creditCard",
            "nonCurrentLiability",
            "currentLiability",
            "income",
            "incomeGeneral",
            "otherIncome",
            "unbilledReceivable",
            "deferredExpense",
            "deferredIncome"
          ]
        },
        "bankAccountNumber": {
          "type": "string"
        },
        "taxRateRef": {
          "$ref": "#/$defs/TaxRateRefDto"
        },
        "parentRef": {
          "$ref": "#/$defs/ParentRefDtoV2"
        },
        "subsidiaryRefs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SubsidiaryRefDto"
          }
        },
        "passThrough": {
          "type": "object",
          "additionalProperties": true
        },
        "accountRef": {
          "type": "string",
          "description": "id of account to be updated"
        }
      },
      "required": [
        "accountRef"
      ]
    },
    "ParentRefDtoV2": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "SubsidiaryRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "TaxRateRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    }
  }
}