{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-classification-chart-of-accounts-response-dto-schema.json",
  "title": "ClassificationChartOfAccountsResponseDto",
  "description": "ClassificationChartOfAccounts response Dto.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-classifications-api-openapi.yml#/components/schemas/ClassificationChartOfAccountsResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "BILL-generated ID of the chart of accounts. The value begins with `0ca`."
    },
    "archived": {
      "type": "boolean",
      "description": "Set as `true` if the chart of accounts is archived"
    },
    "name": {
      "type": "string",
      "description": "Chart of accounts name"
    },
    "description": {
      "type": "string",
      "description": "Chart of accounts description"
    },
    "parentId": {
      "type": "string",
      "description": "BILL-generated ID of the parent chart of accounts. You can set this field if this chart of accounts is a child object."
    },
    "account": {
      "allOf": [
        {
          "$ref": "#/$defs/AccountResponse"
        },
        {
          "description": "Chart of accounts details"
        }
      ]
    },
    "createdTime": {
      "type": "string",
      "description": "Created date and time",
      "format": "date-time"
    },
    "updatedTime": {
      "type": "string",
      "description": "Updated date and time",
      "format": "date-time"
    }
  },
  "$defs": {
    "AccountResponse": {
      "type": "object",
      "properties": {
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/ChartOfAccountsTypeResponse"
            },
            {
              "description": "Type"
            }
          ]
        },
        "number": {
          "type": "string",
          "description": "Number"
        }
      },
      "description": "Account response Dto."
    },
    "ChartOfAccountsTypeResponse": {
      "type": "string",
      "description": "Chart of accounts type response.",
      "enum": [
        "UNSPECIFIED",
        "ACCOUNTS_PAYABLE",
        "ACCOUNTS_RECEIVABLE",
        "BANK",
        "COST_OF_GOODS_SOLD",
        "CREDIT_CARD",
        "EQUITY",
        "EXPENSE",
        "FIXED_ASSET",
        "INCOME",
        "LONG_TERM_LIABILITY",
        "OTHER_ASSET",
        "OTHER_CURRENT_ASSET",
        "OTHER_CURRENT_LIABILITY",
        "OTHER_EXPENSE",
        "OTHER_INCOME",
        "NON_POSTING",
        "UNDEFINED"
      ]
    }
  }
}