Skip to main content

Conditions You Can Use in AfterShip Notifications

Written by Harneet Kaur

Overview

A condition is a property of an order, shipment, return, claim, or shopper that your notification compares against a value you choose. Learn which conditions are available in AfterShip notifications, what each one means, and where you can use it.
You use conditions in 3 places, and not every condition is available in all of them.

Placement

Where you set it

What it does

Trigger filter

On the trigger card, under Trigger filters

Adds a requirement on top of the trigger, so the notification starts only when the condition is also met

Split

A Conditional split step you add to the canvas from the Logic group

Sends each record down one branch or another, so each record gets different content

Exit condition

On the trigger card, under Exit conditions

Stops a run already in progress, typically because the situation it was about has resolved

Conditions work as trigger filters and in splits. Many conditions also work as exit conditions and can end a notification early, because their values can still change after the notification starts.

The condition picker, opened from Add filter on the trigger, shows a search box followed by the conditions grouped by category.

Which Conditions Your Trigger Offers

The condition picker groups conditions by category: Order, Shipment, Carrier, Customer, Return, and Warranty. The categories you see depend on the business module of your trigger. These are the same modules as the tabs on the Notifications page.

Trigger module

Order

Shipment

Carrier

Customer

Return

Warranty

Pre-shipment

✓

✓

In-store pickup

✓

✓

Shipments

✓

Single-shipment triggers

Single-shipment triggers

✓

Returns

✓

Warranty

✓

Shipments triggers come in 2 kinds:

  • Single-shipment triggers: Most Shipments triggers, such as In transit and Delivered. Order details such as Order number sit in the Shipment group, and the Order group holds Shopify order tags.

  • Split-order triggers: Split order shipments updated (digest) and All split order shipments delivered. These triggers cover the whole order, so they offer the full Order list.

Note: Some conditions are available only on specific triggers, and the tables below name them in the Limited to column. The condition picker for your trigger is the definitive list, because it shows exactly the conditions that trigger offers.

How to Read the Tables

The tables list each category once, in the order the condition picker shows them.

  • Exit: A ✓ means you can also use the condition as an exit condition.

  • Limited to: If a condition appears on only some of the triggers its category covers, this column names those triggers. A blank cell means the condition is available wherever its category is.

Order

Order conditions are available on every Pre-shipment and In-store pickup trigger, and on the 2 split-order Shipments triggers. On single-shipment triggers, the Order group holds Shopify order tags.

Condition

What it means

Exit

Limited to

Destination country/region

Where the order ships to

Fulfillment product type

The product type of the items in the fulfillment

Fulfillment status

The order's fulfillment status

✓

Order fulfillment

Newly processing collections

The collection a newly processing product belongs to

Newly processing products

Specific products that have just moved into processing

Newly updated collections

The collection a newly updated product belongs to

Custom status and Custom status (in-store pickups)

Newly updated products

Specific products that have just moved to a custom status

Custom status and Custom status (in-store pickups)

Order custom fields

A custom field you add to orders to hold information the standard fields don't cover

✓

Order ID

The unique identifier assigned to each order

Order number

The order's shopper-facing number

Order status

Where the order stands: open, closed, or canceled

✓

Order value

The order total

Product type

The product type of the products in the order

Products collection in order

The collection a product in the order belongs to

Pre-shipment triggers; in-store pickup Order placed and Order canceled

Products collection in pickup

The collection a product in the current pickup fulfillment belongs to

In-store pickup Order processing, Ready for pickup, Picked up, and Custom status

Products in order

Specific products in the order

Pre-shipment triggers; in-store pickup Order placed and Order canceled; split-order triggers

Products in pickup

Specific products in the current pickup fulfillment

In-store pickup Order processing, Ready for pickup, Picked up, and Custom status

Shipping method

The order's shipping method

Shopify order tags

Tags assigned to the order in Shopify

✓

Also available on every Shipments trigger

Source

The platform or channel AfterShip imported the order from

Store

The store AfterShip imported the order from

Shipment

Shipment conditions are available on the single-shipment triggers in Shipments.

Condition

What it means

Exit

Limited to

Collections in shipment

The collection a product in the shipment belongs to

Destination country/region

Where the shipment is going

Estimated delivery date

The date the shipment is expected to arrive

✓

Failed delivery attempts

How many delivery attempts have failed

Failed attempt

Latest shipment status

Where the shipment currently stands

✓

Order contains multiple shipments

Whether the order this shipment belongs to is split across several shipments

✓

Order ID

The unique identifier of the order the shipment belongs to

Order number

The shopper-facing number of the order the shipment belongs to

Order of delivery

Whether this is the first or the last shipment delivered for the order

Origin country/region

Where the shipment ships from

Package has been damaged

The package is marked as damaged

✓

Exception

Package has been lost

The package is marked as lost

✓

Exception

Package was returned to sender

The package is marked as returned to sender

✓

Exception

Products in shipment

Specific products in the shipment

Revised reason

Why the estimated delivery date changed

✓

Estimated delivery date revised

Revised trending

Whether the new estimate is earlier, later, or unchanged

✓

Estimated delivery date revised

Shipment custom fields

A custom field you add to shipments

✓

Shipment tag

A label assigned to the shipment to mark it for particular handling

✓

Shipment title

The name given to the shipment

Shipping method

The shipment's shipping method

Signature upon delivery

The recipient must sign to confirm receipt

Source

The platform or channel AfterShip imported the shipment from

Store

The store AfterShip imported the shipment from

Sub status

The shipment's current sub-status

✓

Transit time

Total transit time in days. For delivered shipments, this is the delivered date minus the pickup date

