Home
Integrations

Automate with Shopify Flow

Use STOQ's Shopify Flow triggers and actions to automate your preorder and back-in-stock workflows.

STOQ integrates with Shopify Flow so you can build automated workflows around your preorder and back-in-stock activity. STOQ fires triggers when key events happen (a customer places a preorder, a payment fails, an offer turns on), and it exposes actions you invoke from a Flow workflow (release fulfillment holds, capture a pending payment, notify a waitlist, and more).

Use this integration when you want to: tag or notify customers automatically at preorder time, chain STOQ actions with other Shopify apps, or orchestrate multi-step fulfillment sequences without manual intervention.

Before you begin

RequirementDetails
Shopify Flow installedFlow is a free Shopify app available in the Shopify App Store. It must be installed on your store before you can build workflows.
STOQ app open in Shopify adminOpen it from Apps > STOQ in your Shopify admin.
Paid STOQ plan (recommended)Some Flow features need a paid plan. On a free plan you can still enable triggers, but an Upgrade prompt appears and full access is limited.

What customers will see

Some Flow actions notify the customer directly:

  • Collect pending payment: emails a payment confirmation unless you set Send notifications to no.
  • Send shipping update notification: emails the customer a shipping update, using your default STOQ notification text unless you override the subject, header, or body.
  • Notify customers in waitlist: sends back-in-stock notifications by email, SMS, or both to everyone waiting on the variant.

Other actions, such as tagging orders, holding or releasing fulfillments, splitting fulfillments, and changing offer membership, don't notify the customer.

Set it up

Enable Flow triggers in STOQ

1

Open the Shopify Flow integration in STOQ

  1. In the left menu bar of STOQ, click Preorders.
  2. Open the Settings tab.
  3. Open the Integrations sub-tab.
  4. Click the Shopify Flow card to expand it.
2

Turn on the Flow triggers master switch

On the Triggers tab, toggle Flow triggers on.

If your store is on a free STOQ plan, an Upgrade prompt appears below the toggle. You can still turn the toggle on; the prompt is a reminder to upgrade for full access.

3

Check the triggers you want to send

Each trigger is a separate checkbox. Enable only the events you intend to use in a Flow workflow: unnecessary triggers generate extra API calls with no benefit.

Trigger label in STOQWhen it firesKey payload fields
Customer signed upA customer registers for a back-in-stock alertCustomer name, email, phone, locale; product, variant name; Signed up at; Market
Customer notified for email back in stock alertSTOQ sends a back-in-stock email notificationCustomer name, email, phone, locale; product, variant name; Market; Checkout link, Product page link, Unsubscribe link; Notification type
Customer placed preorderA customer completes a preorder purchaseOrder Number, Order Name
Product variant restockedA tracked variant's inventory is replenishedProduct, Variant, Markets
Product added to offerA variant is added to a preorder offerProduct, Variant, Offer Name, Offer Order Tags
Product removed from offerA variant is removed from a preorder offerProduct, Variant, Offer Name, Offer Order Tags
Preorder offer enabledA preorder offer is activatedOffer Name, Offer Internal Name, Offer Order Tags
Preorder offer disabledA preorder offer is deactivatedOffer Name, Offer Internal Name, Offer Order Tags
Payment collection failedA payment capture attempt on a preorder failsOrder Number, Order Name, Error Message
4

Save your settings

Click Save at the bottom of the page. STOQ registers each enabled trigger with Shopify and starts firing them as events occur.

Available Flow actions

STOQ's Flow actions are available in Shopify Flow without any additional setup in STOQ. You select them when building a workflow inside the Shopify Flow app. Switch to the Actions tab in the STOQ Shopify Flow card to see a quick reference of all available actions grouped by category.

Preorders, Payments

ActionWhat it doesKey inputs
Collect pending paymentCaptures the remaining balance on a preorder that used partial payment or a deposit. Optionally suppresses the payment-confirmation notification.Order; Send notifications (yes/no, defaults to yes)

Preorders, Fulfillments

ActionWhat it doesKey inputs
Hold all fulfillmentsPlaces a fulfillment hold on every fulfillment order for a preorder. Optionally adds a reason note visible in Shopify admin.Order; Reason notes (optional)
Release all fulfillmentsReleases all held fulfillments and moves them to Unfulfilled status so they can be picked and shipped.Order
Open scheduled fulfillmentsConverts Scheduled fulfillments to Unfulfilled, useful when you use STOQ's scheduled fulfillment setup and want to trigger that transition via Flow.Order
Split preorder fulfillmentsSplits preorder line items into their own fulfillment order, separate from any in-stock items on the same order. The split runs even if the offer's built-in split setting is off.Order
Send shipping update notificationSends a shipping-update email to the customer. You can override the subject, header, and body; if you omit them, the email uses the text configured in STOQ's notification settings.Order; Subject, header, description (all optional)

Preorders, Offers

ActionWhat it doesKey inputs
Add product variant to offerAdds a variant to a STOQ preorder offer and syncs the change to Shopify.Product variant; Offer identifier (internal name or Shopify selling plan)
Remove product variant from offerRemoves a variant from a STOQ preorder offer and optionally sets the inventory policy to Deny so the variant cannot be oversold.Product variant; Offer identifier; Disable continue selling (yes/no)

