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.
suppliers:readGrant 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) plusnext: 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) andorder_by_overdue(true when even an order placed today would not be finished before the window starts).
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.