List Upcoming Closures for Schedule
GET/api/inventory-forecasting/schedules/:schedule/upcoming-closures
List the supplier closures and inbound cutoffs starting in the next 180 days that affect the suppliers this schedule plans, with the latest date an order can go out and still beat each one.
purchase-orders:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token.
Fields per row: supplier_id, supplier_name, closure_id, closure_name, kind (supplier_closure or inbound_cutoff; cutoffs apply only when the schedule's forecast configuration has a destination warehouse), window_id, start_date and end_date (Y-m-d), ramp_days, lead_time_days (the largest base lead time among the supplier's lines in the schedule's latest run, or the supplier's default lead time when there is no run), order_by_date (Y-m-d, null when the supplier has no lead time), days_left (days from today to order_by_date, null when order_by_date is null) and is_overdue (true when even an order placed today lands after the window starts).
Rows are sorted by order_by_date, then window start. Not paginated.
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.