Menu
inventoryAdjustQuantities
Apply relative (delta) changes to inventory quantities at one or more locations.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the inventoryAdjustQuantities action (under Inventory).
- Fill in the fields below, then reference the result from later steps as
{{inventoryadjustquantities.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation InventoryAdjustQuantities($input: InventoryAdjustQuantitiesInput!) {
inventoryAdjustQuantities(input: $input) {
inventoryAdjustmentGroup {
app {
apiKey
appStoreAppUrl
appStoreDeveloperUrl
availableAccessScopes
banner
description
developerName
developerType
developerUrl
embedded
failedRequirements
features
feedback
handle
icon
id
installUrl
installation
isPostPurchaseAppInUse
launchUrl
navigationItems
optionalAccessScopes
previouslyInstalled
pricingDetails
pricingDetailsSummary
privacyPolicyUrl
publicCategory
published
requestedAccessScopes
screenshots
shopifyDeveloped
title
uninstallMessage
uninstallUrl
webhookApiVersion
}
createdAt
id
reason
referenceDocumentUri
staffMember {
accountType
active
email
exists
firstName
id
initials
isShopOwner
lastName
locale
name
phone
privateData
}
}
userErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"input": {
"reason": "string",
"name": "string",
"changes": [
{
"delta": "string",
"inventoryItemId": "string",
"locationId": "string",
"changeFromQuantity": "string",
"ledgerDocumentUri": "string"
}
],
"referenceDocumentUri": "string"
}
}
Response
Read the result with {{inventoryadjustquantities.response.data.data.inventoryAdjustQuantities}}. If the API returns errors, the step fails and they are at {{inventoryadjustquantities.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?