Sync Shopify orders to Xero invoices with Slack and email alerts
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on Shopify events. Along the way it connects Shopify, Xero and Slack. It also calls api.xero.com over HTTP.
How it runs
Trigger: On Shopify events.
- Config (Edit Fields (Set)): sets or maps fields
- Find Xero Contact (Xero): get many (contact)
- Contact Exists? (If): checks a condition and branches into true / false
- Format Error (Code): runs custom JavaScript code
- Map Line Items (Code): runs custom JavaScript code
- Create Xero Contact (Xero): create (contact)
- Notify Slack (Slack): uses Slack
- Notify Email (Send Email): sends an email over SMTP
- Create Xero Invoice (HTTP Request): calls api.xero.com (PUT)
- Order Paid? (If): checks a condition and branches into true / false
…plus 1 more step. See the full node list below.
Services it uses
Other Shopify + Slack templates (51) · Other Xero + Slack templates (10)
HTTP calls to: api.xero.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Shopify Trigger
n8n-nodes-base.shopifyTrigger - Edit Fields (Set)
n8n-nodes-base.set - Xero
n8n-nodes-base.xero - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow triggers on new Shopify orders, finds or creates the matching customer in Xero, converts the order line items and shipping into an AUTHORISED accounts receivable invoice, and optionally records a payment when the order is marked…