Stock update not working

Swapnil_Gadewar
Shopify Partner
14 0 1
Hi There,
 
We are updating the stock using Graphql API but its not updating, can request assistance on the below,  
 
 
body:
"mutation {\n            inventoryBulkAdjustQuantityAtLocation(\n              locationId: \"gid://shopify/Location/37443305558\",\n              inventoryItemAdjustments: [{inventoryItemId: \"gid://shopify/InventoryItem/35796083081302\", availableDelta: 0},]) {\n\n              inventoryLevels {\n                available\n              }\n            }\n          }"

headers:
{:content_type=>"application/graphql", "X-Shopify-Access-Token"=>"_", :verify_ssl=>false}
 
Response:
{
          "data" => {
        "inventoryBulkAdjustQuantityAtLocation" => {
            "inventoryLevels" => nil
        }
    },
    "extensions" => {
        "cost" => {
            "requestedQueryCost" => 10,
               "actualQueryCost" => 10,
                "throttleStatus" => {
                  "maximumAvailable" => 1000.0,
                "currentlyAvailable" => 990,
                       "restoreRate" => 50.0
            }
        }
    }
}
 
0 Likes
Kevin_A
Shopify Staff
Shopify Staff
317 42 55

Hey @Swapnil_Gadewar 

Can you provide us with the x-request-id response header?

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes