curl --location --request POST '/ssapi/event' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": {
"id": "100"
},
"session": {
"custom": "custom_session_100"
},
"context": {
"page": {
"type": "PRODUCT",
"data": [
"sku_1"
],
"location": "https://test.ru/product/sku_1"
},
"device": {
"userAgent": "Mozilla/5.0 ...",
"ip": "8.8.8.8"
}
},
"events": [
{
"name": "Purchased online",
"properties": {
"eventType": "purchase-v1",
"value": 100,
"uniqueTransactionId": "f8709115-eeaa-404d-84da-a1eeafb82e0e",
"cart": [
{
"productId": "sku_1",
"quantity": 2,
"itemPrice": 10
},
{
"productId": "sku_2",
"quantity": 1,
"itemPrice": 80
}
]
}
}
]
}'