addtocart

/beacon/v2/{siteId}/recommendations/addtocart

Shopper adds a Searchspring personalized recommendation result to the cart via a Quick Add to Cart button in the rendered product card. If frontend Quick Add to Cart is not implemented, omit usage of this endpoint.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
[a-z0-9]{6}

Customer siteId found in the Searchspring Management Console

Body Params

Recommendations payload

context
object
required

Contextual data about the event

data
object
required

Event details

Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

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