Recentviews
Displays the recently viewed product by the site visitor.
Recent views by your shoppers
End Point
GET
https://api.cartup.ai/v1/widgetserver/recentviews
Query Parameters
Name
Type
Description
divisionId*
String
HTLM tag id (need to be unique)
spotDy_uid*
String
User ID
orgId*
String
Your Org ID
domain*
String
Your Domain
Headers
Name
Type
Description
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": 2,
"success": "0",
"widgetType": "recentviews",
"widgetName": "Recent views",
"products": [
{
"name": "Nora Practice Tank",
"sku": "WT03",
"price": "39",
"smallImage": "http://mdev.ecomtics.nl//pub/media/catalog/product/w/t/wt03-red_main_1.jpg",
"currentPageUrl": "http://mdev.ecomtics.nl/nora-practice-tank.html"
},
{
"name": "Ana Running Short",
"sku": "WSH10",
"price": "40",
"smallImage": "http://mdev.ecomtics.nl//pub/media/catalog/product/w/s/wsh10-black_main_1.jpg",
"currentPageUrl": "http://mdev.ecomtics.nl/ana-running-short.html"
}
],
"customValues": {}
}
Curl Example
curl --request GET 'http://api.cartup.ai/v1/widgetserver/recentviews?domain=magento&divisionId=demo_recent&orgId=850a8b8f-a6fe-49e4-88fc-874843279d66&spotDy_uid=0526f7c2-33a1-467e-9815-57566296a69b'
--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
Was this helpful?