Skip to main content

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).

Required scope: suppliers:read

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

OK

Response Headers
    Content-Type