Actions overview
| Action | Description |
|---|---|
BasketItemAdd | Adds a product to the basket. |
BasketItemUpdate | Updates the quantity of a product in the basket. |
BasketItemDelete | Removes a product from the basket. |
VoucherAdd | Redeems a voucher code in the basket. |
VoucherDelete | Removes a redeemed voucher from the basket. |
Actions
BasketItemAdd
This action adds a product to the basket. Usage exampleCan be used on product detail, category, or watchlist pages where products can be added directly to the basket. Parameters
| Name | Description |
|---|---|
productId | The ID of the product to be added to the basket. |
quantity | The desired quantity of the product. |
freeFieldscategoryPath | Optional free field for passing the category path, e.g., for tracking purposes. |
| Error code | Description |
|---|---|
missingProductId | Parameter productId is missing. |
invalidProductId | The product does not exist or is not available. |
BasketItemUpdate
This action updates the quantity of a product already in the basket. Usage exampleCan be used on the basket page or in the basket offcanvas when customers want to adjust the quantity of a product that has already been added. Parameters
| Name | Description |
|---|---|
basketItemId | The ID of the basket entry whose quantity is to be updated. |
quantity | The new quantity of the product. |
| Error code | Description |
|---|---|
missingBasketItemId | Parameter basketItemId is missing. |
invalidBasketItemId | The basket entry does not exist or does not belong to this basket. |
missingQuantity | Parameter quantity is missing. |
BasketItemDelete
This action removes a product from the basket. Usage exampleCan be used on the basket page or in the basket offcanvas when customers want to remove a product completely from the basket. Parameters
| Name | Description |
|---|---|
basketItemId | The ID of the basket entry to be removed. |
productId | The ID of the product to be removed. |
quantity | The current quantity of the product. |
| Error code | Description |
|---|---|
missingBasketItemId | Parameter basketItemId is missing. |
invalidBasketItemId | The basket entry does not exist or does not belong to this basket. |
