I'm using the Admin API (2019-04) to create discounted draft orders with this `applied_discount` property:
"applied_discount":{ "value_type":"percentage", "value":20, "amount":1.19, "title":"TEST20" }
It works ok. But the actual discount code's usage is not incrementing after the draft order is completed.
I followed this documentation.
The completed order
The discount info
Solved! Go to the solution
Success.
Hey @Zolbayar
I see the confusion here. What looks to be happening is you are applying a discount called "TEST20" but this is not actually linked/related to the discount code you have also called "TEST20". With a draft order, if you go through the UI you will see you can add a discount, but it functions as a custom discount vs. adding an existing customer-facing discount code. This means, that there is no relation or link between the two codes with the same names, which is why you are not seeing the amount increment.
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Subject | Author | Latest Post |
---|---|---|
Subject | Author | Posted |
---|---|---|
8m ago | ||
13m ago | ||
23m ago | ||
24m ago | ||
30m ago |
User | Count |
---|---|
257 | |
165 | |
134 | |
67 | |
38 |