---
title: ID - Customer 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: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/customer/latest/scalars/ID'
  md: 'https://shopify.dev/docs/api/customer/latest/scalars/ID.md'
api_name: customer
api_type: graphql
type: scalar
---

# 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

* [Additional​Fee​Sale.id](https://shopify.dev/docs/api/customer/latest/objects/AdditionalFeeSale#field-AdditionalFeeSale.fields.id)
* [Adjustment​Sale.id](https://shopify.dev/docs/api/customer/latest/objects/AdjustmentSale#field-AdjustmentSale.fields.id)
* [Company.id](https://shopify.dev/docs/api/customer/latest/objects/Company#field-Company.fields.id)
* [Company​Address.id](https://shopify.dev/docs/api/customer/latest/objects/CompanyAddress#field-CompanyAddress.fields.id)
* [Company​Contact.id](https://shopify.dev/docs/api/customer/latest/objects/CompanyContact#field-CompanyContact.fields.id)
* [Company​Contact​Role.id](https://shopify.dev/docs/api/customer/latest/objects/CompanyContactRole#field-CompanyContactRole.fields.id)
* [Company​Contact​Role​Assignment.id](https://shopify.dev/docs/api/customer/latest/objects/CompanyContactRoleAssignment#field-CompanyContactRoleAssignment.fields.id)
* [Company​Location.id](https://shopify.dev/docs/api/customer/latest/objects/CompanyLocation#field-CompanyLocation.fields.id)
* [Customer.id](https://shopify.dev/docs/api/customer/latest/objects/Customer#field-Customer.fields.id)
* [Customer​Address.id](https://shopify.dev/docs/api/customer/latest/objects/CustomerAddress#field-CustomerAddress.fields.id)
* [Domain.id](https://shopify.dev/docs/api/customer/latest/objects/Domain#field-Domain.fields.id)
* [Draft​Order.id](https://shopify.dev/docs/api/customer/latest/objects/DraftOrder#field-DraftOrder.fields.id)
* [Draft​Order​Line​Item.id](https://shopify.dev/docs/api/customer/latest/objects/DraftOrderLineItem#field-DraftOrderLineItem.fields.id)
* [Duty​Sale.id](https://shopify.dev/docs/api/customer/latest/objects/DutySale#field-DutySale.fields.id)
* [Exchange​Line​Item.id](https://shopify.dev/docs/api/customer/latest/objects/ExchangeLineItem#field-ExchangeLineItem.fields.id)
* [Exchange​Line​Item.productId](https://shopify.dev/docs/api/customer/latest/objects/ExchangeLineItem#field-ExchangeLineItem.fields.productId)
* [Exchange​Line​Item.variantId](https://shopify.dev/docs/api/customer/latest/objects/ExchangeLineItem#field-ExchangeLineItem.fields.variantId)
* [Fee​Sale.id](https://shopify.dev/docs/api/customer/latest/objects/FeeSale#field-FeeSale.fields.id)
* [Fulfillment.id](https://shopify.dev/docs/api/customer/latest/objects/Fulfillment#field-Fulfillment.fields.id)
* [Fulfillment​Event.id](https://shopify.dev/docs/api/customer/latest/objects/FulfillmentEvent#field-FulfillmentEvent.fields.id)
* [Fulfillment​Line​Item.id](https://shopify.dev/docs/api/customer/latest/objects/FulfillmentLineItem#field-FulfillmentLineItem.fields.id)
* [Generic​File.id](https://shopify.dev/docs/api/customer/latest/objects/GenericFile#field-GenericFile.fields.id)
* [Gift​Card​Sale.id](https://shopify.dev/docs/api/customer/latest/objects/GiftCardSale#field-GiftCardSale.fields.id)
* [Image.id](https://shopify.dev/docs/api/customer/latest/objects/Image#field-Image.fields.id)
* [Line​Item.id](https://shopify.dev/docs/api/customer/latest/objects/LineItem#field-LineItem.fields.id)
* [Line​Item.productId](https://shopify.dev/docs/api/customer/latest/objects/LineItem#field-LineItem.fields.productId)
* [Line​Item.variantId](https://shopify.dev/docs/api/customer/latest/objects/LineItem#field-LineItem.fields.variantId)
* [Line​Item​Group.id](https://shopify.dev/docs/api/customer/latest/objects/LineItemGroup#field-LineItemGroup.fields.id)
* [Market.id](https://shopify.dev/docs/api/customer/latest/objects/Market#field-Market.fields.id)
* [Market​Web​Presence.id](https://shopify.dev/docs/api/customer/latest/objects/MarketWebPresence#field-MarketWebPresence.fields.id)

### Inputs with this scalar

* [Calculate​Requested​Order​Edit​Input.orderId](https://shopify.dev/docs/api/customer/latest/input-objects/CalculateRequestedOrderEditInput#fields-orderId)
* [Calculate​Requested​Order​Edit​Line​Item​Removal​Input.lineItemId](https://shopify.dev/docs/api/customer/latest/input-objects/CalculateRequestedOrderEditLineItemRemovalInput#fields-lineItemId)
* [Calculate​Return​Input.orderId](https://shopify.dev/docs/api/customer/latest/input-objects/CalculateReturnInput#fields-orderId)
* [Calculate​Return​Line​Item​Input.lineItemId](https://shopify.dev/docs/api/customer/latest/input-objects/CalculateReturnLineItemInput#fields-lineItemId)
* [Metafield​Identifier​Input.ownerId](https://shopify.dev/docs/api/customer/latest/input-objects/MetafieldIdentifierInput#fields-ownerId)
* [Metafields​Set​Input.ownerId](https://shopify.dev/docs/api/customer/latest/input-objects/MetafieldsSetInput#fields-ownerId)
* [Requested​Line​Item​Input.lineItemId](https://shopify.dev/docs/api/customer/latest/input-objects/RequestedLineItemInput#fields-lineItemId)
* [Requested​Line​Item​Input.returnReasonDefinitionId](https://shopify.dev/docs/api/customer/latest/input-objects/RequestedLineItemInput#fields-returnReasonDefinitionId)
* [Requested​Order​Edit​Line​Item​Removal​Input.lineItemId](https://shopify.dev/docs/api/customer/latest/input-objects/RequestedOrderEditLineItemRemovalInput#fields-lineItemId)
* [Subscription​Billing​Cycle​Input.contractId](https://shopify.dev/docs/api/customer/latest/input-objects/SubscriptionBillingCycleInput#fields-contractId)
* [Subscription​Delivery​Method​Pickup​Input.locationId](https://shopify.dev/docs/api/customer/latest/input-objects/SubscriptionDeliveryMethodPickupInput#fields-locationId)

### Arguments with this scalar

* [Customer.subscriptionContract(id)](https://shopify.dev/docs/api/customer/latest/objects/Customer#field-Customer.fields.subscriptionContract.arguments.id)
* [Query​Root.company(id)](https://shopify.dev/docs/api/customer/latest/objects/QueryRoot#field-QueryRoot.fields.company.arguments.id)
* [Query​Root.companyLocation(id)](https://shopify.dev/docs/api/customer/latest/objects/QueryRoot#field-QueryRoot.fields.companyLocation.arguments.id)
* [Query​Root.draftOrder(id)](https://shopify.dev/docs/api/customer/latest/objects/QueryRoot#field-QueryRoot.fields.draftOrder.arguments.id)
* [Query​Root.order(id)](https://shopify.dev/docs/api/customer/latest/objects/QueryRoot#field-QueryRoot.fields.order.arguments.id)
* [Query​Root.return(id)](https://shopify.dev/docs/api/customer/latest/objects/QueryRoot#field-QueryRoot.fields.return.arguments.id)
* [company​Location​Assign​Address.locationId](https://shopify.dev/docs/api/customer/latest/mutations/companyLocationAssignAddress#arguments-locationId)
* [customer​Address​Delete.addressId](https://shopify.dev/docs/api/customer/latest/mutations/customerAddressDelete#arguments-addressId)
* [customer​Address​Update.addressId](https://shopify.dev/docs/api/customer/latest/mutations/customerAddressUpdate#arguments-addressId)
* [order​Request​Edit.orderId](https://shopify.dev/docs/api/customer/latest/mutations/orderRequestEdit#arguments-orderId)
* [order​Request​Return.orderId](https://shopify.dev/docs/api/customer/latest/mutations/orderRequestReturn#arguments-orderId)
* [subscription​Contract​Activate.subscriptionContractId](https://shopify.dev/docs/api/customer/latest/mutations/subscriptionContractActivate#arguments-subscriptionContractId)
* [subscription​Contract​Cancel.subscriptionContractId](https://shopify.dev/docs/api/customer/latest/mutations/subscriptionContractCancel#arguments-subscriptionContractId)
* [subscription​Contract​Fetch​Delivery​Options.subscriptionContractId](https://shopify.dev/docs/api/customer/latest/mutations/subscriptionContractFetchDeliveryOptions#arguments-subscriptionContractId)
* [subscription​Contract​Pause.subscriptionContractId](https://shopify.dev/docs/api/customer/latest/mutations/subscriptionContractPause#arguments-subscriptionContractId)
* [subscription​Contract​Select​Delivery​Method.subscriptionContractId](https://shopify.dev/docs/api/customer/latest/mutations/subscriptionContractSelectDeliveryMethod#arguments-subscriptionContractId)
* [company.id](https://shopify.dev/docs/api/customer/latest/queries/company#arguments-id)
* [company​Location.id](https://shopify.dev/docs/api/customer/latest/queries/companyLocation#arguments-id)
* [draft​Order.id](https://shopify.dev/docs/api/customer/latest/queries/draftOrder#arguments-id)
* [order.id](https://shopify.dev/docs/api/customer/latest/queries/order#arguments-id)
* [return.id](https://shopify.dev/docs/api/customer/latest/queries/return#arguments-id)
