{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-list-accounting-accounts-response-schema.json",
  "title": "ListAccountingAccountsResponse",
  "description": "Paginated Xero chart-account list",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-accounting-accounts-api-openapi.yml#/components/schemas/ListAccountingAccountsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AccountingAccount"
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "hasMore": {
          "type": "boolean"
        },
        "nextOffset": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "prevOffset": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "limit",
        "offset",
        "hasMore",
        "nextOffset",
        "prevOffset"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data",
    "pagination"
  ],
  "additionalProperties": false,
  "$defs": {
    "AccountingAccount": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Xero account id. Same value the deposit charge accepts (`revenueAccountId` for prepayment)."
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Xero currency code, or null when the account has none."
        }
      },
      "required": [
        "id",
        "name",
        "type",
        "currency"
      ],
      "additionalProperties": false,
      "description": "Xero chart account for a deposit. Not a gateway deposit or refund account."
    }
  }
}