# Stoq API v2 — Agent Skill

You are integrating with the Stoq API v2 — preorders and back-in-stock for Shopify. This is the root skill document: read it to learn how to authenticate, discover the surface, and call any action. For deep, domain-specific guidance, fetch the per-domain skill docs linked below.

## Getting started

- **Base URL:** `https://app.stoqapp.com/api/v2/external`
- **Auth:** every call endpoint needs an `X-Auth-Token: <api_key>` header. The merchant obtains their API key from the Stoq dashboard: Back in stock alerts → Settings → Integrations → API (under Developer) → Copy. This document and the `skill.md` / `help` discovery surface are public so you can learn the API before you have a token.
- **Content type:** JSON in, JSON out. Errors return `{ "errors": [string, ...], "details": [{ "code", "message", "path", "value", "expected" }, ...] }`, one detail per error, every key always present (`null` when not applicable). Branch on `details[].code` / `path`, not on message text.
- **MCP:** prefer tool calling? `POST https://app.stoqapp.com/api/v2/external/mcp` is an MCP server exposing every action below as a tool (auth: same key).

## Core idea

The API is action-driven, not endpoint-driven. Every action declares a description, aliases (natural-language phrasings), a URL path, and a verb. To handle a request: scan the alias arrays in the help manifest, match the merchant's intent to a single action, build its request body from the schema, and call it.

## Two domains

- **Preorders** — selling plans (offers), variants, orders, payments, reports. Deep guide: `https://app.stoqapp.com/api/v2/external/preorders/skill.md`
- **Back in Stock** — signups (the waitlist), notifications, channel settings, reports. Deep guide: `https://app.stoqapp.com/api/v2/external/back_in_stock/skill.md`

## Discovery

All GET, all token-authenticated:

- `GET /api/v2/external/help` — every registered action across both domains: path, method, description, aliases, request schema.
- `GET /api/v2/external/help?prefix=/preorders` (or `/back_in_stock`, or any deeper scope) — scoped manifest.
- `GET /api/v2/external/<scope>/help` — same, reachable at any URL level.

The manifest is generated from the live action registry; it cannot drift from what the dispatcher accepts.

## Conventions

- **Named actions carry side effects; PATCH carries settings.** Lifecycle transitions, fan-out, and payment mutations are named POST actions. Plain settings and boolean toggles are set via a capability's deep-partial `PATCH` (fields you don't send are untouched).
- **Reads return the resource; writes return the updated resource or `{ job_id }`** for bulk/async work — poll the matching jobs/exports action until terminal.
- **Failures return `{ "errors": [...], "details": [...] }`** with a status. `409` means an invalid lifecycle transition — read the error, don't retry blindly.

## All registered actions

Every action live on the API right now, across both domains, with method, path, description, and aliases. (For worked example flows, see the per-domain skill docs above.)

