Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Alerts & Notifications

Alerts & Notifications

Send email alerts for Shopify wholesale and B2B orders via SMTP

Runs on each new Shopify order, checks B2B company or wholesale customer tags through the Admin API, and emails an alert for qualifying orders.

What it does

# Send email alerts for Shopify wholesale and B2B orders ## Who it's for Shopify merchants who sell wholesale or B2B (Shopify native B2B or tag-based) and don't want big orders to get lost among retail orders. ## How it works 1. Shopify Trigger fires on every new order. 2. Settings holds every value you may change. 3. Look up customer and company reads the customer's tags and the B2B company and location name with the Shopify Admin GraphQL API, because the order webhook doesn't include them. 4. Check order and build alert flags the order if it comes from a B2B company, or the customer or order has your wholesale tag, and checks the minimum order value. It builds an HTML email with customer, company, items, total, payment status and a link to the order. 5. Is wholesale? stops retail orders; Send alert email emails you wholesale ones. ## Setup 1. In the Shopify Dev Dashboard, create an app with scopes read_orders,read_customers, add your n8n OAuth redirect URL, release it and install it on your store. 2. Add a Shopify OAuth2 API credential and select it in both Shopify nodes. 3. Add an SMTP credential and select it in Send alert email. 4. Fill in Settings (shop subdomain, tag, emails) and activate. ## Requirements Shopify store (any plan), SMTP account. One execution per order. ## How to extend Add Slack, Microsoft Teams or Google Sheets after Is wholesale? (true branch).

The steps

  1. Shopify Trigger
  2. Settings
  3. Check order and build alert
  4. Is wholesale?
  5. Send alert email
  6. Look up customer and company

Similar automations