Skip to main content

Inventory Recon Accounts (Earmark Suggestions)

GET 

/api/ledger/reconciliation/inventory/accounts

Candidate inventory control accounts for the daily reconciliation earmark step. Pulls SKU's current-asset nominal codes (plus any warehouse-mapped account), cross-references the provider's cached current-asset chart (Xero xero_accounts, matched by code — no live provider call), computes each account's point-in-time SKU inventory value as-of now, and flags which look like inventory accounts. Suggested-then-code ordered.

Authorization

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

Authentication: Requires Bearer token.

Row fields: nominal_code_id, code, sku_name, sku_type, provider_account_name, provider_account_type, provider_account_id (nullable when no provider match), warehouse_count, warehouse_names[], is_earmarked (the user's persisted decision), is_suggested (heuristic), suggestion_reasons[] (strongest first: warehouse-mapped, SKU type Inventory, provider type Inventory, name looks like inventory), current_sku_value (null when no warehouse — and therefore no SKU inventory — maps to it).

Request

Responses

OK

Response Headers
    Content-Type