Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Shopify Discount Code property Update

Nick52
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?

banned
Replies 0 (0)