Skip to main content
POST
/
accounting_codes
/
{accounting_code}
/
merge
Merge accounting codes
curl --request POST \
  --url https://sandbox.nmbr.co/services/payroll/accounting_codes/{accounting_code}/merge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accounting_code_ids": [
    "<string>"
  ]
}
'
{
  "id": "<id>",
  "object": "accounting_code",
  "data": {
    "business_entity": {
      "id": "<id>",
      "object": "business_entity",
      "links": {
        "self": "/business_entities/<id>"
      }
    },
    "type": "expense",
    "code": "9916",
    "title": "Vitae error architecto sint.",
    "title_translations": null,
    "title_translated": "Vitae error architecto sint.",
    "description": "Vitae error architecto sint velit tempora illo itaque consequuntur omnis ratione esse sint.",
    "description_translations": null,
    "description_translated": "Vitae error architecto sint velit tempora illo itaque consequuntur omnis ratione esse sint.",
    "mapping": {
      "xero": false,
      "quickbooks": false
    },
    "fallback_mappings": [],
    "created_at": "2026-01-01T00:00:00.000000Z",
    "updated_at": "2026-01-01T00:00:00.000000Z"
  },
  "links": {
    "self": "/accounting_codes/<id>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

accounting_code
string
required

Body

application/json
accounting_code_ids
string[]

An array of one or more accounting code IDs to be removed from the system, with all references to them updated to the accounting code in the resource path. All accounting codes in this array must be of the same type as the accounting code in the resource path, and must belong to the same business entity.

Response

200 - application/json

OK

id
string
read-only

The unique identifier of the object in Nmbr.

object
string
read-only

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

data
Accounting Code · object