Portfolio Supported AIs Solutions Tasks Email Archive Bring Your Own Code Integrations Pricing

Get Started

ChatGPT

ChatGPT

Start directly →

Ready
Claude

Claude

Directory Connector →

Ready
Mistral

Mistral

Directory Connector →

Ready

Dashboard Always available
Shopping Cart

Shopping Cart

⚡ Built-in — Platform Built-in

Manage shopping carts with price snapshots, quantity tracking, and cart merging. Works with any product-catalog setup. Cart identified by token (frontend) or ID (API).

⚡ Built-in — No Setup Required This integration is built into the WebsitePublisher platform. All endpoints are available immediately — no API key needed.

Try it with your AI assistant

Once WebsitePublisher is connected to your AI assistant, paste one of these into the chat.

@WebsitePublisher add an add-to-cart button to my product pages and a cart page where customers can change quantities
@WebsitePublisher show a cart icon in my menu with the number of items in the cart
With WebsitePublisher, add an add-to-cart button to my product pages and a cart page where customers can change quantities
With WebsitePublisher, show a cart icon in my menu with the number of items in the cart
With WebsitePublisher, add an add-to-cart button to my product pages and a cart page where customers can change quantities
With WebsitePublisher, show a cart icon in my menu with the number of items in the cart

Endpoints (10)

POST add-item

Add a product to the cart. Creates a new cart if no cart_token provided. Takes a price snapshot from the product catalog. Merges into an existing line when product_id + variant_id + line_attributes all match; otherwise adds a new line. Each new line gets its own line_id in the response. Fails with 409 MAX_ORDER_QUANTITY when the per-order maximum of the product would be passed (error.context.max_order_quantity holds it).

No input parameters required.

PUT update-item

Update item quantity in the cart. Set quantity to 0 to remove the item. A quantity above the per-order maximum of the product fails with 409 MAX_ORDER_QUANTITY. When a product/variant has more than one line (because they carry different line_attributes) you MUST pass line_id to pick the line; with a single line it is optional.

No input parameters required.

DELETE remove-item

Remove an item from the cart entirely. When a product/variant has more than one line, pass line_id to pick which one.

No input parameters required.

GET get-cart

Get the current cart with recalculated totals. Lookup by cart_token, cart_id, or session_id.

No input parameters required.

GET price-items

Price a transient set of line items using the exact same tier (volume) pricing logic and shape as get-cart, WITHOUT creating or mutating a cart. For price previews (e.g. a configurator) before add-to-cart. Duplicate lines are merged and quantities summed exactly like add-item: lines with different line_attributes stay separate, so a configurator preview splits the same way the real cart will.

No input parameters required.

DELETE clear-cart

Remove all items from the cart. Cart remains active (not deleted).

No input parameters required.

POST merge-cart

Merge an anonymous cart into an authenticated cart. Use after visitor login. Source cart is abandoned, items merged into target. Lines over a per-order maximum are lowered to it, with a warning in the response.

No input parameters required.

GET get-config

Read the cart settings: max_qty_keys (product-metadata keys that hold a per-order maximum) and max_qty_default (shop-wide maximum per product per order). The max_order_quantity field of a product (product-catalog) always wins.

No input parameters required.

POST set-config

Set the per-order maximum fallbacks. Only the fields you send change; null or [] clears. A limit counts per product over all cart lines: add-item and update-item above it fail with 409 MAX_ORDER_QUANTITY, merge-cart lowers the quantity with a warning, initiate-checkout checks again.

No input parameters required.

MCP Tool Names

When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:

EndpointMCP Tool Name
add-item shopping-cart_add_item
update-item shopping-cart_update_item
remove-item shopping-cart_remove_item
get-cart shopping-cart_get_cart
price-items shopping-cart_price_items
clear-cart shopping-cart_clear_cart
merge-cart shopping-cart_merge_cart
link-visitor shopping-cart_link_visitor
get-config shopping-cart_get_config
set-config shopping-cart_set_config
← Back to all integrations