updateCart( )

Updates a specified cart's properties.

The updateCart() function returns a Promise that resolves when the specified cart's properties are updated.

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

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

ID of the cart to be updated.


optionsUpdateCartOptions

Available options to use when updating a cart.

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