Remove from cart
suppco_remove_from_cartDestructiveIdempotent
Remove a product from the signed-in user's cart, or set remove_unavailable to true to clear items that are no longer available. Removing a product removes every cart line for it, one-time and subscription. Returns the updated cart.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id_or_slug | No | SuppCo product ID (UUID) or slug of the product to remove, as shown by suppco_get_my_cart. | |
| remove_unavailable | No | true to remove every item that is no longer available (the stale items suppco_get_my_cart lists). |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes |