addtocart

/beacon/v2/{siteId}/search/addtocart

This event should be triggered when a shopper lands on a search results page where Searchspring search results are rendered, and adds a result to the cart via a Quick Add to Cart button. If frontend Quick Add to Cart is not implemented, omit usage of this endpoint.

Path Params
string
required

Customer siteId found in the Searchspring Management Console

Body Params

Results payload

context
object
required

Contextual data about the event

data
object
required

Event details

Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json