Home > @vsf-enterprise/bigcommerce-api > Endpoints > updateCartItem

# Endpoints.updateCartItem() method

Updates the list price or the quantity of an item from the cart

Signature:

updateCartItem(context: BigcommerceIntegrationContext, params: UpdateLineItemParameters): Promise<UpdateLineItemResponse>;

# Parameters

Parameter Type Description
context BigcommerceIntegrationContext An auto-generated value prepended to the method as a first parameter.
params UpdateLineItemParameters An object which contains necessary properties for updating a cart item.

Returns:

Promise<UpdateLineItemResponse>