Inventory area. With these actions, product reservations can be renewed and back-in-stock notifications can be managed.
Actions overview
| Action | Description |
|---|---|
InventoryReserve | Renews the reservation of a product in the basket. |
BackInStockActivateNotify | Activates a notification when a product is available again. |
BackInStockDeactivateNotify | Deactivates an existing back-in-stock notification. |
Actions
InventoryReserve
This action renews the reservation of a product in the basket. It is only relevant if the reservation duration of an item has expired and the customer wants to extend the reservation. Usage exampleCan be used on the basket page when the reservation time of an item has expired and the customer should be given the option to renew the reservation. Parameters
| Name | Description |
|---|---|
basketItemId | The ID of the basket entry whose reservation should be renewed. |
| Error code | Description |
|---|---|
missingBasketItemId | Parameter basketItemId is missing. |
invalidBasketItemId | The basket entry does not exist or does not belong to this basket. |
reservationFailed | The reservation could not be renewed, e.g., because the product is no longer available. |
BackInStockActivateNotify
This action activates a notification that informs the customer by email as soon as a sold-out product is available again. Usage exampleCan be used on the product detail page when a product is sold out and the customer wants to be notified as soon as it can be ordered again. Parameters
| Name | Description |
|---|---|
productId | The ID of the product for which the notification should be activated. |
email | The email address to which the notification should be sent. |
| Error code | Description |
|---|---|
missingProductId | Parameter productId is missing. |
missingEmail | Parameter email is missing. |
emailCheckFailed | The specified email address is invalid. |
BackInStockDeactivateNotify
This action deactivates an existing back-in-stock notification. Usage exampleCan be used on the account overview page, where logged-in customers can view and remove their active notifications. Parameters
| Name | Description |
|---|---|
productId | The ID of the product for which the notification should be deactivated. |
email | The email address for which the notification should be deactivated. |
| Error code | Description |
|---|---|
missingProductId | Parameter productId is missing. |
missingEmail | Parameter email is missing. |
