Shopify Flow
Automate document sending with Pixi's Shopify Flow integration for invoices and order documents
Shopify Flow with Pixi
Pixi integrates with Shopify Flow to automate document sending. Create workflows that automatically send invoices, packing slips, or custom documents based on order events and conditions.
Basic Workflow
Create a simple automation to send documents when orders are created:
- Open Shopify Flow from your admin panel
- Create workflow and select "Order created" trigger
- Add action and search for "Pixi Send Document"
- Connect the trigger to the action
- Configure the Send Document action
Send Document Configuration
Required Fields
Send To Email
The recipient email address. Use variables for dynamic addresses:
{{order.email}}
Email Subject
Subject line with variables:
Your invoice for order {{order.name}}
Email Message
The email body content. Supports HTML and variables:
Hello {{order.customer.firstName}},
Thank you for your order {{order.name}}.
Your invoice is attached to this email.
Best regards,
Your Store Team
Template ID
Get the template ID from Pixi:
- Go to Pixi dashboard
- Open your template
- Copy the ID from the URL or template settings
- Paste into Flow
Optional Fields
CC Recipients
Add CC recipients using comma-separated emails or variables:
accounting@company.com, {{order.customer.email}}
BCC Recipients
Hidden recipients for record keeping:
archives@company.com
Reply-To Email
Direct replies to specific address:
support@yourstore.com
PDF Attachment Filename
Custom filename for the PDF:
Invoice_{{order.name}}_{{order.createdAt | date: "%Y%m%d"}}.pdf
Send via SMTP
Toggle on to use SMTP settings configured in Pixi instead of default email service.
Draft Order ID
For draft order workflows only:
{{draftOrder.id}}
Advanced Workflows
Conditional Sending
Send different templates based on conditions:
- Add condition after trigger
- Check customer tags:
{{order.customer.tags}}contains "wholesale" - Then path: Send wholesale invoice template
- Otherwise path: Send regular invoice template
Multiple Documents
Send invoice and packing slip together:
- Order created trigger
- First action: Send invoice (Template ID: invoice_template)
- Second action: Send packing slip (Template ID: packing_template)
Delayed Sending
Send invoice after fulfillment:
- Order fulfilled trigger
- Wait action: 1 hour
- Send document action with invoice template
Common Use Cases
Auto-send Invoice on Payment
Trigger: Order paid
Action: Send invoice to customer
Template: Default invoice
Email: {{order.email}}
B2B Purchase Orders
Trigger: Order created Condition: Customer tag contains "B2B" Action: Send purchase order CC: `accounting
.com`
International Orders
Trigger: Order created
Condition: Shipping country not equals "US"
Action: Send customs invoice
Attachment name: Customs_{{order.name}}.pdf
Subscription Renewals
Trigger: Order created Condition: Order tag contains "subscription" Action: Send subscription invoice Reply-to: `subscriptions
.com`