Retrieving Products Auto-included to the Cart
You use this API to retrieve IDs of the products added to the cart by the auto-inclusion constraint rule.
API | Signature |
---|---|
getAutoIncludedProductIdsForCart | webService static List> getAutoIncludedProductIdsForCart(Id cartId) |
Parameters | ||
---|---|---|
Name | Type | Description |
cartId | Id | The Id of the cart you added products to. |
Response Parameter | ||
---|---|---|
Field | Type | Description |
response | List<list<ID>> | The IDs of products auto-included to the cart |
Code Sample
The sample below retrieves the ID of the products auto-included to cart by the auto-inclusion type constraint rules. The list of ID list is returned after the execution of this API. The ID list contains the ID of the condition products and the list of the ID of associated action products.
CODE