Unable to update discount code field "usege_count" by API

Solved
Highlighted
New Member
1 0 0

Hi, I need to update discount code usage count by API, and the method doesn't work. The updating gives no effectзавантаження (2).png

0 Likes

Success.

Shopify Staff
Shopify Staff
223 28 28

Hi @tanya_gordiuk 


This is because the field is read-only, as stated in the docs. The field will automatically increment when the discount code is used on your store

 

26-56-t7r9g-h0nip

 

 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes