curl --request POST \
--url https://api.scalev.com/v3/stores/{store_id}/public/analytics/snackvideo/events \
--header 'Content-Type: application/json' \
--header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
--data '
{
"click_id": "<string>",
"events": [
{
"event_name": "addToCart",
"properties": {
"content_type": "<string>",
"content_category": "<string>",
"content_name": "<string>",
"currency": "IDR",
"value": 123,
"quantity": 123,
"price": 123,
"query": "<string>",
"mapping_id": "<string>"
}
}
],
"event_source_url": "<string>",
"referrer_url": "<string>",
"variants": [
{
"variant_unique_id": "<string>",
"quantity": 2
}
],
"bundle_price_options": [
{
"bundle_price_option_unique_id": "<string>",
"quantity": 2
}
]
}
'{
"error": {},
"error_code": "<string>",
"message": "<string>",
"errors": {}
}Public storefront endpoint. Sends browser-collected conversion events through Scalev using the SnackVideo server pixels configured on the store’s hosted storefront analytics setup. The store path selects the storefront; do not send a custom domain to identify the store. A 204 means the payload was accepted for asynchronous delivery.
curl --request POST \
--url https://api.scalev.com/v3/stores/{store_id}/public/analytics/snackvideo/events \
--header 'Content-Type: application/json' \
--header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
--data '
{
"click_id": "<string>",
"events": [
{
"event_name": "addToCart",
"properties": {
"content_type": "<string>",
"content_category": "<string>",
"content_name": "<string>",
"currency": "IDR",
"value": 123,
"quantity": 123,
"price": 123,
"query": "<string>",
"mapping_id": "<string>"
}
}
],
"event_source_url": "<string>",
"referrer_url": "<string>",
"variants": [
{
"variant_unique_id": "<string>",
"quantity": 2
}
],
"bundle_price_options": [
{
"bundle_price_option_unique_id": "<string>",
"quantity": 2
}
]
}
'{
"error": {},
"error_code": "<string>",
"message": "<string>",
"errors": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.scalev.com/llms.txt
Use this file to discover all available pages before exploring further.
Publishable storefront public API key for the target store.
Store unique_id.
SnackVideo click ID.
1Show child attributes
Optional full storefront page URL used to choose checkout versus home storefront analytics configuration.
Optional browser referrer URL used to choose checkout versus home storefront analytics configuration.
Show child attributes
Show child attributes
Success with no response body
Apakah halaman ini membantu?