Home > @vsf-enterprise/sapcc-api > Endpoints > addCartEntry
Endpoints.addCartEntry() method
Adds a product to the cart and returns a new version of Cart.
Signature:
addCartEntry(context: SapccIntegrationContext, props: AddToCartProps): Promise<Cart>;
Parameters
Parameter | Type | Description |
---|---|---|
context | SapccIntegrationContext | An auto-generated value prepended to the method as a first parameter. |
props | AddToCartProps | An object which contains composed properties for adding a new entry to the cart and an updated cart version. |
Returns:
Promise<Cart>