Understand the requirements for listing an item
Find the right product type, download its attribute schema and check whether you can list an item.
Every item on Walmart.com belongs to a product type. The product type decides which attributes your listing must include and which values are valid. Before you create a listing, find the product type that fits your item, get its definition, and check that nothing restricts you from listing the item.
This guide covers three tasks:
- Browse the taxonomy and find a product type.
- Download the product type definition, a JSON Schema for the listing's attributes.
- Check listing restrictions for an item and condition.
Before you begin
- Get an access token with the
definitions:readscope for product type definitions and thelistings:readscope for listing restrictions. See Authentication. - Have your seller ID ready. You need it for restriction checks, and you can pass it when you get a product type definition.
Step 1: Browse the taxonomy
The taxonomy is a three-level tree: category, then product type group, then product type. Call Get taxonomy without parameters to get the full tree. To get one branch, pass the category name in category. The category name is the identifier, so use the exact category value from a previous response.
GET /definitions/v4/taxonomy?category=Electronics&locale=en_US
Authorization: Bearer <access_token>{
"categories": [
{
"category": "Electronics",
"description": "Consumer electronics",
"productTypeGroups": [
{
"productTypeGroupName": "Headphones",
"productTypes": [
{ "name": "Headphones", "displayName": "Headphones", "marketplaceIds": ["WALMART_US"] }
]
}
]
}
]
}Step 2: Search for a product type
If you don't want to walk the tree, call Search product types.
keywordsruns a substring search on product types.itemNametakes a free-text product title and returns recommended product types for it.
GET /definitions/v4/productTypes?itemName=Wireless%20over-ear%20headphones
Authorization: Bearer <access_token>{
"productTypes": [
{ "name": "Headphones", "displayName": "Headphones", "marketplaceIds": ["WALMART_US"] }
]
}Use the name value as the productType in your listing requests.
Step 3: Get the product type definition
Call Get product type definition with the product type name. Pass sellerId to scope the definition to your account.
GET /definitions/v4/productTypes/Headphones?sellerId=<seller_id>&locale=en_US
Authorization: Bearer <access_token>The response contains:
| Field | Description |
|---|---|
schema | The JSON Schema for this product type's attributes. Build your listing's attributes object from it. |
metaSchema | URI of the meta-schema the schema follows. |
requirements | Requirement rules for the product type. |
propertyGroups | Groupings of related attributes. |
Validate before you submit
Validate your attributes object against schema before you create or update a listing. You'll catch missing or malformed attributes before they come back as INVALID submissions.
Step 4: Check listing restrictions
Some items need approval, are blocked for compliance, or can't be listed in a particular condition. Call Get listing restrictions with the item's Walmart Item ID in the asin parameter, the condition you plan to sell in, your seller ID and the marketplace.
GET /listings/v4/restrictions?asin=<walmart_item_id>&conditionType=new_new&sellerId=<seller_id>&marketplaceIds=WALMART_US
Authorization: Bearer <access_token>{
"restrictions": [
{
"marketplaceId": "WALMART_US",
"conditionType": "new_new",
"reasons": [
{
"reasonCode": "APPROVAL_REQUIRED",
"message": "You need approval to list in this category.",
"links": [
{ "resource": "https://example.com/approval", "verb": "GET", "title": "Request approval" }
]
}
]
}
]
}An empty reasons array means the item isn't restricted for that condition. Otherwise, each reason has one of these codes:
reasonCode | Meaning |
|---|---|
APPROVAL_REQUIRED | You need approval before you can list the item. |
ASIN_NOT_APPLICABLE | The Walmart Item ID doesn't apply to this request. |
NOT_ELIGIBLE | The item isn't eligible for listing. |
INELIGIBLE_ITEM_CONDITION | You can't list the item in this condition. |
COMPLIANCE_BLOCKED | The item is blocked for compliance. |
HAZMAT | The item is restricted as hazardous material. |
RECALLED | The item is recalled. |
RESTRICTED_CATEGORY | The item is in a restricted category. |
When a reason includes links, follow the resource URI to resolve it, for example to request approval.
Supported conditionType values: new_new, used_like_new, used_very_good, used_good, used_acceptable, collectible_like_new, collectible_very_good, collectible_good, collectible_acceptable and refurbished_refurbished.
Errors and edge cases
- A
200response doesn't guarantee you can list. Always inspect thereasonsarray for each restriction. - Unknown product type. Getting a definition checks the product type against the live taxonomy and returns
404 Not Foundif it doesn't exist. - Unknown category. The taxonomy endpoint can return
404 Not Found. - Missing parameters.
asin,conditionType,sellerIdandmarketplaceIdsare all required for restriction checks. Leaving one out returns400 Bad Request. - Rate limits. All three APIs can return
429 Too Many Requests. Back off and retry. - Error responses use a problem-details body with an
errorsarray. Each entry has acodeandmessage, and can includedetailsandpointer.
