Update Accounting Dimensions
PUT/api/ledger/accounting-dimensions
Save the per-channel slot configuration. Up to two dimension slots are allowed; each slot must reference a distinct provider dimension (a 422 is returned otherwise).
Authentication: Requires Bearer token.
Slot fields:
slot— 1 or 2provider_dimension.type—xero_tracking_categoryorqbo_classprovider_dimension.mirror_id— the local id of the chosen dimensiondriver—sales_channelapply_to— object withrevenue,cogs,fbabooleans (which document families are tagged)default_value_mirror_id— fallback value id applied to unmapped channels (null to leave them untagged)mappings[]— one row per channel:channel_instance_id(null for the internal pseudo-channel),value_mirror_id, and optionalsub_channel_overrideskeyed by sub-channel id
Returns the saved configuration with recomputed warnings.
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.