{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-general-ledger-account-schema.json",
  "title": "GeneralLedgerAccount",
  "description": "Full general ledger account details.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-general-ledger-account-api-openapi.yml#/components/schemas/GeneralLedgerAccount",
  "type": "object",
  "properties": {
    "id": {
      "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
    },
    "object": {
      "type": "string",
      "title": "Object type",
      "default": "general_ledger_account",
      "readOnly": true
    },
    "code": {
      "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
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "Optional description.",
      "maxLength": 255
    },
    "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
    }
  },
  "$defs": {
    "GeneralLedgerAccountTypeEnum": {
      "type": "string",
      "enum": [
        "liability",
        "revenue"
      ]
    }
  }
}