{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-general-ledger-accounts-list-schema.json",
  "title": "GeneralLedgerAccountsList",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-general-ledger-accounts-api-openapi.yml#/components/schemas/GeneralLedgerAccountsList",
  "type": "array",
  "items": {
    "$ref": "#/$defs/GeneralLedgerAccount"
  },
  "$defs": {
    "GeneralLedgerAccount": {
      "type": "object",
      "description": "Full general ledger account details.",
      "properties": {
        "id": {
          "$ref": "#/$defs/GeneralLedgerAccountId"
        },
        "code": {
          "$ref": "#/$defs/GeneralLedgerAccountCode"
        },
        "description": {
          "$ref": "#/$defs/GeneralLedgerAccountDescription"
        },
        "account_type": {
          "$ref": "#/$defs/GeneralLedgerAccountTypeEnum"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created at",
          "readOnly": true
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Last updated at",
          "readOnly": true
        }
      }
    },
    "GeneralLedgerAccountCode": {
      "type": "string",
      "title": "Accounting code for the ledger account.",
      "description": "Unique code to identify the ledger account. Each code must start\nwith a letter or number. The following special characters are\nallowed: `-_.,:`\n",
      "pattern": "/^[A-Za-z0-9](( *)?[\\-A-Za-z0-9_.,:])*$/",
      "maxLength": 255
    },
    "GeneralLedgerAccountDescription": {
      "type": "string",
      "title": "Description",
      "description": "Optional description.",
      "maxLength": 255
    },
    "GeneralLedgerAccountId": {
      "type": "string",
      "title": "General Ledger Account ID",
      "description": "The ID of a general ledger account. General ledger accounts are\nonly accessible as a part of the Recurly RevRec Standard and\nRecurly RevRec Advanced features.\n",
      "maxLength": 13
    },
    "GeneralLedgerAccountTypeEnum": {
      "type": "string",
      "enum": [
        "liability",
        "revenue"
      ]
    }
  }
}