Skip to main content

Get Plan

GET 

/api/inventory-forecasting/runs/:runId

Get a make / buy / transfer plan run. While the build job runs, status is pending or running and summary is null — poll until it is completed or failed. Once completed, summary is computed live from the plan's lines: lines and still-to-order counts per source (make, buy, transfer, unsourced), units and value, the number of draft POs (one per supplier), MOs and transfers the plan implies, and how many lines are at risk (late or order-now). Lines already turned into a draft document no longer count as still to order. is_stale is true once the plan is more than 14 days old.

Required scope: purchase-orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type