Update inventory

Call this endpoint to update the inventory quantity for a single SKU at a specific ship node. Use this endpoint to make changes to a product's inventory levels without affecting other SKUs.

Note: This page describes an example using only the required parameters and inputs for inventory updates. For a full list of customization options and additional capabilities, refer to the Walmart Inventory API Reference.

Endpoint

PUT https://marketplace.walmartapis.com/v3/inventory

Sample request

This sample request updates the inventory for one SKU. The JSON payload includes the SKU, the quantity (with unit and amount), and the inventory available date. If no ship node is specified, the update applies to the default node.

curl -X PUT "https://marketplace.walmartapis.com/v3/inventory" \ -H "Authorization: Basic <Base64EncodedConsumerKey:ConsumerSecret>" \ -H 'WM_MARKET: cl' \ -H "WM_SVC.NAME: Walmart Marketplace" \ -H "WM_QOS.CORRELATION_ID: 1234567890" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "quantity": { "unit": "EACH", "amount": 1234" }, "sku": "SKU_0001" }' 
import requests url = "https://marketplace.walmartapis.com/v3/inventory" payload = { "quantity": { "unit": "EACH", "amount": 1234 }, "sku": "SKU_0001"
} headers = { "Authorization": "Basic <Base64EncodedConsumerKey:ConsumerSecret>", "WM_SVC.NAME": "Walmart Marketplace", "WM_QOS.CORRELATION_ID": "0123456789", "Accept": "application/json", "Content-Type": "application/json"
} response = requests.put(url, json=payload, headers=headers)
print("Status code:", response.status_code)
print("Response JSON:", response.json()) 

Modify your code

  1. Replace SKU_0001 with your actual SKU.
  2. Update amount with your desired inventory level.
  3. Insert your actual Base64-encoded credentials in the Authorization header.
  4. Use your own unique WM_QOS.CORRELATION_ID if needed.

Sample response

{ "sku": "SKU_0001", "quantity": { "unit": "EACH", "amount": 1234 }
}

Result

If successful, the API returns HTTP status: 200 OK with a JSON response confirming the SKU update, including the updated quantity and inventory available date.