POST

Add To Cart


Deprecation Warning

This method will be deprecated on February 1, 2027.
Replace with Add Line Items.

Replaced by Cart V2 Add Line Items.

Adds catalog line items to a cart.

Notes:

  • When adding catalog line items to a cart, the lineItems.catalogReference.appId and lineItems.catalogReference.catalogItemId fields are required.
  • After a cart is updated, call Refresh Cart to update the cart's UI elements and trigger the Cart Updated event.
Permissions
Manage eCommerce - all permissions
Manage eCommerce - Admin Permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ecom/v1/carts/{id}/add-to-cart

Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?