Home > @vsf-enterprise/sapcc-api > Endpoints > getCart
Endpoints.getCart() method
Returns the cart with a given identifier or creating new one if identifier isn't provided.
Signature:
getCart(context: SapccIntegrationContext, props: GetCartProps): Promise<Cart>;
Parameters
Parameter | Type | Description |
---|---|---|
context | SapccIntegrationContext | An auto-generated value prepended to the method as a first parameter. |
props | GetCartProps | An object which contains necessary properties for getting cart data. |
Returns:
Promise<Cart>