Send Wishlist Item Back in Stock Event to Ometria

Use this Shopify Flow template to automatically fire an event to Ometria whenever an out-of-stock product variant is replenished on your storefront. The moment inventory levels increase, this workflow cross-references your active Wysh wishlist data to find every subscriber who has saved that exact item, executing an automated HTTP request for each matching profile.

The data payload is completely pre-populated with customer and product variant variables, giving you an immediate hook to trigger high-conversion restock notifications or cross-channel retail campaigns.

Before you start

  • Wysh must be installed and active on your Shopify store.

  • Shopify Flow must be available on your store so you can import and edit the workflow.

  • An Ometria account with administrator privileges is required to generate API credentials.

  • Inventory tracking must be enabled for your products within Shopify so Shopify Flow can accurately read stock updates.

This template relies on a custom API connection rather than a native app block. Once configured, it pairs your real-time restock events with subscriber intent data to create automated back-in-stock marketing triggers. You must coordinate with Ometria to register your custom event types and map variables before activating the flow.

Install the workflow

Download the template, extract the file, and then import it into Shopify Flow.

Download the ZIP folder using the link above, then extract (unzip) it on your computer to get the .flow file.

In your Shopify admin, open Shopify Flow.

Choose the option to import a workflow, then upload the extracted .flow file.

After import, confirm that the workflow includes the inventory update trigger, the stock replenishment condition check, the Wysh loop block, and the Send HTTP request action.

Customize the workflow

Because this workflow bridges systems using a custom API connection, you must add your Ometria security token and verify your custom event endpoints before activating it.

1. Configure Your Ometria API Key Authorization

  1. Log in to your Ometria dashboard and navigate to your integration/settings menu to generate a new API Key.

  2. Open your imported workflow within Shopify Flow and click on the Send HTTP request action block located inside the loop block.

  3. Locate the Headers section. Look for the pre-configured header key named X-Ometria-Auth.

  4. Paste your copied Ometria API key directly into the Value field next to it.

2. Register the Custom Event Type with Your CSM

Ometria requires custom event endpoints to be explicitly registered on your account before they will accept incoming tracking data.

  • Contact your Ometria Customer Success Manager (CSM) and request that they create a new custom event.

  • You can name this event anything you like (for example: wishlist_item_back_in_stock).

  • Once registered, copy that exact text string, return to your Shopify Flow HTTP action block, find the payload body JSON, and update the "event_type" field value to match it perfectly.

3. Map Custom Event Properties

The template comes pre-packaged with an empty JSON properties block designed to let you pass supplementary data parameters over to Ometria (such as product title, image URL, or SKU).

  • If you choose to transmit custom properties, you must inform your Ometria CSM so they can configure those exact matching property data fields against the custom event on their end.

  • If you do not plan to track additional properties initially, leave the pre-configured "properties" key as an empty object ({}) in the payload body code. Do not delete the properties key entirely.


Turn it on

After updating your authorization headers, matching the event type string, and verifying properties, save the workflow in Shopify Flow.

Turn the workflow on so it can begin monitoring inventory levels and matching restocked items against customer wishlists.

Find a product currently saved to a test customer's wishlist, set its inventory to 0, then manually increase its stock in your Shopify admin to confirm the workflow loops through and triggers the HTTP request successfully.

Ensure that the event name registered by your Ometria CSM matches the "event_type" string inside the Shopify Flow JSON payload text exactly. If there is a typo or a case-sensitivity mismatch, Ometria's API pipeline will drop the data payload entirely.

What this workflow does

Once enabled, the workflow watches for an inventory quantity change where stock levels rise from zero. When this occurs, the flow scans active Wysh data to identify every customer who has that exact product saved to a wishlist. It then loops through those customers, running an internal HTTP POST request that transmits the event directly to Ometria's data pipeline for each subscriber—giving your marketing engine the precise trigger needed to power automated "Back in Stock" recovery tracks.