Add a product to a cart
One step with Medusa. We can help you get access.
Get something done
Add a product to a cart
with Medusa · Cart & Checkout
Works with AI assistants
Use Medusa: its Medusa Storefront Carts API lets you add a product to a cart in a single step (POST /store/carts/{id}/line-items). Medusa also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I add a product variant to a cart?
- Can I add several units of an item to a cart?
Say it to your AI assistant
- Add {quantity} of variant {variant_id} to cart {id}.
- Put {quantity} units of {variant_id} in cart {id}.
For your developer
POST /store/carts/{id}/line-items in Medusa Storefront Carts API. Full spec on APIs.io.