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.
purchase-orders:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 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
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.