Skip to main content
POST
Register an add-to-cart event

Path Parameters

widget_id
string<uuid>
required

Unique identifier for the widget

Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json
session_id
string
required

Session identifier for tracking user behavior

Example:

"b2b89619844f4eb0b5fa19f28a19d679"

dfid
string
required

Doofinder's unique ID for the item added to the cart

Example:

"123e4567e89b12d3a456426614174000@product@e7b7a6c35b2d4afc94991bfc8100227a"

title
string
required

The item title

price
number<float>
required

The item price

amount
integer

Quantity added to the cart (optional, default 1)

Example:

1

Response

Add-to-cart event processed, check the status field for the outcome

status
enum<string>
Available options:
OK,
ERROR
Example:

"OK"