Langsung ke konten utama
POST
/
v3
/
stores
/
{store_id}
/
public
/
analytics
/
meta
/
events
Send a Meta Conversion API event
curl --request POST \
  --url https://api.scalev.com/v3/stores/{store_id}/public/analytics/meta/events \
  --header 'Content-Type: application/json' \
  --header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
  --data '
{
  "user_data": {
    "fn": "<string>",
    "ln": "<string>",
    "em": "<string>",
    "ph": "<string>",
    "ct": "<string>",
    "st": "<string>",
    "country": "id",
    "fbc": "<string>",
    "fbp": "<string>",
    "external_id": "<string>",
    "location_id": 123
  },
  "events": [
    {
      "event_id": "<string>",
      "event_name": "AddToCart",
      "parameters": {}
    }
  ],
  "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.

Header

X-Scalev-Storefront-Api-Key
string
wajib

Publishable storefront public API key for the target store.

Parameter Path

store_id
string
wajib

Store unique_id.

Body

application/json
user_data
object
wajib
events
object[]
wajib
Minimum array length: 1
event_source_url
string<uri> | null

Full storefront page URL for the event. The API strips query parameters before sending to Meta.

referrer_url
string<uri> | null

Browser referrer URL. The API uses this with event_source_url to choose checkout versus home storefront analytics configuration.

variants
object[]
bundle_price_options
object[]

Respons

Success with no response body