Happening now! Shopify Community AMA: Building a Marketing Budget with 2H Media | Ask your marketing budget questions now!

inventorySetQuantities updates quantites after some time

inventorySetQuantities updates quantites after some time

mdou
New Member
4 0 0

Hi all,

Hope someone has experienced this behaviour before or maybe I am doing something wrong when setting inventory quantites to Shopify.

Our ERP system updates stock into Shopify using a GraphQL API (2024-07) call with query "inventorySetQuantities":

 

 
mutation inventorySetQuantities($input: InventorySetQuantitiesInput!) {
  inventorySetQuantities(input: $input) {
    inventoryAdjustmentGroup {
      createdAt
    }
    userErrors {
      field
      message
    }
  }
}
 

 We are facing a strange behaviour in "Adjustment history" in Shopify admin website. In the query "inventorySetQuantities" we ask for "creationAt" (inventoryAdjustmentGroup) field.
Sometimes we get a datetime in "createdAt" field (the following image is the response we receive:

mdou_0-1738837262715.png

And the adjustment is properly created in "Adjustment history" section:

mdou_1-1738837369448.png

 

But sometimes in the response we get a "nul":

mdou_3-1738837571827.png

  

and the adjustment is created after some hours (GraphQL API request is made on 05/02/2025 2:12 am)

 

mdou_4-1738837713851.png

 

Has Shopify some kind of buffer and process requests after some time?

 

Replies 0 (0)