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.

Difference between type & discount_type on discountNodes

Difference between type & discount_type on discountNodes

iO-Rotterdam
Shopify Partner
9 0 5

In the documentation of the Admin GraphQL API under `discountNodes` > `query` it says you can query on `type` and `discount_type`. But nowhere is it stated what the accepted values are or even what field both values relate to. I tried some logical values for both, but found no answer. So my question is, what do both fields relate to? See link below for the documentation I refer to:

 

https://shopify.dev/api/admin-graphql/2023-01/queries/discountNodes#argument-discountnodes-query

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 518

Hi @iO-Rotterdam,

 

I'm getting results from my test store using the same discount_type values that are listed under codeDiscountNodes, but the docs do not have any type examples. 

I have requested clearer examples internally, but you can also add feedback directly from the page's "Was this section helpful?" section.

 

Cheers,

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog