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.

Re: Automatic discounts problem

Solved

Automatic discounts problem

Anna55
Shopify Partner
4 0 6

I have some questions about discounts in GraphQL Admin API. The discounts have two type: automatic discount and code discount. I want to know whether the id of these two type will conflict  in same store? I mean whether the situation below will happen?

"gid:\/\/shopify\/DiscountAutomaticNode\/12345"
"gid:\/\/shopify\/DiscountCodeNode\/12345"

 

Accepted Solution (1)

GrahamS
Shopify Staff (Retired)
193 37 55

This is an accepted solution.

Hey @Anna55 ,

 

object IDs will be unique across all internal components, so you shouldn't ever encounter a situation where any two things (like a product and a customer, or an automatic discount and a manual discount) share the same ID.

 

Best,

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

GrahamS
Shopify Staff (Retired)
193 37 55

This is an accepted solution.

Hey @Anna55 ,

 

object IDs will be unique across all internal components, so you shouldn't ever encounter a situation where any two things (like a product and a customer, or an automatic discount and a manual discount) share the same ID.

 

Best,

To learn more visit the Shopify Help Center or the Community Blog.