--- title: ID - Storefront API description: | Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: `"gid://shopify/Product/10079785100"` api_version: 2025-10 api_name: storefront type: scalar api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/scalars/ID md: https://shopify.dev/docs/api/storefront/latest/scalars/ID.md --- # ID scalar Represents a unique identifier, often used to refetch an object. The ID type appears in a JSON response as a String, but it is not intended to be human-readable. Example value: `"gid://shopify/Product/10079785100"` ## Map ### Fields with this scalar * <-|[Applied​Gift​Card.id](https://shopify.dev/docs/api/storefront/latest/objects/AppliedGiftCard#field-AppliedGiftCard.fields.id) * <-|[Article.id](https://shopify.dev/docs/api/storefront/latest/objects/Article#field-Article.fields.id) * <-|[Blog.id](https://shopify.dev/docs/api/storefront/latest/objects/Blog#field-Blog.fields.id) * <-|[Cart.id](https://shopify.dev/docs/api/storefront/latest/objects/Cart#field-Cart.fields.id) * <-|[Cart​Delivery​Group.id](https://shopify.dev/docs/api/storefront/latest/objects/CartDeliveryGroup#field-CartDeliveryGroup.fields.id) * <-|[Cart​Line.id](https://shopify.dev/docs/api/storefront/latest/objects/CartLine#field-CartLine.fields.id) * <-|[Cart​Selectable​Address.id](https://shopify.dev/docs/api/storefront/latest/objects/CartSelectableAddress#field-CartSelectableAddress.fields.id) * <-|[Cart​Warning.target](https://shopify.dev/docs/api/storefront/latest/objects/CartWarning#field-CartWarning.fields.target) * <-|[Collection.id](https://shopify.dev/docs/api/storefront/latest/objects/Collection#field-Collection.fields.id) * <-|[Comment.id](https://shopify.dev/docs/api/storefront/latest/objects/Comment#field-Comment.fields.id) * <-|[Company.id](https://shopify.dev/docs/api/storefront/latest/objects/Company#field-Company.fields.id) * <-|[Company​Contact.id](https://shopify.dev/docs/api/storefront/latest/objects/CompanyContact#field-CompanyContact.fields.id) * <-|[Company​Location.id](https://shopify.dev/docs/api/storefront/latest/objects/CompanyLocation#field-CompanyLocation.fields.id) * <-|[Componentizable​Cart​Line.id](https://shopify.dev/docs/api/storefront/latest/objects/ComponentizableCartLine#field-ComponentizableCartLine.fields.id) * <-|[Customer.id](https://shopify.dev/docs/api/storefront/latest/objects/Customer#field-Customer.fields.id) * <-|[External​Video.id](https://shopify.dev/docs/api/storefront/latest/objects/ExternalVideo#field-ExternalVideo.fields.id) * <-|[Generic​File.id](https://shopify.dev/docs/api/storefront/latest/objects/GenericFile#field-GenericFile.fields.id) * <-|[Image.id](https://shopify.dev/docs/api/storefront/latest/objects/Image#field-Image.fields.id) * <-|[Location.id](https://shopify.dev/docs/api/storefront/latest/objects/Location#field-Location.fields.id) * <-|[Mailing​Address.id](https://shopify.dev/docs/api/storefront/latest/objects/MailingAddress#field-MailingAddress.fields.id) * <-|[Market.id](https://shopify.dev/docs/api/storefront/latest/objects/Market#field-Market.fields.id) * <-|[Media​Image.id](https://shopify.dev/docs/api/storefront/latest/objects/MediaImage#field-MediaImage.fields.id) * <-|[Media​Presentation.id](https://shopify.dev/docs/api/storefront/latest/objects/MediaPresentation#field-MediaPresentation.fields.id) * <-|[Menu.id](https://shopify.dev/docs/api/storefront/latest/objects/Menu#field-Menu.fields.id) * <-|[Menu​Item.id](https://shopify.dev/docs/api/storefront/latest/objects/MenuItem#field-MenuItem.fields.id) * <-|[Menu​Item.resourceId](https://shopify.dev/docs/api/storefront/latest/objects/MenuItem#field-MenuItem.fields.resourceId) * <-|[Metafield.id](https://shopify.dev/docs/api/storefront/latest/objects/Metafield#field-Metafield.fields.id) * <-|[Metaobject.id](https://shopify.dev/docs/api/storefront/latest/objects/Metaobject#field-Metaobject.fields.id) * <-|[Model3d.id](https://shopify.dev/docs/api/storefront/latest/objects/Model3d#field-Model3d.fields.id) * <-|[Order.id](https://shopify.dev/docs/api/storefront/latest/objects/Order#field-Order.fields.id) ### Inputs with this scalar * [Buyer​Input.companyLocationId](https://shopify.dev/docs/api/storefront/latest/input-objects/BuyerInput#fields-companyLocationId) * [Cart​Address​Input.copyFromCustomerAddressId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartAddressInput#fields-copyFromCustomerAddressId) * [Cart​Buyer​Identity​Input.companyLocationId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartBuyerIdentityInput#fields-companyLocationId) * [Cart​Line​Input.merchandiseId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineInput#fields-merchandiseId) * [Cart​Line​Input.sellingPlanId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineInput#fields-sellingPlanId) * [Cart​Line​Parent​Input.lineId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineParentInput#fields-lineId) * [Cart​Line​Parent​Input.merchandiseId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineParentInput#fields-merchandiseId) * [Cart​Line​Update​Input.id](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineUpdateInput#fields-id) * [Cart​Line​Update​Input.merchandiseId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineUpdateInput#fields-merchandiseId) * [Cart​Line​Update​Input.sellingPlanId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineUpdateInput#fields-sellingPlanId) * [Cart​Metafield​Delete​Input.ownerId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartMetafieldDeleteInput#fields-ownerId) * [Cart​Metafields​Set​Input.ownerId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartMetafieldsSetInput#fields-ownerId) * [Cart​Selectable​Address​Update​Input.id](https://shopify.dev/docs/api/storefront/latest/input-objects/CartSelectableAddressUpdateInput#fields-id) * [Cart​Selected​Delivery​Option​Input.deliveryGroupId](https://shopify.dev/docs/api/storefront/latest/input-objects/CartSelectedDeliveryOptionInput#fields-deliveryGroupId) * [Delivery​Address​Input.customerAddressId](https://shopify.dev/docs/api/storefront/latest/input-objects/DeliveryAddressInput#fields-customerAddressId) ### Arguments with this scalar * <-|[Query​Root.article(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.article.arguments.id) * <-|[Query​Root.blog(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.blog.arguments.id) * <-|[Query​Root.cart(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.cart.arguments.id) * <-|[Query​Root.collection(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.collection.arguments.id) * <-|[Query​Root.metaobject(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.metaobject.arguments.id) * <-|[Query​Root.node(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.node.arguments.id) * <-|[Query​Root.nodes(ids)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.nodes.arguments.ids) * <-|[Query​Root.page(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.page.arguments.id) * <-|[Query​Root.product(id)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.product.arguments.id) * <-|[Query​Root.productRecommendations(productId)](https://shopify.dev/docs/api/storefront/latest/objects/QueryRoot#field-QueryRoot.fields.productRecommendations.arguments.productId) * <-|[cart​Attributes​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartAttributesUpdate#arguments-cartId) * <-|[cart​Buyer​Identity​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartBuyerIdentityUpdate#arguments-cartId) * <-|[cart​Delivery​Addresses​Add.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartDeliveryAddressesAdd#arguments-cartId) * <-|[cart​Delivery​Addresses​Remove.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartDeliveryAddressesRemove#arguments-cartId) * <-|[cart​Delivery​Addresses​Remove.addressIds](https://shopify.dev/docs/api/storefront/latest/mutations/cartDeliveryAddressesRemove#arguments-addressIds) * <-|[cart​Delivery​Addresses​Replace.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartDeliveryAddressesReplace#arguments-cartId) * <-|[cart​Delivery​Addresses​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartDeliveryAddressesUpdate#arguments-cartId) * <-|[cart​Discount​Codes​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartDiscountCodesUpdate#arguments-cartId) * <-|[cart​Gift​Card​Codes​Add.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesAdd#arguments-cartId) * <-|[cart​Gift​Card​Codes​Remove.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesRemove#arguments-cartId) * <-|[cart​Gift​Card​Codes​Remove.appliedGiftCardIds](https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesRemove#arguments-appliedGiftCardIds) * <-|[cart​Gift​Card​Codes​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesUpdate#arguments-cartId) * <-|[cart​Lines​Add.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesAdd#arguments-cartId) * <-|[cart​Lines​Remove.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesRemove#arguments-cartId) * <-|[cart​Lines​Remove.lineIds](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesRemove#arguments-lineIds) * <-|[cart​Lines​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartLinesUpdate#arguments-cartId) * <-|[cart​Note​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartNoteUpdate#arguments-cartId) * <-|[cart​Selected​Delivery​Options​Update.cartId](https://shopify.dev/docs/api/storefront/latest/mutations/cartSelectedDeliveryOptionsUpdate#arguments-cartId) * <-|[customer​Activate.id](https://shopify.dev/docs/api/storefront/latest/mutations/customerActivate#arguments-id) * <-|[customer​Address​Delete.id](https://shopify.dev/docs/api/storefront/latest/mutations/customerAddressDelete#arguments-id)