Return up to 50 items
If you have more than 10 items, Walmart can return up to 50 items in a single call. You might use this if you have 50 or fewer items.
Sample request
curl -X GET "https://marketplace.walmartapis.com/v3/inventories?limit=50" \ -H "Authorization: Basic <Base64EncodedConsumerKey:ConsumerSecret>" \ -H "WM_SVC.NAME: Walmart Marketplace" \ -H "WM_QOS.CORRELATION_ID: 0123456789" \ -H "Accept: application/json" \ -H "Content-Type: application/json"
import requests url = "https://marketplace.walmartapis.com/v3/inventories"
params = { "limit": 50
} headers = { "Authorization": "Basic <Base64EncodedConsumerKey:ConsumerSecret>", "WM_SVC.NAME": "Walmart Marketplace", "WM_QOS.CORRELATION_ID": "0123456789", "Accept": "application/json", "Content-Type": "application/json"
} response = requests.get(url, headers=headers, params=params)
print("Status code:", response.status_code)
print("Response JSON:", response.json())
Sample response (up to 50 items)
{ "meta": { "totalCount": 50, "nextCursor": "0123abcd4567efgh8901" }, "elements": { "inventories": [ // Up to 50 SKU inventory objects, each with their respective nodes ] }
}
Result
The response shows that up to 50 items are returned and includes a nextCursor
value ("0123abcd4567efgh8901") if additional pages of data exist.
Next step
Update the inventory for items in bulk.
Updated 9 days ago