Home > @vsf-enterprise/sapcc-api > Endpoints > addToCart

Endpoints.addToCart() method

Adds a product to the cart.

Signature:

addToCart(context: SapccIntegrationContext, props: AddToCartProps): Promise<CartModification>;

Parameters

Parameter Type Description
context SapccIntegrationContext An auto-generated value prepended to the method as a first parameter.
props AddToCartProps An object which contains necessary properties for adding new entry to cart.

Returns:

Promise<CartModification>