All articles

Aftership WISMO ruleUpdated 6 months ago

Rule Layout: 

article image

In Reply Section of the rule, Pass the following Code and remember to replace XXXX, the integration ID with the actuall id of the customers integration. 

You can find your customers Aftership ID in the url when you click on the integration: Settings -> integrations -> HTTP -> Aftership.

Hi {{ticket.customer.firstname}},

{% if ticket.customer.integrations.XXXX.data.trackings[0].order_id and ticket.customer.integrations.XXXX.data.trackings[0].courier_tracking_link != empty -%}
Here is shipping information related to your last order:Order #:{{ticket.customer.integrations.XXXX.data.trackings[0].order_id}}
Status:{{ticket.customer.integrations.XXXX.data.trackings[0].tag}}
{% if ticket.customer.integrations.XXXX.data.trackings[0].tracking_number -%}
Tracking number:{{ticket.customer.integrations.XXXX.data.trackings[0].tracking_number}}
Tracking Link:{{ticket.customer.integrations.XXXX.data.trackings[0].courier_tracking_link}}
{%- endif  %}
{%- else -%}
We don't have any records of recent orders. Please let us know if you placed your order under a different email address than {{ticket.customer.email}}
{%- endif  %}


In the end, the rule should look like this:

article image


Was this article helpful?
Yes
No