Skip to content

Record a WhatsApp button click (public)​

POST
/public/whatsapp-clicks

Storefront ingest for the "Commander via WhatsApp" button. Called by the web storefront and the mobile app, normally via navigator.sendBeacon, at the moment the shopper leaves for WhatsApp.

The distribution channel is taken from the X-Channel header (web | mobile), the marketplace tenant from the usual storefront resolution. A body naming a vendor that does not exist is rejected — no orphan rows.

Auth: none (public).

Parameters​

Header Parameters

X-Channel

Distribution channel the click came from. Absent header defaults to web.

Type
string
Valid values
"web""mobile"
Default
"web"

Request Body​

application/json
JSON
{
  
"vendorId": "vnd_exemple",
  
"productId": "prd_fd953fa611d3a989670c883b",
  
"variantId": "string",
  
"placement": "other",
  
"sessionHash": "string",
  
"referrerPath": "string"
}

Responses​

Click accepted (nothing to return — the caller has already navigated away).

application/json
JSON
{
  
"ok": true
}

Playground​

Headers
Body

Samples​

Powered by VitePress OpenAPI

Tarifs : contactez-nous — contact@marketkit.ai