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

Endpoints.deleteCartEntry() method

Deletes a product from the cart and returns a new version of Cart.

Signature:

deleteCartEntry(context: SapccIntegrationContext, props: DeleteFromCartProps): Promise<Cart>;

Parameters

Parameter Type Description
context SapccIntegrationContext An auto-generated value prepended to the method as a first parameter.
props DeleteFromCartProps An object which contains composed properties for removing an entry from the cart and an new cart version.

Returns:

Promise<Cart>