---
title: ID - Shop Partners API
description: The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/scalars/ID
  md: https://shopify.dev/docs/api/shop-partners/latest/scalars/ID.md
---

# ID

scalar

The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.

## Map

### Fields with this scalar

* [Metafield​Definition.uuid](https://shopify.dev/docs/api/shop-partners/latest/objects/MetafieldDefinition#field-MetafieldDefinition.fields.uuid)
* [Metafield​Namespace.uuid](https://shopify.dev/docs/api/shop-partners/latest/objects/MetafieldNamespace#field-MetafieldNamespace.fields.uuid)
* [Related​Product.productId](https://shopify.dev/docs/api/shop-partners/latest/objects/RelatedProduct#field-RelatedProduct.fields.productId)
* [Related​Product.productVariantId](https://shopify.dev/docs/api/shop-partners/latest/objects/RelatedProduct#field-RelatedProduct.fields.productVariantId)
* [Shop​Video.id](https://shopify.dev/docs/api/shop-partners/latest/objects/ShopVideo#field-ShopVideo.fields.id)
* [Shop​Video.mediaImageId](https://shopify.dev/docs/api/shop-partners/latest/objects/ShopVideo#field-ShopVideo.fields.mediaImageId)
* [Shop​Video.videoId](https://shopify.dev/docs/api/shop-partners/latest/objects/ShopVideo#field-ShopVideo.fields.videoId)

### Inputs with this scalar

* [Media​Create​Input.mediaImageId](https://shopify.dev/docs/api/shop-partners/latest/input-objects/MediaCreateInput#fields-mediaImageId)
* [Media​Create​Input.videoId](https://shopify.dev/docs/api/shop-partners/latest/input-objects/MediaCreateInput#fields-videoId)
* [Media​Update​Input.id](https://shopify.dev/docs/api/shop-partners/latest/input-objects/MediaUpdateInput#fields-id)
* [Media​Update​Input.mediaImageId](https://shopify.dev/docs/api/shop-partners/latest/input-objects/MediaUpdateInput#fields-mediaImageId)
* [Related​Product​Input.productId](https://shopify.dev/docs/api/shop-partners/latest/input-objects/RelatedProductInput#fields-productId)
* [Related​Product​Input.productVariantId](https://shopify.dev/docs/api/shop-partners/latest/input-objects/RelatedProductInput#fields-productVariantId)

### Arguments with this scalar

* [Query.media(entityId)](https://shopify.dev/docs/api/shop-partners/latest/objects/Query#field-Query.fields.media.arguments.entityId)
* [media​Delete.id](https://shopify.dev/docs/api/shop-partners/latest/mutations/mediaDelete#arguments-id)
* [media.entityId](https://shopify.dev/docs/api/shop-partners/latest/queries/media#arguments-entityId)