Purchased with Last Purchased

Prev Next

The Purchased with Last Purchased algorithm is one of Insider's personalized algorithms. It recommends the purchased products along with the user’s last purchased product. Purchase events can be collected from Web, Mobile, and Offline (CRM) UCD events. It is available on Web Smart Recommender, API-based Recommender, and App Recommender.

Endpoint

GET https://recommendation.api.useinsider.com/v2/last-purchased-together

Query Parameters

ParameterSample ValueDescriptionData TypeRequired
partnerId1000001Partner Identifier assigned by InsiderStringYes
localeus_USLanguage or region of the siteStringYes
currencyUSDShows products with the specified currencyStringYes
userIda1b2c3d4User identifier that is assigned by InsiderStringYes
platformwebRequested platform. Web comes by default.StringNo
detailstrueAdds item details to the responseBooleanNo
hpfalseHyper-personalization activationBooleanNo
size50Required number of items in response. The maximum allowed size is 100.IntegerNo
shufflefalseShuffle the products in the responseBooleanNo
excludeVariantstrueExclude variants by the same group ID. If the panel setting is true for this feature, the parameter will always be true. Otherwise, it depends on the parameter. The default value is false.BooleanNo
excludePurchaseDay30Exclude items the user purchased in X daysIntegerNo
excludeViewDay30Exclude items the user viewed in X daysIntegerNo
excludePurchaseItem100The number of purchased products to excludeIntegerNo
excludeViewItem100The number of viewed products to excludeIntegerNo
productIdABC123CBACurrent product IDStringNo
filter
Smart Recommender filtering. There can be more than one filter parameter.StringNo
categoryList[“Clothes”, “Skirts”]Category filters of the productArray (of string)No
getGroupProductstrue, falseShows variant products under the products of the responseBooleanNo
groupProductsFieldsname, categoryAdds these fields to the variant products’ detailsStringNo
dayLimit7Threshold last update day value for Publisher partners. The default is 2 days.IntegerNo

Sample Request

The sample below displays a request to Purchased with Last Purchased, one of Insider’s personalized recommendation algorithms.

GET https://recommendation.api.useinsider.com/v2/last=purchased-together?partnerName={PartnerName}&locale={Locale}&userId={UserId}&currency={Currency}

Sample Response

{
  "success": true,
  "total": 10,
  "types": {
    "lpt": 10
  },
  "data": [
    "QAZ-7890",
    "XYZ-1234",
    "QAZ-7899",
    "XYZ-1233",
    "QAZ-7898",
    "XYZ-1243",
    "QAZ-7891",
    "XYZ-1223",
    "QAZ-7892",
    "XYZ-1342"
  ]
}

Fallback Algorithms

Due to its nature, the Purchased with Last Purchased Algorithm doesn’t have a fallback algorithm. However, you can always tune it by configuring the minimum number of products to be displayed in the Recommendation carousel in the Recommendation Strategies.