Remove Recent Searches¶
https://{cluster-id}.api.esales.apptus.cloud/api/storefront/v3/notifications/remove-recent-searches
POST¶
The remove recent searches notification is to be sent when a visitor wants to clear recent search phrases. The notification may take a few seconds to take effect, and therefore it's suggested to withhold presenting any recent searches for up to 10 seconds after sending a remove recent searches notification.
Request¶
Header parameters¶
Name | Description | Example |
---|---|---|
Accept-Encoding | Allows responses to be compressed using Gzip. | gzip |
Query parameters¶
Name | Description | Example |
---|---|---|
customerKey Required | A key that uniquely identifies the current visitor. Using UUIDs as keys are recommended | e3921377-18a2-47c9-a449-06b894898623 |
market Required | Must match the corresponding market identifier in the data feed. | UK |
sessionKey Required | A unique key, identifying the session. Using UUIDs as keys are recommended. Required | 0b05119e-eeb8-418a-bbfb-defa0dde417e |
Supported Content-Type¶
application/json;charset=utf-8
text/plain;charset=utf-8
Request body¶
Example
{
"phrases" : [ "test phrase to remove" ],
"removeAll" : true
}
Schema
RemoveRecentSearchesNotification¶
The remove recent searches notification should be sent when a visitor (specified by "customerKey") wishes to remove recently searched phrases.
Name | Type | Description | Example |
---|---|---|---|
phrases | string[] | Array with recent search phrases to remove. Optional if property "removeAll" is true. | "test phrase to remove" |
removeAll | boolean | Whether all recent search phrases should be removed. Optional and defaults to false if property "phrases" is provided. |
curl -i \
-X POST \
-H 'Accept-Encoding: gzip' \
-H 'Content-Type: application/json;charset=utf-8' \
"https://{cluster-id}.api.esales.apptus.cloud/api/storefront/v3/notifications/remove-recent-searches?customerKey=e3921377-18a2-47c9-a449-06b894898623&market=UK&sessionKey=0b05119e-eeb8-418a-bbfb-defa0dde417e" \
-T request-body.file
Response¶
Response codes¶
Status | Description |
---|---|
204 | Notification was received successfully. |
400 | Invalid or missing required arguments. |
500 | Server error such as cluster unavailable or busy. The response body may contain more information about the error. |