---
updatedAt: 2026-04-12T09:22:29.000Z
---

# Reject recommendations API

# Overview

The [Reject recommendations API](https://developer.walmart.com/us-marketplace/reference/rejectassortmentrecommendations-1) lets you reject items Walmart recommends. If you reject a recommended item, you won’t see it again.

# Endpoint

```text bash
PUT 
https://marketplace.walmartapis.com/v3/growth/assortment/recommendations/rejections 
```

# Functionality

This API helps to:

* Remove items from brands and categories that are no longer relevant
* Eliminate duplicate and unwanted opportunities
* Clean up recommendation dashboards

# Request sample Reject item recommendations based on filters

```curl
curl --request PUT \
     --url https://marketplace.walmartapis.com/v3/growth/assortment/recommendations/rejections \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "recommendationType": "ITEM",
  "filterCriteria": {
    "multiValueFilter": [
      {
        "parameter": "BRAND",
        "values": [
          "Disney",
          "NINTENDO"
        ]
      },
      {
        "parameter": "CATEGORY",
        "values": [
          "Toys"
        ]
      },
      {
        "parameter": "PRODUCT_TYPE",
        "values": [
          "Action Figure Sets",
          "Power Tool Batteries",
          "Action Figures"
        ]
      }
    ],
    "enumFilter": [
      {
        "parameter": "ITEM_AVAILABILITY_STATUS",
        "values": [
          "NEW_TO_WALMART",
          "EXISTING_IN_WALMART"
        ]
      },
      {
        "parameter": "SHOPPING_TRENDS",
        "values": [
          "MOST_SEARCHED_FOR",
          "BEST_SELLERS",
          "DEAL_ITEMS"
        ]
      },
      {
        "parameter": "DEMAND_SALES_TRENDS",
        "values": [
          "DEC",
          "APR",
          "NOV",
          "MAR"
        ]
      }
    ],
    "rangeFilter": [
      {
        "parameter": "PRICE",
        "to": 3
      }
    ]
  },
  "rejectionCodes": [
    "NOT_SELLING_THESE_ITEMS",
    "OTHER_REASON"
  ],
  "customRejectionMessage": "Removal of this item from other marketplace is in progress"
}
'
```
```python
import requests

url = "https://marketplace.walmartapis.com/v3/growth/assortment/recommendations"

headers = {
    "accept": "application/json",
    "content-type": "application/json",
    # Include your auth + required Walmart headers as applicable in your integration.
}

payload = {
    "recommendationType": "ITEM",
    "meta": {"limit": 2}
}

resp = requests.post(url, headers=headers, json=payload, timeout=30)
resp.raise_for_status()
print(resp.json())
```

# Request sample Reject item recommendations based on unique identifier

```curl
curl --request PUT \
     --url https://marketplace.walmartapis.com/v3/growth/assortment/recommendations/rejections \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "recommendationType": "ITEM",
  "itemRecommendationUniqueIds": [
    "000166eb-7e67-4a20-96f0-9242db499q1c",
    "47044c4f-ccb0-4b4e-8f05-20d34209fd13"
  ],
  "rejectionCodes": [
    "NOT_SELLING_THESE_ITEMS"
  ]
}
'
```
```python
import requests

url = "https://marketplace.walmartapis.com/v3/growth/assortment/recommendations"

headers = {
    "WM_GLOBAL_VERSION": "3.1",
    "WM_MARKET": "us",
    "accept": "application/json",
    "content-type": "application/json",
    # Include your auth + required Walmart headers as applicable in your integration.
}

payload = {
    "recommendationType": "ITEM",
    "meta": {
        "limit": 4,
        "nextCursor": "AoRYPgVANXFt6AeR8QUAAAAAAAAAADkxMDEwMDMwNTZBTkRBTkRCMDg3WVYxOU05"
    },
    "filterCriteria": {
        "searchText": "and",
        "multiValueFilter": [
            {"parameter": "BRAND", "values": ["Disney", "NINTENDO"]},
            {"parameter": "CATEGORY", "values": ["Toys"]},
            {"parameter": "PRODUCT_TYPE", "values": ["Action Figure Sets", "Power Tool Batteries", "Action Figures"]},
        ],
        "enumFilter": [
            {"parameter": "ITEM_AVAILABILITY_STATUS", "values": ["NEW_TO_WALMART", "EXISTING_IN_WALMART"]},
            {"parameter": "SHOPPING_TRENDS", "values": ["MOST_SEARCHED_FOR", "BEST_SELLERS", "DEAL_ITEMS"]},
            {"parameter": "DEMAND_SALES_TRENDS", "values": ["DEC", "APR", "NOV", "MAR"]},
        ],
        "rangeFilter": [
            {"parameter": "PRICE", "from": "1.0", "to": "3.5"}
        ],
        "isTopGoGetItem": True,
        "isNewRecommendation": True,
    },
}

resp = requests.post(url, headers=headers, json=payload, timeout=30)
resp.raise_for_status()
print(resp.json())
```

# Modify your code

### 1️.  Add authentication headers

Include required Walmart Marketplace authentication headers:

```curl
\--header 'Authorization: Bearer \<ACCESS_TOKEN>' \\ 
\--header 'WM_CONSUMER.ID: \<CONSUMER_ID>' \\ 
\--header 'WM_QOS.CORRELATION_ID: <unique-id>'
```

### 2️.  Choose your rejection strategy

You can reject recommendations using:

* **Filter rejection**: Bulk remove recommendations with filter criterion
* **ID rejection**: Removing specific IDs from your recommendation records

# Response sample

```json
{
  "payload": {
    "message": "The selected items will be removed shortly from the recommendations."
  }
}
```

# Result

* The specified recommendations are removed.
* theThe API confirms processing was successful.
* Rejected recommendations aren't in future recommendation retrieval calls.
* You can use the rejection filter on multiple items at once.

# Next steps

* **Get variants API**: Lists customer favorite preferences such as size, color, or material.
  * [Get variants API Guide ](https://developer.walmart.com/us-marketplace/docs/get-variants-api)
  * [Get variants API Reference Guide ](https://developer.walmart.com/us-marketplace/reference/getassortmentrecommendationvariants)
* **Get recommendations API**:  Makes suggestions about what to sell on Walmart Marketplace, based on market trends, customer-favorite items, high demand items over the past 30 days, and gaps in your product availability.
  * [Get recommendations API Guide ](https://developer.walmart.com/us-marketplace/docs/get-recommendations-api)
  * [Get recommendations API Reference Guide ](https://developer.walmart.com/us-marketplace/reference/getassortmentrecommendations-1)
* **Get categorization API**: Provides a list of brands and categories for every recommended item, then a secondary sort by alphabetical order. You can use `BRAND` or `CATEGORY` for `categorizationType`.
  * [Get categorization API Guide](https://developer.walmart.com/us-marketplace/docs/get-categorization-api)
  * [Get categorization API Reference Guide ](https://developer.walmart.com/us-marketplace/reference/getcategorizationdetailsofassortmentrecommendations-1)
* **Get recommendation trends API**: Provides data trends about your assortment on Walmart, such as price and demand trends, so you can respond quickly and maintain a competitive edge.
  * [Get recommendation trends API Guide ](https://developer.walmart.com/us-marketplace/docs/get-trends-api-1)
  * [Get recommendation trends API Reference Guide](https://developer.walmart.com/us-marketplace/reference/getassortmentrecommendationtrends-1)