post

/shopgate.cart.addProducts.v1

Adds one or multiple products to the cart. Cart rules are applied, if the shop supports them and are set up for at least one product to be added (or already placed in the cart).

Note: Depending on the installed extensions, custom errors can be returned on failure.

Request Body

Schema
array[object]
productId
string
1 validation
quantity
number
1 validation
options
array[object]
metadata
object

Holds additional information about a specific product of any type. The contents of the object can vary.

1 validation

Responses

Returns an empty object after the action was performed.

1 Example
Schema
object
output
object
required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
host