Get Impact Tree
GET/api/cost-changes/:costChange/impact-tree
Returns one FIFO layer's cost genealogy for the change: what valued it (the purchase order's base cost, then every invoice, bill and correction that reached the line, stepping the unit cost from before to after), where its units are (still on hand, or consumed by sales orders, assemblies and transfers), the layers built from it (kits, with their own usages) and the accounting month each part lands in under either dating (lands.restate and lands.prospective, each with the period, day, account and period status: open, closed or locked).
inventory:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
set is the cost change with its anchor options and the day the going-forward side is currently anchored on; layers is the rail of every staged line ordered by delta; selected is the tree for the requested line, defaulting to the line with the largest delta.
Authentication: Requires Bearer token (inventory scope).
Path params:
- costChange: Cost change set ID
Query params:
- line (optional, integer): the staged line ID to expand; defaults to the line with the largest delta
- prospective_date (optional, Y-m-d): preview the going-forward landing months for this posting day. Returns 409 when the day is outside the allowed window.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 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.
Not Found
Response Headers
Conflict
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.