Poq.SDK.Node

Home > @poq/sdk-sfcc > CartService > updateCart

CartService.updateCart() method

Method update the cart.

Signature:

updateCart(authInfo: AuthInfo, customerId: string, appIdentifier: string, poqUserId: string, currencyCode: string, updateCartPayload: UpdateCartRequest, isGuest: boolean, locale?: string): Promise<PoqResponse<CartWithProductsResponse>>;

Parameters

Parameter Type Description
authInfo AuthInfo The auth info to make request (credentials or token).
customerId string The customer id.
appIdentifier string The unique guid v4 app identifier.
poqUserId string The unique identifier of the poq user.
currencyCode string The ISO currency code is the three-letter alphabetic code that represent the various currencies used throughout the world.
updateCartPayload UpdateCartRequest Specifies data to update in the cart.
isGuest boolean The flag indicates whether user is guest.
locale string (Optional) The indicator carries information about locale.

Returns:

Promise<PoqResponse<CartWithProductsResponse>>

The user’s Cart with products.