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
example: 10080466570
quantity
number
example: 1
properties
array[object]
type
string
2 validations + required
id
string

Id of the property, to which the selection belongs to.

1 validation + required
value
string

Content depends on the property type. It’s either the value-id of a selected property value for options or the text that was entered for inputs.

1 validation + required
metadata
object

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

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