Return 10 items
If you don't include any parameters in your call, Walmart returns only 10 items for each request. You might use this option if you have 10 or fewer items.
Endpoint
GET https://marketplace.walmartapis.com/v3/inventories
Sample request
curl -X GET "https://marketplace.walmartapis.com/v3/inventories" \ -H "Authorization: Basic <Base64EncodedConsumerKey:ConsumerSecret>" \ -H "WM_SVC.NAME: Walmart Marketplace" \ -H "WM_QOS.CORRELATION_ID: 1234567890" \ -H "Accept: application/json" \ -H "Content-Type: application/json"
import requests url = "https://marketplace.walmartapis.com/v3/inventories" headers = { "Authorization": "Basic <Base64EncodedConsumerKey:ConsumerSecret>", "WM_SVC.NAME": "Walmart Marketplace", "WM_QOS.CORRELATION_ID": "1234567890", "Accept": "application/json", "Content-Type": "application/json"
} response = requests.get(url, headers=headers)
print("Status code:", response.status_code)
print("Response JSON:", response.json())
Sample response (up to 10 items)
{ "meta": { "totalCount": 10, }, "elements": { "inventories": [ { "sku": "SKU0001", "nodes": [ { "shipNode": "NODE0001", "inputQty": { "unit": "EACH", "amount": 100 }, "availToSellQty": { "unit": "EACH", "amount": 95 }, "reservedQty": { "unit": "EACH", "amount": 5 } }, { "shipNode": "NODE0002", "inputQty": { "unit": "EACH", "amount": 200 }, "availToSellQty": { "unit": "EACH", "amount": 198 }, "reservedQty": { "unit": "EACH", "amount": 2 } } ] }, { "sku": "SKU0002", "nodes": [ { "shipNode": "NODE0002", "inputQty": { "unit": "EACH", "amount": 50 }, "availToSellQty": { "unit": "EACH", "amount": 45 }, "reservedQty": { "unit": "EACH", "amount": 5 } } ] } ] }
}
Result
The response contains a meta
section with the total count (10) and a nextCursor
for pagination. The elements section includes an array of inventory objects for each SKU, including node-level details such as input quantity, available-to-sell quantity, and reserved quantity.
Next step
Update the inventory for items in bulk.
Updated 11 days ago