What are Upcoming order notifications?
Submarines upcoming subscription order flow trigger fires ahead of an upcoming subscription order, giving merchants the ability to notify customers before their order processes or leverage the trigger to handle operational requirements like discount validations or cart minimums.
With notification sequences, merchants can send multiple notifications - for example, a reminder at 14 days, 7 days, and 2 days before the order is due to be processed.
Since merchants can now have multiple upcoming order notifications we have exposed a way to know in Flow which notification has fired in the schedule. Three objects are available on the flow trigger to support this:
notificationsInSchedule- the total number of notifications configured for this upcoming order. It remains the same across every notification in the sequence. Example: If you have 3 notifications configured in total 3, Whether the first, second, or third notification is firing,notificationsInSchedule=3notificationNumber- which notification in the sequence is currently firing (e.g. 2). Use it to branch your flow into different actions depending on position in the sequence. Example:notificationNumber=1→ send a friendly reminder email.notificationNumber=3→ send a final reminder with a skip or pause CTA.notificationOffset- how many days before the upcoming order this notification is set to send (e.g. 7). Use this to populate dynamic copy in an email. Example:notificationOffset=14→ email reads "Your order will process in 14 days."notificationOffset=2→ same template reads "Your order will process in 2 days."
Example notification sequence
A merchant sets up 3 notifications: 14 days out, 7 days out, and 2 days out.
Notification fires | notificationsInSchedule | notificationNumber | notificationOffset |
First reminder | 3 | 1 | 14days |
Second reminder | 3 | 2 | 7days |
Third reminder | 3 | 3 | 2days |
The same flow handles all three - no duplicate workflows needed. This is how it will look in the payload;
},
"shopify::customer_id": "gid://shopify/Customer/8083202998504",
"partner::notifications": {
"notificationNumber": 2,
"notificationOffset": "18_hours_before",
"notificationsInSchedule": 2
},When to use this
Use this when you need to:
- Send customers more than one reminder before an upcoming subscription order
- Use one of the notifications to run operational checks (discount or order validations)
- Differentiate the message or action depending on where customers are in the notification sequence
Setting up multiple upcoming order notifications in flow
- In Shopify, open Flow and create a new flow
- Set the trigger to Submarine - Upcoming Order Notification
- Add a Condition block branching on
notificationNumber: - Branch 1:
notificationNumberequals1 - Branch 2:
notificationNumberequals2 - Branch 3:
notificationNumberequals3(and so on)
- Under each condition, add the relevant action (e.g. track an event in klaviyo)
- Within your email or message content, use
notificationOffsetto dynamically insert the number of days remaining (e.g.Your order ships in {{ notificationOffset }} days) - Save and turn on the workflow
Notes & Tips
- Notification schedules are configured in Submarine, not in Flow, if you’d like to change how many notifications fire or when, please send us an email at help@getsubmarine.com