Skip to main content
Anchor to InventorySetQuantitiesInput

InventorySetQuantitiesInput

input_object

The input fields required to set inventory quantities.

Anchor to ignoreCompareQuantityignoreCompareQuantity
•Boolean
Default:false

Skip the compare quantity check in the quantities field.

•String!
non-null

The name of quantities to be changed. The only accepted values are: available or on_hand.

•[InventoryQuantityInput!]!
required

The values to which each quantities will be set.

•String!
non-null

The reason for the quantity changes. The value must be one of the possible reasons.

Anchor to referenceDocumentUrireferenceDocumentUri
•String

A URI that represents why the inventory change happened, identifying the source system and document that caused this adjustment. Enables complete audit trails and brand visibility in Shopify admin inventory history.

Preferred format - Global ID (GID): gid://[your-app-name]/[entity-type]/[id]

Examples:

  • gid://warehouse-app/PurchaseOrder/PO-2024-001 (stock received)
  • gid://3pl-system/CycleCount/CC-2024-0125 (cycle count adjustment)
  • gid://pos-app/Transaction/TXN-98765 (in-store sale)
  • gid://erp-connector/SyncJob/SYNC-2024-11-21-001 (ERP sync)
  • gid://shopify/Order/1234567890 (Shopify order reference)

Benefits: Your app name appears directly in merchant inventory history, reducing support tickets and providing clear audit trails for compliance.

Alternative formats (also supported): https://myapp.com/documents/12345, custom-scheme://identifier

Requirements: Valid URI with scheme and content. For GID format, all components (app, entity, id) must be present.


Was this section helpful?

Anchor to Mutations using this inputMutations using this input


Was this section helpful?