Highest Discounted Products
  • 07 Feb 2024
  • 1 Minute to read

    Highest Discounted Products


      Article Summary

      Overview

      This algorithm recommends items by sorting items regarding their discount ratio. It recommends products in order regarding their discount ratios. When the original price and discounted price are received, the discount ratio for each product is calculated. Recommended products will be sorted from the highest discount to the lowest for the given size. For each currency type, the discount ratio is calculated separately. This type of algorithm works best on main and category pages.

      Endpoint

      GET https://recommendation.api.useinsider.com/v2/highest-discounted

      Query Parameters

      ParameterSample ValueDescriptionData TypeRequired
      partnerNamemybrandPartner Identifier which is assigned by Insider. You can use PartnerID as well.StringYes
      localeus_USLocale of requested product catalog.
      StringYes
      platformwebRequested platform. Web comes by default.EnumNo
      currencyUSDRequested currency of the products. If no value is set, the default currency in your settings is used.StringYes
      userIda1b2c3d4User identifier which is assigned by Insider.StringNo
      size
      50Required number of items in response. Valid values are 0 to 100.
      IntegerNo
      categoryList
      [“Clothes”, “Skirts”]
      Category filter of the productsArray (of string)
      No
      filter
      Smart Recommender filtering. There can be more than one filter parameter.
      StringNo
      detailstrueAdds details to the products of the response.BooleanNo
      shufflefalseShuffles the products of the response.BooleanNo
      getGroupProductsfalseShows variant products under the products of the response.
      BooleanNo
      groupProductsFields

      Adds these fields to the variant products’ details.
      StringNo
      excludeVariants
      trueExclude variants from response.
      BooleanNo
      Your title goes here
      If you want to get top sellers products from category or categories you want, you should specify either categoryList or category and subCategory.

      Sample Example

      Sample Request

      GET https://recommendation.api.useinsider.com/v2/highest-discounted?partnerName={Partner Name}&locale={Locale}&size=5&currency={Currency}

      Sample Response

      {
          "success": true,
          "total": 5,
          "types": {
              "hdop": 5
          },
          "data": [
              "AB76543",
              "AB54321",
              "YZ76543",
              "AB49876",
              "AB01234"
          ]
      }

      Fallback Algorithms

      If the products come from Highest Discounted Products are not enough to fill the response data, some fallback algorithms below fill it:

      • Highest discounted products of category without excluding right most item in the categoryList

      Was this article helpful?

      ESC

      Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses