v4

OpenAPI 3.0.02026-07-314441026.8 MB
Accounting Code Rules

Create an accounting code rule

post/accounting_code_rules

Request body

business_entity_idstring required
tag_group_idstring

A tag group to scope this rule to. When set without tag_id, creates a tag-group-level rule that applies to all tags in the group.

tag_idstring

A tag from the business entity's accounting code tag group. Optional — when omitted, the rule matches line items by type/subtype or business_preset_id alone.

type'allowance' | 'deduction' | 'earning' | 'employee_benefit' | 'employer_benefit' | 'employer_statutory_withholding' | 'reimbursement' | 'statutory_withholding'

The line item type to scope this rule to (e.g. earning, deduction). Mutually exclusive with business_preset_id.

subtypestring nullable

The line item subtype to further scope this rule (e.g. wage, salary). Requires type to be set.

business_preset_idstring

A business preset to scope this rule to. Provides the highest specificity match. Mutually exclusive with type and subtype.

When both tag_id and tag_group_id are omitted, either type or business_preset_id must be set.

expense_accounting_code_idstring
liability_accounting_code_idstring

Response

Created

idstring

The unique identifier of the object in Nmbr.

objectstring

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