Filter ledgers using advanced JSON-based query criteria
field (string, required): The ledger field to filter on (e.g., “name”, “created_at”, “ledger_id”)operator (string, required): The comparison operator to usevalue (any, required): The value to compare againsttotal_count field with the total number of matching ledgers.eq - Equal toneq - Not equal togt - Greater thangte - Greater than or equal tolt - Less thanlte - Less than or equal tolike - Pattern matching (case-sensitive)ilike - Pattern matching (case-insensitive)in - Value is in arraynin - Value is not in arrayledger_id - The unique identifier of the ledgername - The ledger namecreated_at - The creation timestampmeta_data (use dot notation, e.g., “meta_data.region”)include_count is false (default), returns an array of ledger objects.
When include_count is true, returns an object with:
include_count is true)filters array is required and must contain at least one filter objectilike with % wildcards for flexible text searching (e.g., %wallet% matches “Customer Wallets”)in and nin operators expect an array value (e.g., {"field": "name", "operator": "in", "value": ["Ledger A", "Ledger B"]})include_count: true when you need to show total results for pagination UI/ledgers with query parameters for simpler filtering needs