Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sdk-sales/src/sdk/removeItemFromCart"

Index

Functions

Functions

removeItemFromCart

  • removeItemFromCart(sku: string): Promise<APIErrorResponse | Cart>
  • Parameters

    • sku: string

    Returns Promise<APIErrorResponse | Cart>

    Promise resolving to the cart without the item in it. The cart property will be overwritten by the data fetched.

    On success (resolves)
    {
     "total": 0,
     "subtotal": 0,
     "tax": 0,
     "shipping": 0,
     "items": [
       {
         "sku": "string",
         "quantity": 0,
         "shortDescription": "string",
         "name": "string",
         "price": 0,
         "tax": 0,
         "subTotal": 0,
         "total": 0
       }
     ]
    }
    On error (throws)
    See documentation for corresponding error codes:
    https://redirector.arcpublishing.com/alc/docs/swagger/?url=./arc-products/arc-sales.json#/Cart_Interaction/deleteItem