Export Account Rules
GET/api/product-account-rules/export
Download the account rules as CSV, in evaluation order. The file is the same format Import Account Rules accepts, so it can be edited and re-imported.
accounting:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token with the accounting:read scope.
Response: text/csv file download named account-rules-YYYY-MM-DD.csv.
CSV columns (in order): name, position, is_active, channel_accounts_take_priority, category, include_subcategories, category_scope, brand, default_supplier, product_type, tag, sku_prefix, sales_account, cogs_account, inventory_account, in_transit_account, accrued_purchases_account, discount_account.
category,brand,default_supplier,product_type,tag,sku_prefix— names (or product type values), several separated by|.is_active,channel_accounts_take_priority,include_subcategories— 1 or 0.category_scope—primary(match the product's primary category; the default when blank) orany(match any of its categories).- Account columns — the nominal code number (e.g.
4010) or "number name" (e.g.4010 Sales - Binding Machines); blank leaves that account type unset.
Request
Responses
- 200
- 401
- 403
- 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.
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.