Skip to main content

List Supplier Closures

GET 

/api/supplier-closures

Paginated list of supplier closures and inbound cutoffs, each with all of its windows.

Required scope: suppliers:read

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

Authentication: Requires Bearer token (scope: suppliers, read).

Archived: only active closures are returned unless filter[archived] is sent.

Filters: search, id, name, kind, archived, status, supplier_id, warehouse_id, plus column filters on name (text), ramp_days (numeric), created_at and updated_at (date), and a filter_groups tree for AND/OR logic.

Sorts: id, name, kind, ramp_days, created_at, updated_at, next_start. Default: name.

Pagination: per_page defaults to 10 (max 100).

Response fields: id, name, kind, kind_label, preset_key, ramp_days (always 0 for inbound cutoffs), applies_to_all_suppliers, is_active (false = archived), notes, suppliers[] (id, name, route), warehouses[] (id, name), windows[] (id, start_date, end_date, label, days — inclusive day count), next_window (the first window that has not ended yet, or null), status (upcoming, active when today falls inside a window, past when every window has ended — relative to the account's today), created_at, updated_at.

Kinds (kind):

  • supplier_closure — the supplier cannot produce or dispatch (a factory shut, e.g. Chinese New Year, Vietnam Tết, Golden Week). Applies to the suppliers in supplier_ids, or to every supplier when applies_to_all_suppliers is true. Can carry a ramp_days recovery period.
  • inbound_cutoff — the destination cannot receive (e.g. Amazon's Q4 peak-season inbound restrictions). Applies to the destination warehouses in warehouse_ids; supplier fields and ramp_days are ignored (ramp is always 0).

Windows are inclusive, date-only ranges (YYYY-MM-DD, the account's local calendar): a window of 2027-01-30 to 2027-02-20 blocks both of those days and every day between (22 days). A closure can hold several windows (one per year, up to 20) and they must not overlap.

Ramp (ramp_days, 0–60): days after a supplier closure window ends while the factory is back but not at full output. Planning treats them as closed too, so a 22-day window with a 14-day ramp blocks 36 days.

How planning uses closures: lead times are calendar days. When the production days of an order (order date + lead time) cross a supplier closure window, the lead time grows by the blocked days (window + ramp), and an arrival that lands inside a destination's inbound cutoff moves to the day after the cutoff ends. If the next order would be held up by a closure, the current order's cover is lengthened too, so it buys enough stock to last through the closure. The Inventory Planning report, replenishment forecasts and forecast schedules all report the resulting extension days, a plain-English reason, and the latest date an order can go out (order_by_date) and still land before the projected stockout. Archived closures are ignored by planning.

Request​

Responses​

OK

Response Headers
    Content-Type