Assign multiple codes to one set of discount rules and settings through the GraphQL API

ericnam
Shopify Partner
9 0 10

Is there a way to create multiple codes for one discount using the GraphQL API? I understand that through the REST API, we can create a PriceRule with multiple DiscountCodes tied to it. However, this method is missing discount code rules and settings that I require for my use case. 

 

The GraphQL API on the other hand is deprecating the use of PriceRules, and while the Discount Code type has all of the rules and settings I require, I am unable to see how to tie multiple codes to one set of rules. Any help or guidance or future plans in the roadmap to address this could be very helpful.

Replies 0 (0)