Clear basket

Removes all items from the basket.

Request
query Parameters
id
required
integer <int32>

The internal id of the basket to clear.

pricelistSeed
string

A comma separated list of internal pricelist ids to use, if any. PriceLists supplied must be valid, either from the application's public priceList or any customer or company priceLists or any valid client priceLists. For clients configured to use priceListSeed exclusively in the API only the supplied priceLists will be used. If this is not configured, the supplied priceLists will be appended to the valid priceLists. If none is supplied, the default value for the application will be used in combination with any customer or company priceLists. This applies to both configurations.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

currencyId
string

Specifies in which currency internal id to display prices. If none is supplied, value is resolved from Application.

Responses
200

Success

400

Bad Request

Key: BasketNotEditable. Gets raised when the basket is not editable or already paid for.

Key: InvalidCompanyOnBasket. Gets raised when the basket has an invalid company. The customer does not exist in this company.

Key: QuotationMissing. Gets raised when the basket is missing.

500

Internal Server Error

post/ShoppingService.svc/rest/ClearBasket
Response samples
{
  • "Id": 0,
  • "CustomerId": 0,
  • "CompanyId": 0,
  • "SalesContactId": 0,
  • "StatusId": 0,
  • "CurrencyId": 0,
  • "CurrencyCode": "string",
  • "Comment": "string",
  • "OrderReference": "string",
  • "DiscountCode": "string",
  • "ReferId": 0,
  • "ReferUrl": "string",
  • "ValidTo": "2019-08-24T14:15:22Z",
  • "IsEditable": true,
  • "Items": [
    ],
  • "Info": [
    ],
  • "Summary": {
    },
  • "AppliedPromotions": [
    ],
  • "IpAddress": "string",
  • "AttestedBy": 0,
  • "TypeId": 0,
  • "DoHold": true,
  • "IsBuyable": true,
  • "InvoiceReference": "string",
  • "PaymentMethodId": 0,
  • "DeliveryMethodId": 0,
  • "SalesAreaId": 0
}