Get Supplier Closure Presets
GET/api/supplier-closures/presets
Built-in closure templates with known dates, so a client can pre-fill a new closure instead of looking up lunar calendars. Returns every preset with its upcoming windows (windows that have not ended yet as of the account's today, at most four).
suppliers:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token (scope: suppliers, read).
Presets: chinese_new_year (7 days before to 14 days after Chinese New Year's Day, 14-day ramp), vietnam_tet (5 days before to 9 days after Tết, 7-day ramp; years where published dates disagree are left out), golden_week (October 1–7, 3-day ramp) and amazon_q4_inbound (an inbound cutoff with no dates).
Fields: key (send it as preset_key when creating), name, kind, kind_label, ramp_days, description, needs_confirmation (true when the preset ships no dates and the user must enter them, e.g. Amazon publishes its peak inbound restrictions each year), windows[] (start_date, end_date, label), help_url (where to find the dates, or null).
Presets only pre-fill a create request: saved windows are stored as sent and are never rewritten from the preset later.
Request
Responses
- 200
- 401
- 403
- 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.
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.