v4

latestOpenAPI 3.0.02026-07-314441026.8 MB
Accounting Code Rules

Search accounting code rules

Search a business entity's accounting code rules. The body is a filter set at the root, plus an optional any_of list of filter sets. The root set narrows every result; the any_of sets are combined with OR and then applied together with the root, so a rule matches when it satisfies the root set and at least one any_of entry. An empty body returns every rule for the business entity.

A filter set has the same shape at the root and in each any_of entry:

  • A field group — tag_groups, tags, types, subtypes, business_presets, expense_accounting_codes, liability_accounting_codes — carries an include and/or exclude list of values. include matches rules whose field is one of the listed values; exclude matches rules whose field is none of them, keeping rules where the field is unset. - A has_<field> boolean — has_tag_group, has_tag, has_type, has_subtype, has_business_preset, has_expense_accounting_code, has_liability_accounting_code — matches rules where the field is set (true) or unset (false).

Field groups and presence booleans within a set combine with AND.

post/accounting_code_rules/search

Request body

business_entity_idstring required

The business entity whose accounting code rules to search.

has_tag_groupboolean
has_tagboolean
has_typeboolean
has_subtypeboolean
has_business_presetboolean
has_expense_accounting_codeboolean
has_liability_accounting_codeboolean

Response

OK

objectstring

The type of the object in Nmbr ("list").