Checking expiration dates in advance is something that Shopify Flow does not normally support. However, it is possible to implement notifications like this by creating segments based on expiration dates and using customers’ entry into or exit from those segments as a trigger to launch a Flow.
You will first need to define the expiration date metafield and created a segment based on that date. Please check the following articles for reference.
Applying customer's point information into metafields
Creating segments based on Point balance / expiration
Flow Configuration
Trigger: Customer joined segment "Segment Name"
Action: Send a LINE text message
When configuring the segment, you can use a condition like:
metafields.loyalty.expires_at <= +30d (例: 30日)
This filters for customers whose expiration date is within the next 30 days. When a customer’s expiration date reaches the 30-day threshold, they will automatically be added to this segment. By combining this behavior with the Flow trigger “Customer joined segment,” you can set up a notification to be sent exactly when a customer is 30 days away from their expiration date.
You can adjust the number of days freely when creating segments and can also use multiple segments simultaneously.
For customers who have not updated their point balance, expiration date, or accessed the store since the release of the new easyPoints metafield feature (May 19, 2024, around 10:00 AM), their metafield expiration information may still be blank. Therefore, this Flow does not guarantee delivery to all customers, but will work for all customers whose expiration information is already stored in their metafields.