Detect discount by ID in the order (API and Webhook) #221
Replies: 3 comments
-
Hey Anas 👋🏻 Not sure I follow- what API are you referring to and how does this relate to functions? |
Beta Was this translation helpful? Give feedback.
-
Hi @DuncanUszkay1 "discount_applications": [ Assume you are creating an automatic discount using shopify functions, and after sale you want to check if a discount was applied to some line item in an order. There is no way to identify the discount with something other than the title (which is not unique i believe, because you can return any title on the function output), so getting the ID will help in identifying the discount and use it in query. |
Beta Was this translation helpful? Give feedback.
-
This would be a great addition, because it would allow app developers to bill based on # of discount applications, in a foolproof way. It would also allow:
|
Beta Was this translation helpful? Give feedback.
-
We can only identify the discount with its title but not an ID, and discounts can have the same title so we are unable to identify it.
Beta Was this translation helpful? Give feedback.
All reactions