addToCart( )


Adds catalog line items to a cart.

The addToCart() function returns a Promise that resolves to the updated cart when the specified items have been added.

Note: When adding catalog items, options.lineItems.catalogReference is required.

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Restaurants - all permissions
Manage eCommerce - Admin Permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
_idstringRequired

Cart ID.


optionsAddToCartOptions

Items to be added to cart.

Returns
Return Type:Promise<AddToCartResponse>
Was this helpful?
Yes
No