{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/doorloop/json-schema/doorloop-profit-and-loss-report-item-schema.json",
  "title": "profitAndLossReportItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/doorloop-reports-api-openapi.yml#/components/schemas/profitAndLossReportItem",
  "type": "object",
  "properties": {
    "columns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "field": {
            "type": "string"
          }
        }
      }
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountType": {
            "type": "string"
          },
          "accountName": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          },
          "rootAccount": {
            "type": "boolean"
          },
          "parentAccountId": {
            "type": "null"
          },
          "total": {
            "type": "integer"
          },
          "totalWithSubAccounts": {
            "type": "integer"
          },
          "groupBy": {
            "type": "object",
            "properties": {
              "": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}