Skip to main content

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).

Required scope: inventory:read

Grant 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

OK

Response Headers
    Content-Type