Add to cart
suppco_add_to_cartAdd a Buying Club product to the signed-in user's cart (the same cart as the SuppCo app). Use a product ID or slug from suppco_find_buying_club_products or suppco_compare_to_buying_club; only Buying Club products can be added. Set subscription to true for a recurring subscription at the product's recommended shipping interval. Returns the updated cart. This adds to any quantity already in the cart, so calling it again adds more units; to set an exact quantity, use suppco_update_cart_item.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Number of units to add (default 1). | |
| subscription | No | true to subscribe (recurring delivery), false for a one-time purchase (default false). | |
| product_id_or_slug | Yes | SuppCo product ID (UUID) or slug of a Buying Club product. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes |