Create Channel Tracking
POST/api/ledger/setup/channel-tracking
Create the Channel dimension in the connected Xero / QuickBooks Online organisation, map every sales channel to its value and apply it to revenue, cost of goods sold, FBA inventory and fees. This writes to your accounting software, so confirm must be true. Requires the accounting.manage_settings permission.
accounting:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body:
confirm(required, accepted) — explicit consent to create the category and values in the provider.
Returns 422 when the step is not available (see Get Channel Tracking Setup). Values the provider refuses are listed in failed; the rest are created and mapped.
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.