Shopify

Monitor your Shopify store in real-time. Get notified about new orders, low stock, or high-risk transactions directly in your preferred messaging apps.

Integration Guide

1. Get your Project Key

  1. Go to your AlertHub Project Settings.
  2. Copy your One-Way Secret Key.

2. Configure Shopify Webhook

You can check the Shopify Webhooks documentation for more information but here is a quick guide:

  1. Log in to your Shopify Admin.
  2. Go to Settings > Notifications.
  3. Scroll down to the Webhooks section at the bottom.
  4. Click Create webhook.
  5. Select the Event you want to monitor (e.g., Order creation).
  6. In Format, select JSON.
  7. In URL, paste your constructed AlertHub URL (see below).
  8. Click Save.

3. URL Construction

For a basic “New Order” alert:

Generate Webhook URL
GET POST
https://api.thealerthub.com/sendAlert?ah_key=YOUR_KEY&ah_source=Shopify+Store&ah_title=New+Sale%3A+%7B%7Bname%7D%7D&ah_description=Customer+%7B%7Bemail%7D%7D+just+spent+%7B%7Btotal_price%7D%7D+%7B%7Bcurrency%7D%7D.+Items%3A+%7B%7Bline_items.0.title%7D%7D...

Common Placeholders

Shopify payloads are flat for many main resources, which makes them easy to parse.

Data FieldPlaceholder
Order Number{{name}}
Total Price{{total_price}}
Currency{{currency}}
Customer Email{{email}}
Gateway{{gateway}}
Financial Status{{financial_status}}

Check the complete list of topics and fields in the Shopify Webhooks documentation.

Use Cases

High Risk Orders

Filter for specific events or simply forward everything and let AlertHub notify you.

Generate Webhook URL
GET POST
https://api.thealerthub.com/sendAlert?ah_key=YOUR_KEY&ah_source=Shopify+Store&ah_title=Risk+Alert%3A+Order+%23%7B%7Bname%7D%7D&ah_level=warning&ah_description=Risk+Alert%3A+Order+%23%7B%7Bname%7D%7D

Inventory Warnings

Listen to Inventory levels update.

Generate Webhook URL
GET POST
https://api.thealerthub.com/sendAlert?ah_key=YOUR_KEY&ah_source=Shopify+Store&ah_title=Inventory+Update&ah_level=warning&ah_description=Item+%7B%7Binventory_item_id%7D%7D+count%3A+%7B%7Bavailable%7D%7D