Shopify Discount Code property Update

Shopify Expert
7 0 0

Hi Guys,


 I'm writing a script for one of our clients which should update the discount type from one time to both (One Time + Subscription).


Basically I'm using Shopify Dev article that shows that I can create and manage discounts with the GraphQL Admin API.

I'm able to work on the script using the APIs but there is an issue on which I'm stuck and need help. The article does list all of the required items for such script development but it doesn't list the parameter to update the value of discount code to both.


Can anyone please help me out with this?

Replies 0 (0)