Home > @vsf-enterprise/commercetools-api > ApiMethods > addToCart
# ApiMethods.addToCart() method
See the addToCart() function
Signature:
addToCart(cart: AddToCartParams, product: AddToCartProductParams, customQuery?: CustomQuery): Promise<AddToCartResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
cart | AddToCartParams | |
product | AddToCartProductParams | |
customQuery | CustomQuery |
Returns:
Promise<AddToCartResponse>