Add to cart
add_to_cartPreview a product and confirm to add it to your cart with selected quantity; handles option selection automatically.
Instructions
Add a product to the cart. With confirm=false (default) it does NOT add — it returns a preview of the target product for the user to verify; call again with confirm=true to actually add. Products requiring option selection are added with the default option, or an explanation is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| confirm | No | Only adds when true; false returns a preview | |
| quantity | No |