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

A refund request is quicker to answer when the order is already in front of the agent. When a new Gorgias ticket mentions a refund, this looks up the customer's most recent Shopify order.

It adds an internal note with the order number, the total and whether it has shipped. If there is no order under that email address, the note says so.

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