Skip to main content
POST
/
accounting_codes
Create an accounting code
curl --request POST \
  --url https://sandbox.nmbr.co/services/payroll/accounting_codes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "business_entity_id": "<id>",
  "title": "Expense Code",
  "type": "expense",
  "code": "5100"
}
'
{
  "id": "<id>",
  "object": "accounting_code",
  "data": {
    "business_entity": {
      "id": "<id>",
      "object": "business_entity",
      "links": {
        "self": "/business_entities/<id>"
      }
    },
    "type": "expense",
    "code": "5100",
    "title": "Expense Code",
    "title_translations": null,
    "title_translated": "Expense Code",
    "description": null,
    "description_translations": null,
    "description_translated": null,
    "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.

Body

application/json
business_entity_id
string
required
title
string
required
Maximum string length: 255
type
enum<string>
required

The type of accounting code.

Available options:
bank,
expense,
liability
title_translations
object

Optional translations for the title property.

code
string

The accounting code identifier as it appears in the chart of accounts.

Maximum string length: 255
description
string | null
description_translations
object

Optional translations for the description property.

fallback_mappings
object[]

Line Item type/subtype pairs that default to this accounting code when no specific mapping is configured. Each entry contains type and subtype.

Must be an array of valid type and subtype pairs

The combination of type and subtype must be unique within the business entities accounting codes, for the same accounting code type.

Response

201 - application/json

Created

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