Skip to main content

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.

Required scope: purchase-orders:read

Grant 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​

OK

Response Headers
    Content-Type