Detect a recurring subscription order

On a order confirmation email, I’m trying to detect whether an order was generated by a web checkout or by a recurring subscription app (Recharge). There are relevant fields in the REST API (eg app_id) but I can’t find anything helpful in the liquid API.

Are there any fields in liquid API I could use to detect when an order is generated by Recharge?

hello there

Unfortunately, the Liquid API doesn’t provide any specific fields that can be used to detect whether an order was generated by Recharge or any other subscription app. However, there are a couple of workarounds that you can consider:

Use the “Source name” field in the order details page in your Shopify admin panel to identify orders generated by Recharge.

Use webhooks to capture data from Recharge and then display the appropriate content in your email templates. Recharge sends out various webhooks when certain events occur, such as when a new subscription is created or when a subscription is updated.

1 Like