Skip to main content
GET
/
accounting_code_rules
List accounting code rules
curl --request GET \
  --url https://sandbox.nmbr.co/services/payroll/accounting_code_rules \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "id": "<id>",
      "object": "accounting_code_rule",
      "data": {
        "business_entity": {
          "id": "<id>",
          "object": "business_entity",
          "links": {
            "self": "/business_entities/<id>"
          }
        },
        "tag_group": {
          "id": "<id>",
          "object": "tag_group",
          "links": {
            "self": "/tag_groups/<id>"
          }
        },
        "tag": {
          "id": "<id>",
          "object": "tag",
          "links": {
            "self": "/tags/<id>"
          }
        },
        "type": null,
        "subtype": null,
        "business_preset": null,
        "expense_accounting_code": {
          "id": "<id>",
          "object": "accounting_code",
          "links": {
            "self": "/accounting_codes/<id>"
          }
        },
        "liability_accounting_code": null,
        "created_at": "2026-01-01T00:00:00.000000Z",
        "updated_at": "2026-01-01T00:00:00.000000Z"
      },
      "links": {
        "self": "/accounting_code_rules/<id>"
      }
    }
  ],
  "links": {
    "first": "/accounting_code_rules?business_entity_id=<id>&page=1",
    "last": "/accounting_code_rules?business_entity_id=<id>&page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "last_page": 1,
    "per_page": 15,
    "total": 1,
    "has_more": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

business_entity_id
string
required
tag_group_id
string
has_tag_group
boolean

Filter by whether the rule is scoped to a tag group. false returns only rules not scoped to any tag group; true returns only rules scoped to some tag group. Combining false with one or more tag_group_id values returns the union: rules with no tag group as well as rules in any of the listed groups.

tag_id
string
has_tag
boolean

Filter by whether the rule is scoped to a tag. false returns only rules not scoped to any tag; true returns only rules scoped to some tag. Combining false with one or more tag_id values returns the union: rules with no tag as well as rules with any of the listed tags.

type
enum<string>
Available options:
allowance,
deduction,
earning,
employee_benefit,
employer_benefit,
employer_statutory_withholding,
reimbursement,
statutory_withholding
subtype
string
business_preset_id
string
expense_accounting_code_id
string
liability_accounting_code_id
string

Case-insensitive substring match across the rule's tag label, business preset title, line item type and subtype label, and the expense and liability accounting code's code and title. Translated fields are matched in the request's active locale (set via the Accept-Language header).

expand
enum<string>[]
Available options:
business_entity,
business_preset,
expense_accounting_code,
liability_accounting_code,
tag,
tag_group

Response

200 - application/json

OK

object
string
read-only

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

data
object[]