✓

Carrier

Carrier conditions are available on the single-shipment triggers in Shipments.

Condition

What it means

Carrier

The carrier carrying the shipment

Carrier service type

The shipping service the carrier provides

Last mile carrier

The carrier handling final delivery

Last mile carrier service type

The service the last mile carrier provides

Customer

Customer conditions describe the shopper rather than the order: who they are, how they've bought before, and how they've engaged with your messages. These conditions are available on every Pre-shipment, In-store pickup, and Shipments trigger. Nearly all of them can end a notification early, because a shopper's behavior keeps changing while a notification waits.

Condition

What it means

Exit

Limited to

Avg. order value

The shopper's average order value

✓

Customer created

When the shopper's customer record was created

✓

Customer role

Whether the recipient is the buyer or the receiver

Single-shipment triggers in Shipments

Email address

The shopper's email address

Email marketing subscription

The shopper's email marketing status: subscribed, unsubscribed, not subscribed, or pending confirmation

✓

Email marketing suppression

Whether email to the shopper is suppressed: hard bounced, soft bounced, marked as spam, or not suppressed

✓

First order date

When the shopper placed their first order

✓

Have not entered the flow

The shopper hasn't entered a notification you choose, since this one started, over all time, or within a recent period

✓

Last order date

When the shopper placed their most recent order

✓

Number of email clicked

How many of your emails the shopper has clicked, over all time or within a recent period

✓

Number of email opened

How many of your emails the shopper has opened, over all time or within a recent period

✓

Number of email received

How many of your emails the shopper has received, over all time or within a recent period

✓

Number of recent orders

How many orders the shopper has placed, since this notification started, over all time, or within a recent period

✓

Purchased products

Specific products the shopper has bought before

✓

Shopify tag

Tags on the shopper's customer record in Shopify

✓

SMS marketing subscription

The shopper's SMS marketing status

✓

SMS marketing suppression

Whether SMS to the shopper is suppressed: hard bounced or soft bounced

✓

Total order count with coupon

How many of the shopper's orders used a coupon

✓

Total order count without coupon

How many of the shopper's orders didn't use a coupon

✓

Total spent in 30 days

How much the shopper has spent in the last 30 days

✓

Return

Return conditions are available on Returns triggers.

Condition

What it means

Exit

Limited to

Is gift return

Whether this is a gift return

Merchant note

The note you entered on the return request in the admin

✓

Triggers after the return request is received

Outcome

How the return was resolved: refund, store credit, upsell, or exchange

Reject reason

The reason you gave when rejecting the request. This is free text rather than a fixed list

Return request rejected

Return method

How the shopper chose to return: ship with a return label, return to a retail store, ship with a carrier of their choosing, green returns, Happy Returns, pick up from customer, or return to a drop-off location

Return reason

The reasons attached to the request, drawn from the return reasons you configure

RMA source

Where the request came from: the admin, the returns page, the API, or a point of sale

Shipping status

The status of the return shipment: partially dropped off, dropped off, no prepaid label, pre-shipment, shipped, delivered, partially received, received, or label void

✓

Return request approved, Return request expired, and Return request resolved. Used in splits and as an exit condition

Note: Use Shipping status in splits and exit conditions. This condition becomes meaningful once a return is in motion, so use it after the notification starts to branch on where the return shipment is, or to stop once it reaches a stage.

Warranty

Warranty conditions are available on every Warranty trigger.

Condition

What it means

Exit

Limited to

Customer country/region

The country or region of the customer attached to the claim

Merchant note

The note you entered on the claim in the admin

✓

Triggers after the claim is submitted

Resolution

How the claim was resolved: repair, replace, store credit, repair kit, or other

Warranty claim in progress and Warranty claim resolved

RMA source

The warranty page the shopper submitted the claim through

Warranty reason

The reason given for the claim, drawn from the reasons you configure. This is free text rather than a fixed list

Things to Know Before You Build

  • Some conditions belong to particular triggers. The Limited to column names them, for example Exception.

  • A condition tests what the trigger carries. A shipment trigger carries the shipment and the order behind it, so you can test those. This is why the categories you can use follow the trigger's module, as shown in the table at the top.

  • Custom fields come from your own setup. Order custom fields and Shipment custom fields offer the fields you've defined.

  • Free-text conditions match as text. Reject reason, Return reason, and Warranty reason take values you've configured or typed, so a small difference in spelling counts as a different value.

  • Filters are cheaper than splits. If a notification should never run for part of your traffic, exclude that traffic with a trigger filter rather than letting the notification start and splitting it away. A filter keeps your notification history clean.

FAQs

1. Can I combine several conditions?

Yes. AfterShip evaluates conditions in the same place together, so you can narrow by more than one condition at a time.

2. How do I find which conditions my trigger offers?

Start with the table at the top to see the categories for your trigger's module. Then check each condition's Limited to column for the triggers it belongs to.

3. Which conditions work as an exit condition?

The conditions marked in the Exit column. Their values keep changing while the notification waits, such as the shipment status or a shopper's email engagement. Values fixed when the notification started, such as the order number, are for filters and splits.

4. Does a condition re-evaluate while the notification is waiting?

An exit condition does, because that is its purpose. A trigger filter evaluates once, when the notification starts.

Key Takeaways

  • You use conditions in trigger filters, splits, and exit conditions, and these places aren't interchangeable

  • Your trigger's business module decides which condition categories you can use

  • Some conditions are further limited to particular triggers, as the Limited to column shows

  • Exit conditions use values that can still change while the notification waits

  • Use a trigger filter, not a split, when a notification shouldn't run at all

Did this answer your question?