When a new Gorgias ticket mentions a refund, adds the customer's latest Shopify order to it as an internal note.

UsesGorgiasShopify

Add Shopify order details to Gorgias refund tickets

GorgiasGorgiasWhen a new ticket arrives. Save it as ticket.When a new ticket arrives. Save it as ticket.
ShopifyFind the customer's most recent Shopify orderList orders. Save it as recent_orders.Shopify
Decisions & LoopsDid the customer have an order?If recent_orders.count is greater than 0
Yes
GorgiasAdd the order details to the ticketAdd internal note. Save it as order_note. Ticket ID: ticketMost recent Shopify order for ticket.customer_email Order number: recent_orders.orders[0].name Total: recent_orders.orders[0].total_display Shipping: recent_orders.orders[0].shipping_statusGorgias
No
GorgiasNote that no order was foundAdd internal note. Save it as no_order_note. Ticket ID: ticketNo Shopify order was found for ticket.customer_emailGorgias