Skip to main content

List Closures for a Supplier

GET 

/api/suppliers/:supplier/closures

Active supplier closures that apply to one supplier (linked directly or applying to all suppliers), sorted by name, each with its next window and the latest date an order can go out to that supplier and still be finished before the factory shuts. Inbound cutoffs are not included (they belong to destinations, not suppliers). Not paginated.

Required scope: suppliers:read

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

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

Response:

  • lead_time_days — the supplier's default lead time in days, or null when none is set.
  • closures[] — each closure (same fields as Get Supplier Closure) plus next: null when every window has ended, otherwise window_id, start_date, end_date, days, order_by_date (latest order date that beats the window at the supplier's lead time, counting any earlier closures in the way; null when the supplier has no lead time or the window has already started) and order_by_overdue (true when even an order placed today would not be finished before the window starts).

Request​

Responses​

OK

Response Headers
    Content-Type