This is an example of a flow setting that saves Shopify's coupon code usage history in a customer meta field. The coupon code cannot be determined whether it can be used or not until it is entered on the purchase screen. This is used to determine when you want to run a different promotion for customers who have already used a first-time bonus coupon.
Example of setting to record used coupon code in meta field of customer information

[Setup Method 1] Create a metafield to store the coupon code usage history

[Setup Method 2] Set up a flow that will be executed when the order information is generated and when the order data contains a discount code

