Skip to main content

Map Nominal Codes → Xero Accounts

POST 

/api/xero/accounts/nominal-code-mappings

Persist SKU nominal code → Xero account mappings (polymorphic integration_account link). Enforces the inventory→ASSET guard: rejects mapping any code to a Xero INVENTORY-type account, and requires the inventory-control role's code to map to an ASSET-class account (422 otherwise).

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Request

Responses

OK

Response Headers
    Content-Type