Alokai
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

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
cartRequiredUpdateCartQuantityParams
productRequiredUpdateCartQuantityProductParamsProduct information
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

User cart information

Referenced Types

On this page