add_item_to_cart
Add products to shopping cart with automatic cart creation
Add products and gift certificates to your shopping cart. If no cart exists, this tool will automatically create a new cart and add the items to it. Perfect for starting a new shopping session or adding more items to an existing cart.
Use this tool when customers want to:
Add new products to their cart
Start shopping by adding their first item
Add gift certificates to their purchase
Add multiple items in a single operation
Features:
Automatic cart creation if none exists
Support for both regular products and gift certificates
Multi-currency and multi-locale support
Batch operations for adding multiple items at once
Handles product variants, quantities, and custom properties
Flow:
Call 'search_products' tool to find products by search term.
Call 'get_product_details' tool to get product variants and images.
Call 'add_item_to_cart' tool to create new cart with item
Call 'create_checkout_url' tool to generate a checkout URL for the cart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes | ||
| message | No | ||
| success | Yes |