| Method + Path | Description | Aliases |
|---|---|---|
| `GET /account/help_docs` | Search STOQ's docs, or read one page in full: the help centre (help.stoqapp.com, audience merchant) and the developer docs (docs.stoqapp.com, audience developer). Use for how-to and explanation questions — how a feature works, how to set something up, what a setting means, how to call the API. Search first, then read the page that matches by its url before relaying step-by-step instructions; the snippets are previews. | help docs, help center, search docs, how do I, documentation, developer docs |
| `GET /account/integrations` | Every third-party integration (Klaviyo, Postscript, Shopify Flow, Judge.me, Smile.io, Gorgias, Omnisend, Mailchimp, Meta Pixel, SplitOrder, Shopify customer sync) with its status: not_connected, off, setup_incomplete, needs_attention or connected, and a reason {code, message} unless connected. Each entry has the connection (method oauth, api_key or switch; never a key, only key_hint), selected_for (the channels it sends on, from /account/sending), plan, the setup steps with the endpoint that runs each, its non-secret settings, and links to the dashboard panel and the help article. | integrations, integration status, klaviyo connection, postscript connection, omnisend, mailchimp, customer sync, is klaviyo connected, which integrations are set up |
| `PATCH /account/integrations` | Update the shop's integrations: sync signups to Klaviyo, Omnisend, Mailchimp or Shopify customers (with the customer tag), the Omnisend and Mailchimp API keys and Mailchimp audience, the Meta Pixel, Shopify Flow triggers and the SplitOrder app switch. API keys are write only; reads return connected flags. | connect omnisend, set omnisend api key, connect mailchimp, set mailchimp api key, pick mailchimp audience, sync signups to klaviyo, sync customers to shopify, customer sync tag, turn on meta pixel, set meta pixel id, enable shopify flow triggers, enable splitorder, set Postscript keyword |
| `POST /account/integrations/:channel/flows/auto_setup` | Create the Klaviyo flows that send STOQ alerts for a campaign type, as the template editor's automatic setup does (klaviyo_email or klaviyo_sms). | set up klaviyo flows automatically, auto setup klaviyo, create klaviyo flows |
| `POST /account/integrations/:channel/flows/confirm` | Record that the merchant set the flows up themselves: for Klaviyo (klaviyo_email, klaviyo_sms) the campaign type is switched to manual setup; for Postscript the template's flow is marked verified. Changes nothing in the provider. | i set up the klaviyo flow manually, manual klaviyo setup, confirm postscript flow |
| `POST /account/integrations/:channel/flows/reset` | Forget the Klaviyo flow setup choice for a campaign type (klaviyo_email or klaviyo_sms), so the template editor asks again, and mark its templates' flows unverified. | reset klaviyo setup, start klaviyo setup over |
| `POST /account/integrations/:channel/flows/send_test_event` | Send a test event to Klaviyo (klaviyo_email, klaviyo_sms) or Postscript (postscript), so the merchant can build or test the flow that sends STOQ alerts. The event carries a sample product and customer, not real store data. | send klaviyo test event, send dummy events, send postscript test event |
| `POST /account/integrations/:channel/flows/verify` | Check with the provider that the flows sending STOQ alerts are set up: Klaviyo email (klaviyo_email), Klaviyo SMS (klaviyo_sms) or Postscript (postscript). Returns verified and, when not, the provider's reason. | verify klaviyo flow, check klaviyo flow, verify postscript setup, is my klaviyo flow working |
| `GET /account/integrations/:id` | One integration's status, as in GET /account/integrations. id is one of: klaviyo, postscript, shopify_flow, judgeme, smile, gorgias, omnisend, mailchimp, meta_pixel, split_order, shopify_customers. | klaviyo status, postscript status, gorgias status, why is klaviyo not sending, finish klaviyo setup |
| `POST /account/integrations/:id/connect` | Connect an integration. OAuth integrations (klaviyo, judgeme, smile, gorgias) return 201 with connect_url, a one-use link (15 minutes) to the dashboard panel where the merchant presses Connect and approves in the provider. Show it to the user; do not open or fetch it. API-key integrations (postscript, omnisend, mailchimp) take api_key, check it with the provider where STOQ can (Postscript, Mailchimp) and save it. Over MCP or the in-app assistant they take no key and return 201 with key_url instead: API keys are entered by the merchant in STOQ. Show key_url to the user; do not ask for the key. | connect klaviyo, connect postscript, set postscript api key, connect omnisend, connect mailchimp, connect gorgias, connect judge.me, connect smile |
| `GET /account/integrations/:id/events` | What happened to one integration, newest first: connect links and key links issued, connects, disconnects (auto_disconnected when the provider revoked STOQ's access), keys set, cleared or refused, and settings changed (field names only). Each event says which surface did it: dashboard, quinn, mcp, api or system. | integration history, klaviyo history, who disconnected klaviyo, integration events |
| `POST /account/integrations/:provider/disconnect` | Disconnect an integration. OAuth (klaviyo, judgeme, gorgias, smile): revokes the connection with the provider and forgets its tokens, as the card's Disconnect does; a legacy Klaviyo private key is removed instead. API key (postscript, omnisend, mailchimp): removes the key and turns off its sync. Switch (shopify_flow, meta_pixel, split_order, shopify_customers): turns it off. | disconnect klaviyo, disconnect judge.me, disconnect gorgias, disconnect smile, remove postscript key, disconnect omnisend, disconnect mailchimp, turn off shopify flow |
| `GET /account/integrations/mailchimp/audiences` | The Mailchimp audiences (lists) the saved Mailchimp API key can see, to pick mailchimp.list_id for PATCH /account/integrations. | mailchimp audiences, mailchimp lists |
| `GET /account/integrations/postscript/keywords` | The Postscript keywords on the saved Postscript account, to pick postscript.keyword and postscript.keyword_id for PATCH /account/integrations. | postscript keywords |
| `GET /account/languages` | The shop's languages: default_locale (the language alerts and the signup widget use), app_locale (the dashboard language), whether multi-language support and translated product titles are on, and, when multi-language is on, the locales published in Shopify. | languages, alert language, default language, dashboard language, multi language, store locales |
| `PATCH /account/languages` | Update the shop's language settings: the dashboard language (app_locale), multi-language alerts and widget, and translated product titles in alerts. | change dashboard language, use stoq in french, turn on multi language, send alerts in the customer's language, use translated product titles, translate product titles |
| `POST /account/languages/reset_locale` | Replace one language's widget and alert copy with STOQ's default text in that language, as the translation pages' reset does. With default_locale, first make that the language customers get alerts and the widget in, as the Settings page's language picker does. | default alert language, change alert language, change customer language, reset translations, restore default text |
| `GET /account/locations` | The store's Shopify locations: shopify_location_id (a gid), name, and whether each is active. Use it to name the locations in back-in-stock delivery settings and in markets. | locations, shopify locations, store locations, warehouses |
| `GET /account/markets` | The store's Shopify Markets (international selling) and how STOQ routes stock by market: active markets with their countries, the market setup, the market-to-location links, market URLs in alerts, and the single-market preorder location filter. Distinct from an offer's market availability or restock-alert locations. Only active markets are returned by default. | markets, shopify markets, international selling, which markets, sell internationally |
| `PATCH /account/markets` | Update how the store routes stock by market, for back in stock and preorders alike: the market setup, the market-to-location links and whether they are used, market URLs, and the single-market location filter. | link market to inventory location, market based locations, sell in multiple markets, preorder market setup, count stock at specific locations, preorder location filter, filter preorder locations, use market urls in alerts |
| `GET /account/plan_usage` | The shop's current STOQ plan, the limits it includes, and a calendar month's usage against them (back-in-stock email and SMS alerts, SMS segments, preorders). | plan and usage, what plan am I on, how much have I used, usage this month, plan limits |
| `GET /account/sending` | Who sends each customer notification, and STOQ's own sending settings. `notifications` nests each channel under its notification: back_in_stock (signup_thank_you, restock_alert, reminder) and preorders (confirmation, shipping_update, payment_failed), each channel with `sender` (who sends it right now, worked out by the same code the sender runs; null means it is not sent) and `fallback_reason` (why the sender is not the chosen email_provider or sms_provider: credentials_missing, flow_unverified, flow_trigger_disabled, flow_not_supported, custom_html_template). stoq is STOQ's own email and SMS. Also returns the sender name and address, reply-to, the custom sending domain and its DKIM check, and whether STOQ lets the shop send: email_allowed (false when STOQ has blocked the shop's email), sms_allowed (SMS approved) and sms_restricted_content_verified (staff reviewed the SMS content). STOQ sets these three; they cannot be written. sending_paused, present only when STOQ blocks a channel, says alerts on it will not go out. custom_address_status says where sending from the merchant's own address stands: not_set (use_custom_email_address is off or no address of their own), pending (DKIM for the address's domain is not verified yet, so mail goes from STOQ's address) or verified (mail goes from the merchant's address). The DNS records to add while pending come from POST /account/sending/verify_domain, which asks Amazon SES. | email provider, sms provider, sender address, from address, custom sending domain, sending settings, who sends my notifications, is klaviyo sending my alerts, why did stoq send instead of klaviyo, is my sender address verified, why are emails not sent from my address |
| `PATCH /account/sending` | Update who sends the shop's customer notifications: email and SMS provider, sender name, the merchant's own sending address, store domain in SMS links, Klaviyo marketing consent and the Postscript API key (write only). The email font, text sizes and logo size are PATCH /account/templates/email_style. | switch email provider, send emails with klaviyo, send emails from stoq, switch sms provider, use postscript, set postscript api key, change sender name, send from my own email address, use store domain in sms links, change preorder notification provider |
| `POST /account/sending/verify_domain` | Check with Amazon SES whether the domain of the merchant's own sending address (email_reply_to_address) is verified for sending, and return the DKIM DNS records to add when it is not, as the email settings' domain check does. | verify sending domain, check dkim, dkim records, is my email domain verified |
| `GET /account/settings/:section_id` | One settings section: label, description, `settings` (the output of the read actions behind it, keyed by block, e.g. settings.widget is GET /back_in_stock/settings/widget), `columns` (field path => model column) and `raw` (field path => stored value). Sections: delivery_settings, signup_widget, notification_channels, notification_templates, preorder_notifications, preorder_pages, preorder_storefront_text, integrations, languages. | app settings, current settings, settings section, notification settings, delivery settings, signup widget settings |
| `GET /account/setup` | Whether STOQ's app embed is on in the published theme: status enabled, disabled, or unknown when the theme could not be read, with the theme editor link that turns it on when it is not on. The embed adds the Preorder and Notify me buttons to the storefront. | is the app embed on, app embed, app embed status, theme app extension, buttons not showing on storefront |
| `GET /account/setup_guide` | The setup guide on the dashboard's Home page, for back_in_stock and preorders: whether the merchant chose that product on the welcome page (chosen), each step in order with done, steps_done, next_step (null once the guide is complete) and completed_at (set when every step is done or the guide was skipped). Back in stock: app_embed, design_widget, first_signup, first_alert_sent, with first_signup_id while the guide is open. Preorders: app_embed, first_offer, first_product, first_order. | setup guide, onboarding, onboarding steps, getting started, setup progress, what is left to set up, is stoq set up |
| `POST /account/setup_guide/skip` | Skip the Home page setup guide, as its Skip setup button does: the guide is marked done and hidden for good. flow is back_in_stock or preorders; leave it out to skip both. | skip setup guide, skip onboarding, hide setup guide, hide getting started |
| `GET /account/templates/:campaign_type/translations` | Read every translation override on the preorder confirmation template, plus the full enumeration of translatable field paths, each field's default-locale source text, and every locale the shop has actually published. campaign_type is "preorder"; back-in-stock notifications are GET /back_in_stock/templates/:key/translations. | get notification translations, template translations, email translations, sms translations |
| `GET /account/templates/email_style` | The look every STOQ email shares, back-in-stock and preorder alike: font, header and description text sizes, logo size, and logo_url (the uploaded logo, null when there is none). The template editor sets these for every template at once. | email style, email font, email text size, email logo size, email logo |
| `PATCH /account/templates/email_style` | Update the look every STOQ email shares, back-in-stock and preorder alike: font, header and description text sizes, and logo size. | change email font, change email text size, change email logo size, email style |
| `POST /account/templates/email_style/logo` | Upload the logo every STOQ email shows, back-in-stock and preorder alike, as the template editor's logo drop zone does. Replaces the current logo. | upload email logo, change email logo, add logo to emails |
| `DELETE /account/templates/email_style/logo` | Remove the logo from every STOQ email, as the template editor's Remove logo link does. | remove email logo, delete email logo |
| `POST /account/theme_integrations` | Request a theme integration, as the page editors' Request setup button does: Quick Buy (the 'Notify me'/'Preorder' button inside the theme's quick add popup) on the home, collection or search page, or Featured products (the button on featured product sections) on the home page. Our team sets it up for the theme, usually within 12-24 hours, and tells the merchant by email or chat. Paid plans only. | request quick buy, set up quick buy, request quick add integration, request featured product integration, set up featured products, request setup |
| `GET /account/theme_integrations` | The theme integrations the merchant requested from the page editors (Back in stock > Customize and Preorders > Settings > Pages): Quick Buy on the home, collection or search page, and Featured products on the home page. enabled is null while our team sets one up, then true or false. A page with no row has not been requested. | theme integrations, quick buy, quick add, featured product integration, integration request status, requested integrations |
| `GET /account/theme_integrations/:id` | One theme integration (Quick Buy or Featured products) by id. enabled is null while our team sets it up, then true or false. | theme integration status, quick buy status, featured product status |
| `PATCH /account/theme_integrations/:id` | Turn a theme integration (Quick Buy or Featured products) on or off, as the page editors' checkbox does once our team has set it up. Paid plans only. | turn on quick buy, turn off quick buy, enable quick buy, disable quick buy, enable featured product integration, disable featured product integration |
| `GET /account/translations` | Read every translation override on the shop's notify-me button, signup form, and preorder button/modal text, plus the full enumeration of translatable field paths, each field's default-locale source text, and every locale the shop has actually published. | get widget translations, signup form translations, notify me translations, shop translations |
| `POST /account/web_pixel/enable` | Turn on the STOQ web pixel, the dashboard's "Set up tracking" button on the Products > Engagement view. It records storefront button impressions, clicks and add-to-carts for the back-in-stock and preorder engagement reports. | set up tracking, enable tracking, turn on the web pixel, install the pixel, enable engagement tracking |
| `GET /back_in_stock/app_proxy/detect` | Find which app proxy path the storefront answers, from the paths STOQ installs with. detected is that path, or null when none answers (or the storefront password hides it). | detect app proxy, find app proxy path |
| `GET /back_in_stock/app_proxy/verify` | Check that the storefront answers the app proxy path the store-domain opt-in link uses. valid is true or false; it is null with password_protected true while the storefront password hides the answer. | verify app proxy, check app proxy path, test the app proxy |
| `GET /back_in_stock/customers` | List the shop's customers (everyone who signed up for an alert or placed a preorder), newest first, as the Reports page's Customers tab does. | list customers, customers tab, back in stock customers, who signed up, search customers, unsubscribed customers |
| `DELETE /back_in_stock/customers/:id` | Delete a customer, as the customer page's Delete customer does: their signups, notifications, preorders and analytics go with them. | delete customer, remove customer, erase customer data, forget this customer |
| `GET /back_in_stock/customers/:id` | Read one customer, as the header of their page under the Customers tab shows it. | show customer, customer details, is this customer subscribed |
| `POST /back_in_stock/customers/:id/subscribe` | Subscribe a customer to back-in-stock notifications again, with all their signups, as the customer page's Subscribe does. | resubscribe customer, subscribe customer, turn notifications back on for customer |
| `POST /back_in_stock/customers/:id/unsubscribe` | Unsubscribe a customer from ALL back-in-stock notifications, every product and future signups, as the customer page's Unsubscribe does. To take them off one product's list, delete that signup instead; use this only when they ask to stop everything. An unsubscribe that names a product ("unsubscribe jo@x.com from the Blue Tee") means delete that one signup, not this. | unsubscribe customer, stop notifications for customer, opt customer out |
| `POST /back_in_stock/customers/bulk_delete` | Delete up to 100 customers in one request, as the Customers tab's Delete customers bulk action does: their signups, notifications, preorders and analytics go with them. | bulk delete customers, delete these customers, remove customers in bulk |
| `GET /back_in_stock/notification_settings` | List the back-in-stock notifications in send order (signup_thank_you, restock_alert, reminder): whether each one sends (`enabled`) and, for the reminder, how many days after the restock alert it sends (`after_n_days`). | list back in stock notifications, show the alert sequence, when does the reminder send, is the signup thank you email on, are back in stock alerts on, notification settings |
| `GET /back_in_stock/notification_settings/:key` | Read whether one back-in-stock notification sends and, for the reminder, when. key is "signup_thank_you", "restock_alert" or "reminder". | is the reminder on, is the restock alert on, reminder timing |
| `PATCH /back_in_stock/notification_settings/:key` | Turn a back-in-stock notification on or off, or change when the reminder sends. key is "signup_thank_you", "restock_alert" or "reminder". `enabled` (true/false) works on every key; for "restock_alert" it is the Notifications card's "Send automatic notification" switch, so false stops automatic back-in-stock alerts. `after_n_days` (1 or more) is the reminder's wait after the restock alert. | change reminder timing, send the reminder after 3 days, turn on the restock reminder, turn off the restock reminder, turn off automatic back in stock alerts, stop sending restock alerts, enable signup thank you email, turn off signup thank you email |
| `GET /back_in_stock/notifications` | List back-in-stock notifications (the send log) in this shop, paginated. | list notifications, back in stock send log, restock notifications sent, who got notified, notification history, show sent restock alerts |
| `GET /back_in_stock/notifications/:id` | Read one back-in-stock notification (a single send-log entry). | show notification, get notification, look up sent restock alert, notification details |
| `GET /back_in_stock/orders` | List orders placed after a back-in-stock alert, paginated. search matches order number/name, customer name, email, a Shopify order id (10+ digits), an order gid (gid://shopify/Order/<id>), or a Shopify admin order URL. | list back in stock orders, restock alert orders, notification orders, orders from restock alerts, sales recovered |
| `GET /back_in_stock/products` | Read per-product back-in-stock configuration: notify-me button visibility (always_show / when_out_of_stock / never_show), restock message and assigned widget template (widget_template_id, from GET /back_in_stock/widget_templates) for each variant, plus whether the shop-level per-product customization toggle is on. Each row also has the variant's pending and total signups (count_by as on the dashboard) and its lifetime back-in-stock units sold and revenue. Without search, rows are the variants STOQ has activity for (signups, per-product settings, offers), sorted by pending signups, most first. search (product name, variant title, SKU, product URL or id) also looks the term up in the Shopify catalog: matching variants STOQ has no row for come after the STOQ rows, with default settings and zero counts. Every row has has_stoq_activity; a search response has catalog_searched (false when the catalog was skipped or could not be reached). Filter with shopify_product_id, shopify_variant_id, overrides_only=true or has_waitlist=true; the last two only match STOQ rows, so they skip the catalog. Shopify ids are gids both ways, e.g. "gid://shopify/ProductVariant/123". | which products have custom notify me settings, per product back in stock config, product button visibility, products tab settings |
| `PATCH /back_in_stock/products` | Update per-product back-in-stock configuration for one or more products or variants (the "Back in stock alerts -> Products" tab). `targets` is a list; a target with shopify_variant_id changes just that VARIANT, a target with only shopify_product_id changes EVERY variant of that product. The same field values are applied to every target, so send one call per distinct set of values. button_visibility is one of "always_show" (notify-me button shown even while the item is IN stock -- WARNING: this also DISABLES automatic back-in-stock alerts for that variant, so the merchant has to notify signups manually), "when_out_of_stock" (the default: button appears only when out of stock and alerts send automatically) or "never_show" (button hidden on the storefront). restock_message is the free-text note shown under the button (e.g. "Back in stock March 15"); send an empty string to clear it. widget_template_id is a widget template id from GET /back_in_stock/widget_templates, or null to fall back to the global widget design. Target ids are Shopify gids. automatic_alerts_disabled (true/false) directly turns this variant's automatic back-in-stock alert on restock off (true) or on (false) -- the same control as the variant's own "Enable/Disable alerts" button, independent of button_visibility, and the field GET /back_in_stock/products reads back. Send false to fix a variant showing "Disabled" for automatic alerts, not button_visibility. If both button_visibility: "always_show" and automatic_alerts_disabled are sent in the same call, automatic_alerts_disabled wins. Per-product visibility/message/template values only take effect while the shop-level toggle configure_notify_me_enabled is on; when it is off this action refuses rather than store values that would not apply, unless enable_customization: true is passed, which turns the toggle on as part of this change (a no-op when already on). automatic_alerts_disabled is NOT gated by configure_notify_me_enabled -- it applies regardless. per_product_customization_enabled (true/false), sent on its own with no targets, turns that shop-level toggle on or off (off = the tab's "Disable per-product overrides"). | hide the notify me button on these products, always show the notify me button, show the notify me button even when in stock, hide notify me on discontinued products, add a restock message to a product, set a back in stock date on a product, clear the restock note, use a custom back in stock template on this product, assign a template to a product, per product notify me settings, per product back in stock settings, button visibility for a product, disable per product overrides, turn off per product customization |
| `GET /back_in_stock/reports` | List every available back-in-stock report (name, description, aliases, url). | reports, list reports, available reports, what reports are there, report catalog |
| `GET /back_in_stock/reports/conversions` | The Back in stock Overview orders chart: orders attributed to back-in-stock alerts and their revenue per day, week or month. | did the alerts convert, recovered revenue, conversion trend, orders from alerts, revenue recovered over time |
| `GET /back_in_stock/reports/engagement` | Back-in-stock "Notify me" button engagement: impressions, clicks, click rate, signups and signup rate, shop-wide and per variant — the merchant's Products > Engagement view. | notify me engagement, back in stock funnel, click rate, signup rate, back in stock button engagement |
| `GET /back_in_stock/reports/notifications` | The Back in stock Overview notifications chart: emails and delivered SMS sent per day, week or month, with the orders attributed to them. | notification trend, alerts sent, sends by channel, how many alerts went out |
| `GET /back_in_stock/reports/product_revenue` | Revenue, units and orders from back-in-stock alerts per variant (or product), as the dashboard's revenue table. | revenue by product, which products recovered revenue, back in stock product revenue, top selling restocked products, units sold from alerts |
| `GET /back_in_stock/reports/products_in_demand` | The Products in demand table: variants (or products) ranked by back-in-stock demand, with signups created in the window, how many of them are still waiting, and the last request. | demand report, what should I restock, most wanted products, top requested variants, products in demand, restock priorities |
| `GET /back_in_stock/reports/signups` | The Back in stock Overview signups chart: back-in-stock signups created per day, week or month. | signup trend, signups over time, waitlist growth, new signups, daily signups |
| `GET /back_in_stock/reports/summary` | The Back in stock Overview tiles over a date window: attributed orders and their revenue, average order value, distinct buyers, signups, and notifications sent by email and SMS. | summary, overview, how is back in stock doing, dashboard stats, recovered revenue, notifications sent |
| `GET /back_in_stock/reports/wait_duration` | How long back-in-stock shoppers have been waiting: median wait days, the longest wait, and a binned wait-time histogram (paid plans only). | wait duration, wait time, how long are people waiting, wait time histogram, how long have customers waited |
| `GET /back_in_stock/sending_history` | List back-in-stock sends, newest first: each restock or manual send working through a variant's waitlist, with its progress (the dashboard's Bulk requests page). | sending history, bulk requests, bulk sends, send jobs, restock sends, is the send finished, notification send progress |
| `GET /back_in_stock/sending_history/:id` | Read one back-in-stock send's progress by the id a notify endpoint returned. | send status, send progress, check send job, is the bulk send done |
| `GET /back_in_stock/settings` | Read all back-in-stock settings for the shop. ?locale= picks the language of the widget copy (omit it for the shop default). | get settings, show settings, view settings, back in stock settings, notification settings, settings |
| `PATCH /back_in_stock/settings` | Update back-in-stock settings for the shop: channels, delivery, compliance, tagging, merchant alerts and the signup widget, in one request. | edit settings, change settings, modify settings, update back in stock settings, configure notifications |
| `GET /back_in_stock/settings/alerts` | Read back-in-stock merchant alert and scheduled report settings. | get alert settings, show alerts, view signup threshold, view scheduled reports, alerts |
| `PATCH /back_in_stock/settings/alerts` | Update back-in-stock merchant alert and scheduled report settings. | edit alert settings, change alert settings, set signup threshold, notify me on high demand, enable signup threshold alerts, disable signup threshold alerts, alert me when a product gets lots of signups, enable daily report, enable weekly report, enable monthly report, disable daily report, disable weekly report, disable monthly report, schedule reports, turn off report emails, stop feature update emails, notify me when a theme is published |
| `GET /back_in_stock/settings/channels` | Read back-in-stock notification channel settings. | get channels, show channels, view notification channels, which channels are enabled, channels |
| `PATCH /back_in_stock/settings/channels` | Update the back-in-stock email and SMS channel switches. Turning automatic alerts on or off is PATCH /back_in_stock/notification_settings/restock_alert; the email sender and SMS number are PATCH /account/sending. | edit channels, change channels, modify channels, enable email notifications, turn on email alerts, disable email notifications, turn off email alerts, enable sms, turn on SMS alerts, enable text notifications, disable sms, turn off SMS alerts, stop text notifications |
| `GET /back_in_stock/settings/compliance` | Read back-in-stock compliance settings (double opt-in). | get compliance settings, show compliance, view opt-in settings, is double opt-in enabled, compliance |
| `PATCH /back_in_stock/settings/compliance` | Update back-in-stock compliance settings (double opt-in). | edit compliance settings, change compliance settings, require double opt-in, enable double opt-in, turn on double opt-in, require opt-in confirmation, gdpr opt-in, disable double opt-in, turn off double opt-in, remove opt-in confirmation |
| `GET /back_in_stock/settings/delivery` | Read back-in-stock delivery settings (batching, stock threshold, locations, any-variant, password-protected sending, alerts on publish). any_variant.products names each of any_variant.shopify_product_ids by its Shopify title (products Shopify no longer has are left out). any_variant only decides which restocks alert a signup (any variant of those products, not just the one signed up for); it never limits where the Notify me button shows, and does nothing while any_variant.enabled is false. | get delivery settings, show delivery settings, view batching, view stock threshold, view location filter, delivery |
| `PATCH /back_in_stock/settings/delivery` | Update back-in-stock delivery settings (batching, stock threshold, locations, any-variant, password-protected sending, alerts on publish). Market setup and market-based alerts are PATCH /account/markets. | edit delivery settings, change delivery settings, batch notifications, enable batching, turn on batching, disable batching, turn off batching, send all at once, set batch size, set batching multiplier, set batching mode, set wait between batches, set stock threshold, set minimum stock to notify, only notify when 5 in stock, require minimum quantity before notifying, filter by location, enable location filter, disable location filter, set notification locations, only count inventory at locations, notify for any variant, enable any variant notifications, disable any variant notifications, notify when any variant restocks, send alerts while store is password protected, hold alerts while store is password protected, alert when a product is published, notify customers when a product is published |
| `GET /back_in_stock/settings/tagging` | Read back-in-stock order tagging settings. | get tagging settings, show order tagging, view order tag, what tag is applied to recovered orders, tagging |
| `PATCH /back_in_stock/settings/tagging` | Update back-in-stock order tagging settings. | edit tagging settings, change tagging settings, tag recovered orders, enable order tagging, turn on order tagging, disable order tagging, turn off order tagging, set back in stock order tag, change order tag, rename order tag |
| `GET /back_in_stock/settings/widget` | Read the storefront back-in-stock signup widget configuration: the notify-me button, where it appears, and the signup form's copy, styling and inputs. ?locale= picks the language of the copy (omit it for the shop default). | get widget, show signup widget, view notify me button, notify me button settings, signup form settings, widget |
| `PATCH /back_in_stock/settings/widget` | Update the storefront back-in-stock signup widget: the notify-me button (text, colors, corner radius, font, position), where the button appears (product, collection, home, search, preorder pages, and whether the whole widget is enabled), and the signup form's copy, success/error messages, colors, which inputs are collected and the double opt-in email text. button.position is "auto" (in-flow, directly below the sold-out add-to-cart button), "float-right" or "float-left" (a floating tab pinned to that edge of the page) or "specific" (after the element placement.selectors.product finds). placement.selectors holds the CSS selectors that place the button on product, collection, home and search pages; placement.hide_by_tag limits the widget by product tag; form.inline shows the form on the page instead of a popup; custom.css runs on every storefront page. form.fields.sms_first is a boolean: true shows the SMS field before email. form.fields.sms_default_country is a lowercase ISO 3166-1 alpha-2 code (e.g. "us", "gb", "ca", "au"). form.fields.sms_allowed_countries takes { add: [...], remove: [...] } of those same codes and edits the stored list in place — it never replaces it, so one country can be added or dropped without resending the rest; an empty allowed list means every country is allowed. Colors must be hex (#RRGGBB); radii are integers in pixels. Pass an optional top-level `locale` (e.g. "fr") to write the text fields for that language only. | edit signup widget, change notify me button, move the notify me button, put the notify me button below the sold out button, change button text, rename the notify me button, change button color, change button colour, round the button corners, change the widget font, show the notify me button on collection pages, show button on search results, hide the notify me button, turn off the signup widget, turn on the signup widget, change the signup form heading, change the signup form wording, change the signup success message, change the signup error message, change form colors, collect customer name, ask for quantity, ask for marketing consent, show the channel selector, restrict sms signups to certain countries, allow sms from another country, set the default phone country, change double opt in email, hide powered by, translate the signup form |
| `POST /back_in_stock/signups` | Add a customer to a variant's back-in-stock waitlist, as the dashboard's Add signup page does. | create signup, add to waitlist, add customer to the notify me list, register a restock alert, sign someone up for back in stock, add signup |
| `GET /back_in_stock/signups` | List back-in-stock signups (the waitlist), newest first, with the dashboard's waitlist filters. | list signups, waitlist, show the waitlist, notify me list, who's waiting, back in stock signups, list waitlist entries, restock signups, customers waiting for restock |
| `DELETE /back_in_stock/signups/:id` | Delete a back-in-stock signup (remove the customer from the waitlist), as the Delete on a dashboard signup row does. | delete signup, remove from waitlist, remove waitlist entry, cancel restock alert, take customer off the notify me list, unsubscribe customer from one product |
| `GET /back_in_stock/signups/:id` | Read one back-in-stock signup's full representation. | show signup, get signup, look up waitlist entry, view restock signup, signup details |
| `GET /back_in_stock/signups/:id/history` | List every notification sent for one back-in-stock signup, oldest first, with each channel's delivery events (sent, delivered, opened, clicked, bounced). | signup history, notification history, what was sent to this customer, did this customer get the restock email |
| `POST /back_in_stock/signups/:id/notify` | Send the back-in-stock notification for one signup now, regardless of stock state, and report what happened. | notify signup, send the restock email, notify this customer, send back in stock notification, resend restock notification |
| `POST /back_in_stock/signups/bulk_delete` | Delete up to 100 back-in-stock signups in one request, as the waitlist table's bulk Delete does. | bulk delete signups, clear the waitlist, delete waitlist entries, remove signups in bulk, purge pending restock signups |
| `GET /back_in_stock/signups/notification_status` | Notification/waitlist status for one product variant: pending signups (count_by as on the dashboard), total alerts sent, the 5 most recent send batches (each with what triggered it), and the shop's delivery settings -- the usual reason a restock produced no send yet. | notification status, restock alert status, has this been notified, waitlist status for a variant |
| `POST /back_in_stock/signups/notify` | Send back-in-stock notifications to every signup matching the waitlist filters, or only the first N, as the dashboard's Send notifications and Re-send all buttons do. | notify the waitlist, notify everyone waiting, send notifications, bulk send, send restock emails to the whole waitlist, resend to everyone notified, send to the waitlist |
| `POST /back_in_stock/signups/notify_variants` | Send back-in-stock notifications to everyone waiting on up to 10 variants, as the products table's Send notifications bulk action does. | notify these variants, send notifications for these variants, bulk send for variants, notify waitlists for several products, send restock alerts for selected variants |
| `POST /back_in_stock/signups/resend_optin` | Re-send the double opt-in (GDPR consent) confirmation email to every unconfirmed signup waiting on a variant or product, as the dashboard's Re-send confirmation does. It cannot target one customer or signup: never offer a resend to a single contact. | resend confirmation, resend opt-in email, resend gdpr consent email, remind customers to confirm their signup, resend double opt-in |
| `POST /back_in_stock/signups/transfer` | Move a variant's or a product's current waitlist (pending signups) to another variant, as the dashboard's Transfer signups does. | transfer signups, move the waitlist, move signups to another variant, merge waitlists, shift restock signups to a new variant, move requests |
| `GET /back_in_stock/templates` | List every back-in-stock notification's email and SMS copy, in send order: signup_thank_you, restock_alert, reminder. ?locale= picks the language (omit it for the shop default). | list back in stock templates, show all restock emails, back in stock notification copy |
| `GET /back_in_stock/templates/:key` | Read one back-in-stock notification's email and SMS copy. key is "signup_thank_you" (sent right after a customer signs up), "restock_alert" (sent when the product restocks) or "reminder" (the follow-up). ?locale= picks the language of the copy (omit it for the shop default); the response names it in `locale`. Whether it sends, and when, is GET /back_in_stock/notification_settings. | get back in stock template, show restock email, back in stock email copy, restock reminder template, localized back in stock template, signup thank you email, thank you for signing up template |
| `PATCH /back_in_stock/templates/:key` | Update one back-in-stock notification's email and SMS copy. key is "signup_thank_you", "restock_alert" or "reminder". The body is the GET shape: email{subject, preheader, heading, body, footer, button{...}, colors{...}, radius, css, html{enabled, template}, reviews{...}, social{...}, unsubscribe_text, klaviyo_flow_name} and sms{body, link_destination, klaviyo_flow_name}. An optional body `locale` ("fr", "pt-BR") writes the copy in that language only; omit it for the shop default. Colours, switches and other untranslated fields ignore it. Turning a notification on or off, and its timing, is PATCH /back_in_stock/notification_settings/:key. | edit back in stock template, change restock email, change restock sms, update back in stock reminder copy, localize back in stock template, add social links to email, social media icons in restock email, edit thank you for signing up email, disable custom html template, use standard email template, turn off html email template |
| `POST /back_in_stock/templates/:key/send_test` | Send a back-in-stock notification template to one email address as a test, rendered against a sample alert in the body `locale` (omit it for the shop default language). Matches the template page's Send test email button. | send test email, send a test back in stock email, preview the restock email in my inbox, test the signup thank you email |
| `GET /back_in_stock/templates/:key/translations` | Read every translation of one back-in-stock notification's copy: the translatable field paths (as GET /back_in_stock/templates/:key names them), each one's default-language text, and the text per locale. key is "signup_thank_you", "restock_alert" or "reminder". | back in stock template translations, restock email translations, restock sms translations |
| `POST /back_in_stock/templates/:key/verify_flow` | Check that the Klaviyo or Postscript flow for one back-in-stock notification is set up, the same as the template page's Verify flow button. channel is "email" (Klaviyo email) or "sms" (Klaviyo SMS or Postscript, whichever is the SMS provider). Klaviyo is checked for a flow with the template's klaviyo_flow_name / klaviyo_sms_flow_name. Postscript has no flows API, so for Postscript this records your confirmation that the flow exists. | verify klaviyo flow, check my klaviyo flow, verify postscript flow, confirm postscript flow setup, is my klaviyo flow set up |
| `POST /back_in_stock/widget_templates` | Create a per-product back-in-stock widget template: a button and form design that products can use instead of the shop-wide widget. | create widget template, add a custom widget for some products, new product widget design |
| `GET /back_in_stock/widget_templates` | List the shop's per-product back-in-stock widget templates (button and form designs assigned to products), oldest first. | list widget templates, show product widget designs, which products use a custom widget |
| `DELETE /back_in_stock/widget_templates/:id` | Delete a per-product back-in-stock widget template. Its products fall back to the shop-wide widget. Default templates cannot be deleted. | delete widget template, remove a product widget design |
| `PATCH /back_in_stock/widget_templates/:id` | Update a per-product back-in-stock widget template. Partial: fields left out are unchanged. | edit widget template, change a product widget design, rename widget template |
| `GET /customers/status` | One customer's preorder and back-in-stock status by exact email — built for helpdesk sidebar widgets. | customer status, gorgias sidebar, customer preorder status, customer back in stock status |
| `GET /preorders/notification_settings` | List the preorder notifications' switches. Only the confirmation has any: whether its email and SMS send, and whether customers may cancel from it. shipping_update and payment_failed always send once their trigger happens. sending_paused, present only when STOQ blocks a channel for the shop, says those notifications will not go out on it. | preorder notification channels, is the preorder confirmation email on, preorder notification settings |
| `GET /preorders/notification_settings/confirmation` | Read whether the preorder confirmation email and SMS send, and whether customers may cancel their preorder from the confirmation. | show preorder confirmation switches |
| `PATCH /preorders/notification_settings/confirmation` | Switch the preorder confirmation email and SMS on or off, and whether customers may cancel their preorder from the email. | turn off the preorder confirmation email, edit preorder notifications, enable preorder email, disable preorder sms |
| `GET /preorders/offer_lookup` | Resolve one preorder offer from an exact id or a fuzzy name match. Returns the full offer (same shape as GET /preorders/offers/:id) on a unique match. If `name` matches more than one offer, returns {ambiguous: true, candidates: [...]} instead of guessing -- re-call with the chosen id. Omit both id and name for the most recently created offer. | find offer, resolve offer, look up offer by name, which offer, the offer |
| `POST /preorders/offers` | Create a new preorder offer. | new offer, make a preorder, create preorder offer |
| `GET /preorders/offers` | List preorder offers in this shop, paginated. search matches offer name, internal name, or an attached product's title. status filters by current_status (live, scheduled, off, or deleted for deleted offers, which all leaves out). shopify_market_ids (Market GIDs) narrows to offers restricted to those Shopify markets. sort orders by created date, name, or revenue. | list offers, show all offers, preorder offers, all preorders |
| `GET /preorders/offers/:id` | Read a preorder offer's full representation. | show offer, get preorder offer, look up offer, view offer |
| `PATCH /preorders/offers/:id` | Update the offer's names: name (customer-facing) and internal_name (staff-only label). | edit offer, modify offer, change offer settings, rename offer, change offer name, rename preorder, change internal name, relabel offer |
| `GET /preorders/offers/:id/advanced` | Read the advanced settings of a preorder offer: the purchase option (checkout_method) and the cart attributes. | get advanced, show advanced settings, view advanced settings, view line item properties, view advanced |
| `PATCH /preorders/offers/:id/advanced` | Update any subset of the advanced settings on a preorder offer: the purchase option and the cart attributes. | edit advanced, change advanced settings, modify advanced, enable line item property, include in line item properties, add cart property, show on cart line, disable line item property, exclude from line item properties, remove cart property, hide from cart line, clear button text override, remove button text override, reset button text for state, use default button text, attach to shopify selling plan, use shopify selling plans, resume shopify sync, reattach to shopify, detach from shopify selling plan, stop using shopify selling plans, manage selling plan internally, bypass shopify selling plan, set custom line item property, set custom cart property, set custom cart text, add custom cart text |
| `GET /preorders/offers/:id/batches` | Read the batch settings of a preorder offer: release strategy, advance schedule, labels, storefront widget and the kept batches in order. | get batches, show batches, view batches, batch settings, list batches |
| `PATCH /preorders/offers/:id/batches` | Update any subset of the batch settings on a preorder offer, including the batches themselves. | edit batches, change batch settings, modify batches, enable batches, turn on batches, sell in batches, release in waves, disable batches, turn off batches, stop selling in batches, add a batch, remove a batch, reorder batches, set batch limits, set batch ship dates, advance batches automatically, auto advance batches, advance batches manually, batch widget style, change batch widget, batch progress display |
| `GET /preorders/offers/:id/countdown` | Read the countdown timer settings of a preorder offer. | get countdown, show timer, view countdown timer, view timer settings, countdown settings |
| `PATCH /preorders/offers/:id/countdown` | Update any subset of the countdown timer settings on a preorder offer. | edit countdown, change timer, modify countdown settings, enable countdown, show timer, turn on countdown, enable countdown timer, disable countdown, hide timer, turn off countdown, disable countdown timer, set countdown text, set timer text, change countdown label, set timer label, set custom end date, set timer end date, change timer deadline, set ends text, set timer end text, set 'ends in' text, set countdown mode, change timer mode, use schedule for timer, use custom date for timer, set starts text, set timer pre-launch text, set 'starts in' text, set timer style, change timer style, set countdown style, change timer colors, countdown labels, timer labels, rename days label, change hours label, countdown unit names |
| `POST /preorders/offers/:id/disable` | Turn a preorder offer off. A scheduled or dated offer has its schedule cleared, as the dashboard does. Optionally flip attached variants' inventory policy back to DENY. | pause, turn off, deactivate, stop offer, end preorder, disable and stop overselling, close out preorder |
| `POST /preorders/offers/:id/discard` | Discard (soft-delete) a preorder offer. Not permanent: it can be restored later, and comes back off. | delete, remove, archive, trash, soft delete |
| `POST /preorders/offers/:id/duplicate` | Duplicate a preorder offer, as the dashboard's Duplicate does. Returns the new offer. | copy offer, clone offer, duplicate preorder, copy preorder, make a copy of offer |
| `POST /preorders/offers/:id/enable` | Enable a preorder offer. On a scheduled offer this starts it now (the start date is cleared; an end date is kept), as the dashboard does. Optionally flip attached variants' inventory policy to CONTINUE. | turn on, activate, launch, go live, start offer |
| `GET /preorders/offers/:id/integrations` | Read integration settings for a preorder offer (POS, B2B). | get integrations, show integrations, view pos settings, view b2b settings, integration settings |
| `PATCH /preorders/offers/:id/integrations` | Update any subset of the POS and B2B settings on a preorder offer. | edit integrations, change integration settings, modify integrations, enable pos, turn on pos, allow in pos, enable point of sale, disable pos, turn off pos, block from pos, disable point of sale, enable pos skip inventory check, skip inventory check on pos, bypass inventory at pos, allow pos sale without inventory, skip pos inventory check, disable pos skip inventory check, enforce inventory check at pos, stop bypassing inventory at pos, enable b2b, turn on b2b, allow b2b, enable wholesale, disable b2b, turn off b2b, block b2b, disable wholesale, b2b preorders, wholesale preorders, sell on pos, pos preorders |
| `GET /preorders/offers/:id/inventory` | Read the inventory configuration for a preorder offer. | get inventory settings, show inventory, view inventory policy, view reservation timing, view stock handling |
| `PATCH /preorders/offers/:id/inventory` | Update any subset of the inventory settings on a preorder offer. | edit inventory, change inventory settings, modify inventory, enable continue selling for the whole offer, allow overselling, enable oversell, auto continue selling, auto-apply continue selling on attach, disable continue selling, stop auto continue selling, disable oversell, prevent overselling on attach, enable auto apply continue selling, auto continue selling on attach, auto-flip new variants to continue, apply oversell to new variants, disable auto apply continue selling, stop auto continue selling on attach, don't auto-flip new variants, no oversell on new variants, set inventory provider, switch inventory provider, use shopify inventory, use stoq inventory, set reservation timing, change inventory reservation, set when inventory is held, reserve on sale, reserve on fulfillment, always show preorder, preorder regardless of stock |
| `GET /preorders/offers/:id/limits` | Read the limits & terms of a preorder offer: quantity limits and their display, order tags, the terms checkbox and mixed-cart rules. | get limits, show limits, view quantity limits, view order min max, limits, get checkout settings, show checkout, view terms, view mixed cart, view order tags, checkout |
| `PATCH /preorders/offers/:id/limits` | Update any subset of the limits & terms on a preorder offer: quantity limits and their display, order tags, the terms checkbox and mixed-cart rules. | edit checkout, change checkout settings, modify checkout, enable terms, require acknowledgement, show terms checkbox, turn on terms, require terms, disable terms, hide terms checkbox, remove terms requirement, turn off terms, stop requiring terms, enable disable until acknowledged, require acknowledgement before buying, lock button until terms accepted, grey out button until terms checked, disable button until terms, disable disable until acknowledged, don't lock button on terms, allow buying without acknowledging first, keep button enabled before terms, include terms in line item properties, record terms acceptance on order, add acknowledgement to line items, show terms accepted on order, record terms acceptance, allow mixed cart, permit mixed cart, enable mixed cart, let preorders mix with regular items, block mixed cart, disable mixed cart, prevent mixed cart, force separate checkout, block mixed carts, dont allow mixed carts, add order tag, add tag to preorder orders, append order tag, remove order tag, delete order tag, drop order tag, mixed cart orders, set mixed cart error message, change mixed cart message, set mixed cart warning, customize mixed cart error, set order tags, replace order tags, change order tags, set tags on preorder orders, accept terms, terms checkbox, set terms text, change terms text, update terms, change acknowledgement text, set fine print, edit limits, change limits, modify quantity limits, enable show remaining, show remaining units, show stock left, display quantity remaining, disable show remaining, hide remaining units, hide stock left, stop showing quantity, hide progress bar, show icons, enable icons, hide icons, disable icons, icons for details, set maximum per order, set max quantity, maximum order quantity, set order limit, set minimum per order, set min quantity, minimum order quantity, set order minimum, progress bar, show counter, stock counter, show limit as counter, crowdfunding bar, units left bar, quantity limit text, limit text, units left text, change limit message |
| `GET /preorders/offers/:id/markets` | Read market scoping for a preorder offer. | get markets, show market scoping, view markets, what markets, which countries, market settings |
| `PATCH /preorders/offers/:id/markets` | Update any subset of the market settings on a preorder offer. | edit markets, change market scoping, modify markets, enable market scoping, turn on market scoping, scope to markets, enable markets, disable market scoping, turn off market scoping, remove market restrictions, global preorder, enable all markets, apply to all markets, all countries, available everywhere, add market, include market, add country, extend to market, remove market, exclude market, drop market, remove country, set markets, change markets, restrict to markets, set countries, set regions |
| `GET /preorders/offers/:id/payments` | Read the payment configuration for a preorder offer. | get payment settings, show payments, view billing, view deposit, view discount, payment options |
| `PATCH /preorders/offers/:id/payments` | Update a deep partial of the canonical payment settings. Full and partial are stable kind selectors. | edit payments, change payment settings, modify billing, update remaining balance settings, change discount, set discount, apply discount, set percentage off, set amount off, clear discount, remove discount, no discount, stop discount, remove preorder discount, enable auto collect, enable auto charge, auto-charge balance, automatically charge balance, turn on auto collect, disable auto collect, disable auto charge, stop auto charge, turn off auto collect, manual balance collection, disable auto collect on fulfillment, don't charge on fulfillment, turn off charge at ship time, stop collecting on ship, enable auto collect on fulfillment, charge on fulfillment, auto charge at ship time, collect balance on ship, show partial payment option first, preselect deposit option, default to full payment, disable payment option, enable payment option, add full payment option, add partial payment option, set payment mode, change payment options, remove full payment option, stop offering full payment, partial payment only, deposit only, remove partial payment option, stop offering deposit, full payment only, offer both payment options, let customers choose how to pay, offer both full and partial payment, set balance due days, charge balance after n days, collect balance days after checkout, balance due in days, charge remaining balance later, set days after checkout, collect balance a week after checkout, show payment widget, show payment and savings, enable billing widget, show savings breakdown, show payment schedule to customers, show payment breakdown, turn on billing widget, hide payment widget, hide payment and savings, disable billing widget, hide savings breakdown, hide payment breakdown, turn off billing widget, set deposit amount, set a fixed deposit, charge a fixed amount upfront, set upfront payment amount, change down payment amount, change deposit amount, change down payment, set deposit percent, set deposit percentage, set upfront payment percent, set discount text, change discount blurb, set discount message, change discount copy, set savings text, set option copy, change billing title, set payment option text, set partial option copy, set deposit option text, set full option copy, set payment date, balance due date, charge on a specific date, final payment date, collect balance on date, show discounted price, display sale price, show discount price, hide discounted price, set billing widget title, set billing widget description, change payment breakdown text, edit billing widget copy |
| `GET /preorders/offers/:id/products` | Read the products configuration for a preorder offer: the selection rule, its collection or tags, exclusions, the eligible inventory policy, the attached variant count and the collection's name. | get products, show linked products, view variants on offer, view product source, what's on this offer |
| `PATCH /preorders/offers/:id/products` | Update any subset of the products configuration on a preorder offer: the selection rule, its collection or tags, the exclusions and which inventory policy newly attached variants get. | edit products, change product selection, change variant source, set products, modify products on offer, change collection, swap collection, use a different collection, update the collection on the offer, set excluded variants, exclude variants list, block variants from offer, set exclusion tag, exclude by tag, set exclude tag, set source to all, apply to all products, auto-source, every variant, shop-wide preorder, set source to collection, use a collection, link to collection, set products from collection, drive variants from collection, set source to custom, use custom variants, custom product list, switch to custom, set source to tags, use product tags, link to tags, set products from tags, drive variants from tags, change product tags, set offer tags, edit tags on offer |
| `POST /preorders/offers/:id/products/add_variants` | Attach products and variants to a preorder offer, or re-run a collection, tag or all-products selection. | add variants, attach variants, add products to offer, link variants, include variants, add collection to offer, add all products |
| `POST /preorders/offers/:id/products/advance_batches` | Move variants on a batch preorder offer to their next batch, as the Products table's 'Start next batch' does. | advance batch, start next batch, next wave, advance variants to next batch |
| `POST /preorders/offers/:id/products/bulk_toggle_inventory_policy` | Flip the Shopify inventory policy on variants attached to a preorder offer (CONTINUE or DENY). Pass the explicit shopify_variant_ids for a partial change; omitting shopify_variant_ids applies the policy to EVERY attached variant, so only omit it when the merchant asked for all of them. | flip inventory policy, toggle continue selling on variants, set inventory policy for variants, enable oversell on these variants, disable oversell on these variants |
| `POST /preorders/offers/:id/products/remove_variants` | Remove variants from a custom-selection preorder offer. | remove variants, detach variants, remove products from offer, unlink variants, exclude variants |
| `GET /preorders/offers/:id/products/variants` | List the variants on a preorder offer, as the offer's Products table shows them, paginated. | list variants on offer, variants attached to offer, show offer variants, attached variants, offer variant list, list products on offer, search offer products |
| `GET /preorders/offers/:id/products/variants/:shopify_variant_id` | Read one variant on a preorder offer: its row in the offer's Products table. | show variant settings on offer, view per-variant overrides, get variant on offer, variant settings |
| `PATCH /preorders/offers/:id/products/variants/:shopify_variant_id` | Set one variant's Limit, Shipping and per-batch limits on a preorder offer, as the Products table edits them. | override variant settings, set shipping text for variant, set max count for variant, per-variant overrides |
| `POST /preorders/offers/:id/products/variants/:shopify_variant_id/reset_count` | Reset one variant's preorder count to zero on this offer, as the Products table's Reset does. | reset variant count, reset variant limit, reset preorder count, clear sold count |
| `POST /preorders/offers/:id/products/variants/:shopify_variant_id/toggle_inventory_policy` | Set whether Shopify continues selling one attached preorder variant when it is out of stock (CONTINUE or DENY). | toggle continue selling on variant, enable oversell on variant, disable oversell on variant, set variant inventory policy |
| `POST /preorders/offers/:id/products/variants/bulk_update_settings` | Set the same shipping text, max preorder count or per-batch limits on many variants of a preorder offer. |  |
| `POST /preorders/offers/:id/restore` | Restore a discarded preorder offer. | undelete, undiscard, undo delete, bring back |
| `POST /preorders/offers/:id/schedule` | Schedule a preorder offer: start only (off until then), end only (on until then) or both (on between them). | set schedule, schedule launch, set start date, set end date, schedule offer |
| `GET /preorders/offers/:id/shipping` | Read the shipping settings of a preorder offer: the shipping timeline text, delivery timing, fulfillment handling (hold, split or separate orders) and hold release. | get shipping, show shipping, view delivery, view fulfillment, view shipping text, shipping settings |
| `PATCH /preorders/offers/:id/shipping` | Update any subset of the shipping settings on a preorder offer: the shipping timeline text, delivery timing, fulfillment handling (hold, split or separate orders) and hold release. | edit shipping, change shipping settings, change delivery, change fulfillment, modify shipping, enable fulfillment hold, hold preorder fulfillments, turn on fulfillment hold, prevent shipping until released, hold all fulfillments, hold orders, hold fulfillments, disable fulfillment hold, release fulfillments, stop holding fulfillments, turn off fulfillment hold, let preorder ship immediately, disable split, disable split orders, disable split fulfillments, turn off order splitting, stop separating preorders, release fulfillment hold, enable split, turn on order splitting, enable split orders, separate preorder from regular, enable split fulfillments, enable split hold fulfillments, hold split order fulfillments, hold fulfillments on split order, don't ship split order immediately, disable split hold fulfillments, release split order fulfillments, ship split order immediately, stop holding split order, enable split sequential number, sequential split order numbers, number split orders sequentially, sequential order name for split, disable split sequential number, no sequential split order numbers, stop numbering split orders sequentially, auto release holds, automatically release holds, release holds on a date, stop releasing holds automatically, release holds after payment, set delivery asap, ship asap, set delivery to asap, ship as soon as possible, set delivery date, ship on date, set ship date, set exact delivery date, set delivery window, ship within days, set delivery in days, set ship window, fulfillment hold reason, set shipping text, change shipping text, update shipping message, set delivery text, change PDP shipping line, set split order suffix, change split suffix, set split order name suffix, rename split order suffix, change split order label text, set split order tag, change split tag, set split order label, set split transaction gateway, set split payment gateway, change split order gateway |
| `GET /preorders/offers/:id/shipping/schedulable_orders` | How many of a preorder offer's latest 100 orders have fulfillments that reschedule_existing_orders on PATCH /preorders/offers/:id/shipping would move: the unfulfilled, uncancelled ones. checked_count is how many orders were looked at. | orders to reschedule, how many orders will be rescheduled, schedulable orders count |
| `GET /preorders/offers/:id/translations` | Read every translation override on a preorder offer, plus the full enumeration of translatable field paths, each field's default-locale source text, and every locale the shop has actually published (not just ones with an override already). | get translations, show translations, view translations, list translations, view localized text, i18n, localization |
| `POST /preorders/offers/:id/translations/clear_locale` | Remove all translation overrides for one locale on a preorder offer. | clear locale, remove locale, wipe locale, drop translations for locale, remove all translations for a language |
| `POST /preorders/offers/:id/translations/reset_to_defaults` | Reset a preorder offer's storefront text for one language to STOQ's default translations, as the offer translator's "Load default translations" does. | reset translations, load default translations, reset all translations, restore default text, reset offer copy to defaults |
| `POST /preorders/offers/:id/translations/set` | Set a single translation override (one locale, one field) on a preorder offer. | set translation, add translation, translate field, localize a field, set localized text |
| `POST /preorders/offers/:id/translations/set_many` | Set many translation overrides for one locale on a preorder offer, atomically. | set many translations, translate offer, bulk translate, localize offer, translate to french, add translations |
| `POST /preorders/offers/:id/translations/unset` | Remove a translation override (one locale, one field) from a preorder offer. | unset translation, remove translation, clear translation, delete localized text, remove localized override |
| `POST /preorders/offers/:id/unschedule` | Remove the schedule from a preorder offer. A live offer stays on; any other stays off. | clear schedule, remove schedule, no schedule, unschedule offer |
| `GET /preorders/offers/:id/widget` | Read the widget configuration for a preorder offer. | get widget, show widget, view button settings, view badge settings, view disclaimer settings, preorder ui |
| `PATCH /preorders/offers/:id/widget` | Update any subset of the widget configuration on a preorder offer. | edit widget, change widget settings, modify widget, update preorder ui, enable badge, show badge, turn on badge, make badge visible, disable badge, hide badge, turn off badge, remove badge, enable disclaimer, show disclaimer, turn on disclaimer, show fine print, show shipping notice, disable disclaimer, hide disclaimer, turn off disclaimer, hide fine print, remove shipping notice, remove disclaimer, enable custom button colors, use custom button colors, turn on button colors, apply custom colors, disable custom button colors, use theme button colors, turn off button colors, revert to theme colors, change badge colors, set badge color, customize badge colors, change badge background, change badge text, set badge label, rename badge, change preorder badge text, update badge text, change button colors, set button color, customize button colors, change button text, rename button, set button label, change preorder button label, update button text, change disclaimer colors, set disclaimer style, style the disclaimer, set disclaimer border radius, change disclaimer background, change disclaimer text, set disclaimer text, edit disclaimer, change disclaimer message, set shipping disclaimer |
| `POST /preorders/offers/bulk_disable` | Turn many preorder offers off at once, as the Offers list's bulk Disable does. Optionally flip the attached variants' inventory policy back to DENY. | bulk disable offers, disable offers, turn off offers, pause offers, disable several offers, turn these offers off, disable all offers |
| `POST /preorders/offers/bulk_enable` | Turn many preorder offers on at once, as the Offers list's bulk Enable does. Optionally flip the attached variants' inventory policy to CONTINUE. | bulk enable offers, enable offers, turn on offers, enable several offers, activate offers, turn these offers on, enable all offers |
| `GET /preorders/orders` | List preorder orders in this shop, paginated. search matches order number/name, customer name, email, a Shopify order id (10+ digits), an order gid (gid://shopify/Order/<id>), or a Shopify admin order URL. | list preorder orders, show all preorder orders, preorder orders, list orders |
| `GET /preorders/orders/:id` | Read an order's full representation: payments, fulfillment, notifications, tags, attributed offers and line items. | show preorder order, get order, look up order, view preorder order, order tags, order labels, what tags does the order have |
| `POST /preorders/orders/:id/collect_payment` | Collect the order's outstanding balance now by charging the customer's saved payment method. Pass `line_item_ids` to collect the full price of those products, or `amount` to collect part of the balance (both are Shopify Plus only). | collect payment, capture payment, charge the balance now, take the remaining payment, collect outstanding balance, collect partial payment, charge part of the balance, collect payment for these products, charge for one item |
| `GET /preorders/orders/:id/fulfillment` | Read an order's fulfillment: its Shopify fulfillment status and that of its preorder items, the hold note, split orders and each attributed offer's fulfillment handling. | order fulfillment, shipping, hold state, fulfillment hold, is the order on hold, split orders |
| `POST /preorders/orders/:id/hold_fulfillments` | Put all of the order's fulfillment orders on hold, with an optional reason. | hold fulfillments, hold order, put order on hold, stop order from shipping, hold all fulfillments |
| `GET /preorders/orders/:id/notifications` | Read which customer messages were sent for an order: confirmation email and SMS, shipping update and payment link, with counts and when each was last sent. | order notifications, was the confirmation sent, did the customer get an email, was the sms sent |
| `POST /preorders/orders/:id/open_scheduled_fulfillments` | Open the order's scheduled fulfillment orders for immediate fulfillment. | open scheduled fulfillments, open order |
| `GET /preorders/orders/:id/payments` | Read an order's payments: amount paid, balance outstanding, due date and payment attempts. | order payments, deposit, balance, remaining balance, was the balance collected, payment attempts, why did the payment fail |
| `POST /preorders/orders/:id/release` | Release the order's fulfillment holds without applying offer-configured order tags. | release order, release fulfillments, let it ship, unhold order, open fulfillments |
| `POST /preorders/orders/:id/reschedule_fulfillment` | Change the fulfillment date for the order's scheduled fulfillment orders. | reschedule fulfillment, change fulfillment date |
| `POST /preorders/orders/:id/reschedule_payment` | Change the due date for the order's remaining-balance payment schedule. | reschedule payment, change payment due date |
| `POST /preorders/orders/:id/send_confirmation` | Send the preorder confirmation email to the customer again. | send confirmation, resend confirmation email, resend order confirmation, email the confirmation again |
| `POST /preorders/orders/:id/send_shipping_update` | Email the customer a shipping update for the preorder. | send shipping update, email shipping update, notify customer about shipping, send delivery update |
| `POST /preorders/orders/:id/send_sms_confirmation` | Send the preorder confirmation SMS to the customer again. | send sms confirmation, resend confirmation sms, text the confirmation again, resend order sms |
| `POST /preorders/orders/:id/split_fulfillment_orders` | Split the order's preorder items into their own fulfillment orders. | split fulfillment orders, split fulfillments, split order fulfillments, separate preorder items for fulfillment |
| `GET /preorders/orders/:id/timeline` | Read an order's timeline: every event STOQ recorded for it, newest first, as the dashboard order page shows it. | order timeline, order history, order activity log, what happened to this order, order events |
| `POST /preorders/orders/bulk_collect_payment` | Collect the outstanding balance of many preorder orders now (up to 1000 order_ids, or apply_to_all with the order list filters), charging each customer's saved payment method. | bulk collect payment, collect payment for many orders, charge balances in bulk, capture payments in bulk, collect all outstanding balances |
| `POST /preorders/orders/bulk_hold_fulfillments` | Put the fulfillment orders of many preorder orders on hold (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk hold fulfillments, hold many orders, bulk hold orders, hold these orders |
| `POST /preorders/orders/bulk_open_scheduled_fulfillments` | Open the scheduled fulfillment orders of many preorder orders (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk open scheduled fulfillments, open many orders, bulk open orders, open fulfillments in bulk |
| `POST /preorders/orders/bulk_release` | Release fulfillment holds on many preorder orders (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk release, release many orders, batch release, release these orders |
| `POST /preorders/orders/bulk_reschedule_fulfillment` | Change the fulfillment date of many preorder orders (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk reschedule fulfillment, change fulfillment date for many orders, reschedule many orders, move fulfillment dates in bulk |
| `POST /preorders/orders/bulk_reschedule_payment` | Change the remaining-balance due date of many preorder orders (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk reschedule payment, change payment due date for many orders, move payment dates in bulk, reschedule many payments |
| `POST /preorders/orders/bulk_send_confirmation` | Send the preorder confirmation email again to many customers (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk send confirmation, resend confirmations, send confirmation emails in bulk, email many customers their confirmation |
| `POST /preorders/orders/bulk_send_shipping_update` | Email a shipping update to many preorder customers (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk send shipping update, email shipping updates, send shipping updates in bulk, notify many customers about shipping |
| `POST /preorders/orders/bulk_split_fulfillment_orders` | Split the preorder items of many preorder orders into their own fulfillment orders (up to 1000 order_ids, or apply_to_all with the order list filters). | bulk split fulfillment orders, split many orders, bulk split fulfillments, split these orders |
| `GET /preorders/orders/jobs/:job_id` | Check the status of a bulk-order job, with each order's result. | check bulk order job, poll bulk order job, get order job status |
| `GET /preorders/product_variants/:shopify_variant_id` | Read one Shopify variant as the Preorders > Products tab lists it: the offers it is in, with its shipping text, limit and count on each. | show preorder context for variant, look up variant preorders, variant preorder state, get preorder variant, show variant in preorders, which offers is this variant in, what offers contain this variant |
| `POST /preorders/product_variants/:shopify_variant_id/detach_from_all_offers` | Remove a variant from every preorder offer it's attached to. Customer orders are unaffected. | remove variant from all preorders, detach from preorder, kick variant out of offers, remove from all offers |
| `POST /preorders/product_variants/:shopify_variant_id/recalculate_preorder_count` | Recompute preorder_count for a variant from active order line items, then push to Shopify. | recalculate preorder count from orders, fix preorder count, rebuild count, recompute preorder count, fix variant count drift |
| `POST /preorders/product_variants/:shopify_variant_id/reset_metafields` | Reset a variant's preorder counts (its preorder orders stop counting, the recounted count of its live offer is republished, and the count is cleared when it has none) and rebuild its shipping text and limit metafields from its live offers. Keeps the variant attached to its offers. | clear preorder metafields, wipe variant preorder data, reset variant metafields, clear variant metafields |
| `POST /preorders/product_variants/:shopify_variant_id/reset_preorder_count` | Hard-reset the variant's preorder count to zero on every offer, retiring the orders counted so far. | zero out preorder count, clear preorder count, reset count to zero |
| `POST /preorders/product_variants/:shopify_variant_id/sync_metafields` | Force-resync every preorder metafield for a variant from local DB state to Shopify. | force resync to shopify, push metafields to shopify, refresh shopify metafields, fix shopify metafield drift |
| `GET /preorders/product_variants/availability` | Resolve which preorder offer applies to Shopify variants for a buyer country, with its stock condition and schedule. Beta. | variant availability, is variant on preorder, preorder availability by country, resolve preorder for country |
| `POST /preorders/product_variants/bulk_recalculate_preorder_counts` | Recompute preorder_count for many variants in one job (max 5000). | recalculate counts for variants, bulk fix preorder counts, recalculate many variants, batch recompute counts |
| `POST /preorders/product_variants/bulk_reset_metafields` | Reset preorder metafields for many variants in one job (max 5000). | clear metafields for variants, bulk reset variant metafields, wipe metafields for many variants |
| `POST /preorders/product_variants/bulk_sync_metafields` | Force-resync preorder metafields for many variants in one job (max 5000). | force resync many variants, bulk refresh metafields, push many variants to shopify |
| `GET /preorders/product_variants/jobs/:job_id` | Check the status of a bulk variant-admin job. | check bulk variant job status, poll bulk variant job, get variant job status |
| `GET /preorders/products` | List the variants on the store-wide Preorders > Products tab, with the offers each is linked to, paginated. | preorder products, products tab, list preorder products, variants on preorder, which offer is this product in, products not in an offer, search preorder products |
| `PATCH /preorders/products` | Save rows of the store-wide Preorders > Products tab: link each variant to one offer or to none, and set its shipping text and quantity limit on the offers it is in. | link product to offer, move variant to offer, change offer linked, unlink product from offer, set shipping text for variant, set quantity limit for variant, save products tab |
| `POST /preorders/products/add_to_offer` | Add variants to one preorder offer as the store-wide Products tab's 'Add to offer' does. Like the tab, it runs no pre-flight check. | add to offer, add products to offer from products tab, assign offer to variants, bulk add to offer |
| `POST /preorders/products/bulk_toggle_inventory_policy` | Turn 'Continue selling when out of stock' on (CONTINUE) or off (DENY) for variants on the store-wide Preorders > Products tab, whatever offers they are in. | toggle continue selling, turn on continue selling, turn off continue selling, set inventory policy, allow overselling, stop overselling |
| `GET /preorders/products/inventory_policy_conflicts` | Name the enabled out-of-stock offers that still sell these variants, before turning 'Continue selling' off on them. | inventory policy conflicts, which offers need continue selling, linked offers warning, what breaks if I turn off continue selling |
| `POST /preorders/products/remove_from_offers` | Take variants out of every preorder offer they are in, as the store-wide Products tab's 'Remove from offer' does. | remove from offer, remove products from all offers, unlink variants from offers, take products off preorder, stop preorders on these products |
| `GET /preorders/products/tags` | List the shop's product tags, as the offer's tag picker suggests them. | product tags, list tags, shop tags, tag suggestions |
| `GET /preorders/products/tags/count` | Count the products that carry any of the given tags, as the offer's tag picker does while you type. | count products by tag, tag match count, how many products have this tag |
| `GET /preorders/reports` | List every available preorder report (name, description, aliases, url). | reports, list reports, available reports, what reports are there, report catalog |
| `GET /preorders/reports/by_date` | The Preorders Overview charts per day, week or month: preorder orders and their sales, and preorder units sold and their line revenue. | time series, daily breakdown, trend, over time, preorder trend, show trend |
| `GET /preorders/reports/engagement` | Preorder button engagement: impressions, add-to-carts, add-to-cart rate, orders and order rate, shop-wide and per variant — the merchant's Products > Engagement view. | preorder engagement, preorder funnel, add to cart rate, button engagement, preorder performance |
| `GET /preorders/reports/fulfillments` | What is still owed to preorder customers: units sold, cancelled, fulfilled and outstanding (waiting, on hold, scheduled) per variant or product, as the dashboard's fulfillment table. | fulfillment report, what do I still owe, outstanding preorders, unfulfilled preorder units, preorders left to ship |
| `GET /preorders/reports/products` | Preorder units, orders, line revenue and last order date per variant (or product), as the dashboard's products table. | per-product report, product performance, which products are preordering, report by product, per-variant report, report by variant, top preorder products |
| `GET /preorders/reports/summary` | The Preorders Overview tiles over a date window: orders, units sold, revenue (total sales), preorder line item revenue, average order value, unpaid and unfulfilled orders and unique customers. | summary, overview, how is preorder doing, preorder summary, dashboard stats, what's happening with preorders |
| `GET /preorders/settings/developer` | The preorder developer settings: dev mode, the custom CSS, and the theme CSS selectors that place the Preorder button and each preorder element on product pages and on the home, collection and search product lists. Shop-wide, not per offer. The selectors are used only while dev mode is on. Dev mode and CSS are shared with back-in-stock. | developer settings, dev mode, preorder selectors, placement selectors, insertion points |
| `PATCH /preorders/settings/developer` | Update the shop-wide preorder developer settings: dev mode, the custom CSS, and the theme selectors that place the Preorder button and each preorder element on product pages and on home, collection and search product cards. Selectors are used only while dev mode is on. | change preorder selectors, set preorder button selector, fix preorder button placement |
| `GET /preorders/settings/pages` | The Preorder pages settings (Preorders > Settings > Pages): whether the Preorder button shows on the home, collection and search pages, and whether collection pages show the preorder badge when any variant is a preorder. Shop-wide, not per offer. Product pages always show the button. The locations and markets these pages count stock at are GET /account/markets; the page's CSS selectors are GET /preorders/settings/developer. | preorder pages, preorder on collection page, preorder on home page, preorder on search page, preorder button on other pages, collection page badge |
| `PATCH /preorders/settings/pages` | Update the Preorder pages settings (Preorders > Settings > Pages): the Preorder button on the home, collection and search pages, and the collection-page badge rule. Shop-wide, not per offer. Locations and markets are PATCH /account/markets; CSS selectors are PATCH /preorders/settings/developer. | show preorder on collection page, hide preorder on collection page, show preorder on home page, show preorder on search page, turn off preorder on search page, show preorder badge if any variant is preorder |
| `GET /preorders/settings/reports` | The merchant's preorder report preferences (Settings > Reports): whether STOQ emails the merchant when it automatically collects the remaining balance of partially paid preorders. | preorder report settings |
| `PATCH /preorders/settings/reports` | Update the merchant's preorder report preferences (Settings > Reports): the email to the merchant when balances of partially paid preorders are collected automatically. | notify me when payments are collected, payment collection notice |
| `GET /preorders/settings/storefront_text` | The shop-wide preorder storefront text: the currency format, the button's out-of-stock and add-to-cart text, and the preorder modal's continue and cancel buttons and error heading. Shared by every preorder offer. `?locale=` reads one language (omitted: the shop's default language). | preorder currency format, preorder out of stock text, preorder add to cart text, preorder modal button text, preorder error heading, preorder storefront text |
| `PATCH /preorders/settings/storefront_text` | Update the shop-wide preorder storefront text: the currency format, the button's out-of-stock and add-to-cart text, and the preorder modal's continue and cancel buttons and error heading. Shared by every preorder offer, not per offer. | change preorder currency format, change preorder out of stock text, change preorder add to cart text, change preorder modal continue button, change preorder modal cancel button, change preorder error heading, translate preorder modal buttons |
| `GET /preorders/templates` | List every preorder notification's copy, in send order: confirmation (email and SMS), shipping_update (email) and payment_failed (email). ?locale= picks the language (omit it for the shop default). Whose account sends is GET /account/sending. | get preorder notification settings, show preorder notifications, preorder email settings, list preorder templates, preorder notification copy |
| `GET /preorders/templates/confirmation` | Read the preorder confirmation notification's email and SMS copy. ?locale= picks the language (omit it for the shop default); the response names it in `locale`. Whether it sends is GET /preorders/notification_settings/confirmation. | preorder confirmation email copy, preorder confirmation sms copy, get preorder template, show preorder email, localized preorder notification template |
| `PATCH /preorders/templates/confirmation` | Update the preorder confirmation notification's email and SMS copy. The body is the GET shape: email{subject, preheader, heading, body, footer, button{text, background_color, text_color, radius}, colors{background, section, text}, radius, css, reviews{enabled, count, min_rating, title}, social{...}, klaviyo_flow_name} and sms{body, klaviyo_flow_name}. An optional body `locale` writes the copy in that language only; omit it for the shop default. Turning the email or SMS on or off is PATCH /preorders/notification_settings/confirmation. | edit preorder template, change preorder email, update preorder confirmation, localize preorder template, change preorder sms |
| `POST /preorders/templates/confirmation/send_test` | Send the preorder confirmation email to one email address as a test, rendered in the body `locale` (omit it for the shop default language) against one of the shop's own preorder offer products. Matches the preorder template page's Send test email button. | send test preorder email, send a test preorder confirmation, preview the preorder email in my inbox |
| `GET /preorders/templates/payment_failed` | Read the preorder payment-failed notification's email copy (it has no SMS). ?locale= picks the language (omit it for the shop default). | payment failed email |
| `PATCH /preorders/templates/payment_failed` | Update the payment-failed email STOQ sends when the remaining balance of a partially paid preorder cannot be charged: its subject, heading, body, button text and optional Klaviyo flow. The body is the GET shape, email{...}; an optional body `locale` writes the copy in that language only (omit it for the shop default). | change payment collection email |
| `GET /preorders/templates/shipping_update` | Read the preorder shipping-update notification's email copy (it has no SMS). ?locale= picks the language (omit it for the shop default). | shipping update email copy |
| `PATCH /preorders/templates/shipping_update` | Update the shipping-update email STOQ sends when a preorder ships late or its date changes: its subject, heading, body and optional Klaviyo flow. The body is the GET shape, email{...}; an optional body `locale` writes the copy in that language only (omit it for the shop default). | change shipping update email |

## Errors

- `401` — missing or invalid `X-Auth-Token`
- `404` — the resource doesn't exist for this shop, or the action path is not registered
- `409` — state-machine transition is invalid; read the error message
- `422` — validation failed; the `errors` array contains human-readable messages; each `details` entry names the field (`path`) when there is one
- `429` — rate limited; check `Retry-After`

## Rate limits

Cost-weighted per-token. Read = 1 point, write = 2 points. Default 360 points per 60 seconds. Response headers: `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`.
