You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
updateCartQuantity
Endpoint for updating quantity of given product from the cart. By default, it uses the updateCartDefaultQuery GraphQL query
Signature
export declare function updateCartQuantity(
context: SetupContext,
cart: UpdateCartQuantityParams,
product: UpdateCartQuantityProductParams,
customQuery?: CustomQuery,
responseOptions?: ResponseOptions
): Promise<UpdateCartQuantityResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
cart | Required | UpdateCartQuantityParams | |
product | Required | UpdateCartQuantityProductParams | Product information |
customQuery | Optional | CustomQuery | Custom queries included in the request |
responseOptions | Optional | ResponseOptions |
Returns
User cart information