Back in stock

ActionWhat it doesKey inputs
Notify customers in waitlistTriggers back-in-stock notifications (email, SMS, or both) for all customers waiting on a specific variant. Optionally scoped to a single market.Product variant; Channel (email or SMS, omit for both); Market

Build a workflow in Shopify Flow

1

Open Shopify Flow

  1. In Shopify admin, go to Apps > Flow.
  2. Click Create workflow.
2

Select a trigger

Choose STOQ from the app list and pick the trigger that should start your workflow (for example, Customer placed preorder or Payment collection failed).

3

Add conditions and actions

  1. Add any Shopify Flow conditions you need (for example, filter by order tag or order value).
  2. Add a STOQ action or any other app action.

Pass the order or variant from the trigger into the action inputs. Shopify Flow surfaces the available fields from the STOQ trigger as variables you can insert.

4

Activate the workflow

Click Turn on workflow. From this point, every matching STOQ event fires the workflow automatically.

Example automations

Tag orders and send an internal Slack notification when a preorder is placed

  • Trigger: Customer placed preorder (STOQ)
  • Action 1: Add order tag "preorder" (Shopify)
  • Action 2: Send Slack message with the order name and customer email

Automatically collect payment when an order is marked as fulfilled

  • Trigger: Order fulfilled (Shopify)
  • Condition: Order tag contains "preorder"
  • Action: Collect pending payment (STOQ)

Release fulfillment holds on a specific date

  • Trigger: Scheduled time (Shopify Flow)
  • Action: Release all fulfillments (STOQ), one action per order, or chain with a Shopify For each loop over a saved order list

Add new inventory arrivals to a preorder offer automatically

  • Trigger: Inventory level updated (Shopify)
  • Condition: Inventory quantity greater than 0
  • Action: Add product variant to offer (STOQ)

Notify waitlist customers when stock is received

  • Trigger: Product variant restocked (STOQ)
  • Action: Notify customers in waitlist (STOQ) with channel set to email

Check your setup

  1. In Shopify Flow, open your workflow and click Run history to see recent executions and any errors.
  2. In STOQ, go to Reports → Preorders → Orders and check that the order you tested has the expected status (fulfilled, held, payment captured, etc.). You can also check just one offer's orders: Preorders in the left menu → Offers tab → open the offer → its Orders tab.
  3. For the Notify customers in waitlist action, go to Reports to confirm notifications were sent.

Troubleshooting

The "Customer placed preorder" trigger is not firing

Check these:

  1. The Flow triggers master switch is on in STOQ's Integrations settings.
  2. The Customer placed preorder checkbox is checked.
  3. If both are on, check the Shopify Flow Run history for your workflow to see whether Shopify received the event.

STOQ also prevents duplicate delivery, so a trigger won't fire again for an order it already fired for.

"Release all fulfillments" fails on an order

It most likely has no active holds. Shopify's release-hold API returns an error when there's nothing to release, which fails the Flow action run. Add a Shopify Flow condition before this action (for example, checking an order tag or metafield) to confirm the order is still on hold.

A Flow action fails with a not-found error

Order-level actions (collect payment, hold/release fulfillments, split fulfillments, send shipping update) only work on orders in STOQ's preorder records. If the order wasn't placed through a STOQ preorder offer, the action fails.

The "Customer notified for email back in stock alert" trigger does not fire

It requires a Shopify customer record. STOQ tries to sync the customer first; if that sync fails, the trigger is skipped for that customer.

Limitations

  • Order-level actions (collect payment, hold, release, split, send shipping update) run one order at a time. Use a Shopify Flow loop or separate workflow runs for batch processing.
  • The Notify customers in waitlist action supports email or SMS only; push notifications aren't available via this action.

FAQ

Do I need to configure anything in Shopify Flow before STOQ actions appear?

No. STOQ's Flow actions require no setup in Shopify Flow: they're registered with Shopify automatically when STOQ is installed, and they appear in the Shopify Flow action picker under the STOQ app. You only need to enable triggers in STOQ if you want STOQ to fire events into Flow; actions are always available regardless of your trigger settings.

Does the 'Collect pending payment' action send the customer a payment confirmation email?

Yes, by default. The action includes an optional Send notifications setting. If you set it to no, STOQ captures the payment silently without emailing the customer. Leave it at the default (yes) if you want the customer to receive a confirmation.

What is the 'offer identifier' field on the add/remove variant actions?

It's a flexible lookup key that accepts either the offer's internal name (set in STOQ when you create the offer) or the Shopify selling plan it corresponds to. Using the internal name is usually the most readable option in a Flow workflow.

Will 'Split preorder fulfillments' work even if I haven't enabled split fulfillment on the offer itself?

Yes. When you invoke Split preorder fulfillments via a Flow action, STOQ skips the offer-level enabled check and performs the split regardless of the offer's built-in split fulfillment setting. This lets you trigger a one-off split from Flow without changing your default offer configuration.