Invalid global id

Shopify Partner
1 0 0

Hi All, I have creating the checkout using GraphQL mutation and getting error message "Invalid global id `2015021465715`"

0 Likes
Highlighted
Community Manager
Community Manager
451 17 45

Hi @krishna9,

 

The error message is correct, that id is invalid. I would take a look at our guide for migrating to GraphQL from REST:https://help.shopify.com/en/api/graphql-admin-api/migrating-from-rest. Let's say the id you shared is for a product, your GID would be gid://shopify/Product/2015021465715.

 

Cheers,

 

0 Likes