Category Based Recommendations

Recommend product in the same category as the product currently being viewed.

End Point

GET https://api.cartup.ai/v1/widgetserver/categoryreco

Query Parameters

NameTypeDescription

divisionId*

String

HTLM tag id (need to be unique)

orgId*

String

Your Org ID

domain*

String

Your Domain

sku*

String

Stock keeping unit

Headers

NameTypeDescription

Accept*

String

application/json

Content_type*

String

application/json

X-Cartup-Access-Token*

String

$CARTUP_API_KEY

X-Cartup-orgId *

String

$CARTUP_ORD_ID

{
   "errMsg":null,
   "numberofdocs":10,
   "success":0,
   "widgetType":"Category Based Recommendation",
   "widgetName":"Recommendations for You",
   "products":[
      {
         "name":"Olivia 1/4 Zip Light Jacket",
         "sku":"WJ12",
         "price":77,
         "smallImage":"string",
         "currentPageUrl":"string"
      }
   ]
}

Curl Example

curl --request GET 'https://api.cartup.ai/v1/widgetserver/categoryreco?divisionId=mdev_catreco&sku=WJ04&orgId=850a8b8f-a6fe-49e4-88fc-874843279d66&domain=magento'
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'X-Cartup-Access-Token: $CARTUP_API_KEY'
  --header 'X-Cartup-orgId : $CARTUP_ORD_ID'

Last updated