Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

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

ericnam
Shopify Partner
9 0 11

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)