# Shopify Flow

> Automate split, held and subscription orders with Multi Ship's Shopify Flow triggers, including subscriptions in any subscription app

Source: https://help.pasilobus.com/multi-ship/shopify-flow
App: MultiShip Address Checkout
Shopify App Store: https://apps.shopify.com/multi-ship-pasilobus
App help: https://help.pasilobus.com/multi-ship
Section: Integrations
Support: email support@pasilobus.com or send a request from https://cloud.pasilobus.com/support (no chat)

Multi Ship sends Shopify Flow triggers when it splits an order, holds one for review, or creates an address's order with subscription items. Use them to tag orders, notify your team, or create subscriptions in any subscription app, without code. You'll find them in **Settings > Integrations** and in Shopify Flow under **Multi Ship**.

## The triggers

- **Order split into shipments** - runs when a paid order becomes one order per address: at checkout, by a manual split, or when a combined invoice from the order builder is paid. It passes the original order, **Order name**, **Shipment count**, **Shipment order names** and **Split by** (how it was split).
- **Multi-address order held for review** - runs when an order is held instead of split because its payment doesn't match what Multi Ship calculated. It passes the order, **Order name** and **Reason**.
- **Subscription bought for an address** - runs once for each address's order that has subscription items, so your subscription app can create the subscription. Its fields are listed below.

## Subscription bought for an address

When a customer sends subscription products to several addresses, Multi Ship creates each address's order as usual. That order can't start a subscription by itself, so Multi Ship hands its subscription items on:

- **Pasilobus Subscriptions** - when it's installed, it creates the subscription automatically. You don't need a workflow.
- **Any other subscription app** - build a workflow on this trigger that creates the subscription in your app.

The trigger passes:

- **The order** - that address's order, with its customer and shipping address.
- **Order name** and **Original order name** - for example #1001-2 and #1001.
- **Subscriber** - **buyer** when the customer chose to manage it as a gift, **recipient** when the recipient manages it and pays for future deliveries.
- **Subscriber email**, **Subscriber first name** and **Subscriber last name** - the person who manages the subscription.
- **Renewal shipping price** - the shipping price that address paid, to charge on each renewal.
- **Subscription items** - a list with each item's product, variant, quantity, price, selling plan ID and selling plan name.
- **Handled by Pasilobus Subscriptions** - true when Pasilobus Subscriptions is installed and already creates the subscription.

## Create subscriptions in another app

1. In Shopify Flow, click **Create workflow** and choose the **Subscription bought for an address** trigger from Multi Ship.
2. If Pasilobus Subscriptions is also installed, add a **Condition**: **Handled by Pasilobus Subscriptions** is false. This keeps the subscription from being created twice.
3. Add a **For each** step over **Subscription items**, so a cart with several subscription products creates each one.
4. Add your subscription app's action, or a **Send HTTP request** to its API, and fill it from the trigger's fields: the subscriber's email and name, the order's shipping address, and the item's variant, quantity, price and selling plan.
5. Turn the workflow on.

> Multi Ship accepts subscription items at a multi-address checkout only when Pasilobus Subscriptions is installed or a workflow on this trigger is turned on. Turn on the workflow before customers buy. If you turn off every workflow on it, checkout asks customers to buy subscription items for one address, so nobody pays a subscription price for a one-time order.

## Other ideas

- Tag the original order **split** when **Order split into shipments** runs, so your team can filter for it.
- Post the shipment order names to Slack, or email your warehouse.
- Email yourself when an order is held for review, with the reason, so it gets checked quickly.
