Click notification¶
The click notification is to be sent with a ticket when the visitor clicks on a product, an ad or in some special cases on a category. The ticket is a unique string for an object generated by Elevate.
Method¶
POST
URL format¶
/api/v2/notifications/click?esales.market={market}&esales.customerKey={customerKey}&esales.sessionKey={sessionKey}
Parameters¶
Name | Type | Description | Example |
---|---|---|---|
esales.market | string | Visitor Market | Sweden |
esales.customerKey | string | Visitor id. UUID / GUID. | 5G7HJ...R77T1 |
esales.sessionKey | string | A unique id. UUID / GUID. | 2F75A...EAFA6 |
ticket | string | Unique ticket for the Elevate object. | L2RvY...ztDMDs |
Request body¶
{
"ticket": "string"
}
Request content-type¶
application/json
Response content-type¶
N/A
Responses¶
Response | Description |
---|---|
204 | Notifications was received successfully. |
400 | Invalid or missing required arguments. |
5xx | Server error such as cluster unavailable or busy. The response body may contain more information about the error. |
Example¶
Request¶
request-body.json¶
{
"ticket": "Oy9keW5hbWljLXBhZ2VzL3N0YXJ0L2VzYWxlcy1zdGFydC0xOyM7cHJvZHVjdF9rZXk7UF8xMjUzODMtMDAxNF9VSzsjOztOT05FOk5PTkU7NjE7"
}
cURL¶
#!/bin/bash
curl -i \
-X POST \
-T request-body.json \
-H "Content-Type: application/json" \
"https://{cluster-id}.api.esales.apptus.cloud/api/v2/notifications/click?esales.market=UK&esales.customerKey=d9528030-509c-4e0f-b585-7168f1e9feca&esales.sessionKey=b106299c-eac0-4f6f-96d2-93e57c255784"
Response¶
HTTP/2 204 No Content