View Merchandising Data in the API Response

Discovery Search and Category API allows you to fetch merchandising operation details directly on the API response. This lets you gain a deeper understanding of the results and empowers you with a valuable tool to debug via the API.

The feature currently exposes Product Slot data in the response. To view the slot information, pass the following URL debug parameter in the Search and Category API request:

merchandising_rules.debug=product_slot

Here is a sample response for slot information returned in the “merchandising_debug” component:

{
   "merchandising_debug":{
      "ranking":{
         "product_slots":[
            {
               "slot":1"ID":"1106359"
            },
            {
               "slot":2"ID":"2095135"
            }
         ]
      }
   }
}