When the user opens a product card, the information about the product is transmitted.
History: The user opened a product card
Transmission method: POST
Format: JSON
URL: /api/events/navigationStructure:
{
"user_agent": string (contents of User-Agent header: taken from the current request, if it exists),
"products": [
{
"product_id": string ,
"product_name": string ,
"product_desc": string ,
"product_sku": string ,
"product_image": string ,
"product_url": string ,
"product_qty": integer ,
"product_price": integer ,
"product_total_val": integer ,
"product_categories": [
string,
string,
…
]
}
],
"customer": {
"device_id": string (device hash, can be retrieved from the FingerprintJS library),
"device_id_1": string (device ID, can be retrieved from the ClientJS library),
"customer_id": string ,
"customer_first_name": string ,
"customer_last_name": string ,
"customer_email": string ,
"customer_date_created": string
}
} |
Example:
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36",
"products": [
{
"product_id": "421",
"product_name": "Elizabeth Knit Top",
"product_desc": "Loose fitting from the shoulders, open weave knit top. Semi sheer. Slips on. Faux button closure detail on the back. Linen/Cotton. Machine wash.",
"product_sku": "wbk012c",
"product_image": "https://1924magento.triggmine.com.ua/media/catalog/product/cache/1/image/265x/9df78eab33525d08d6e5fb8d27136e95/w/b/wbk012t.jpg",
"product_url": "https://1924magento.triggmine.com.ua/elizabeth-knit-top-596.html",
"product_qty": 1,
"product_price": 210,
"product_total_val": "210.0000",
"product_categories": [
"New Arrivals",
"Tops & Blouses"
]
}
],
"customer": {
"device_id": "4c3d48512d48b2603092b5a45ba74c8c",
"device_id_1": "465060737",
"customer_id": "980",
"customer_first_name": "Max",
"customer_last_name": "Riabchynskyi",
"customer_email": "mr@triggmine.com",
"customer_date_created": "2016-09-08 10:20:37"
}
} |