⇐ Home

POST cart/Delete

Удалить коллекцию позиций из корзины

Request Information

URI Parameters

None.

Body Parameters

Коллекция идентификаторов позиций в корзине Collection of integer

Request Formats

application/json, text/json
Sample:
[
  1,
  2
]
application/xml, text/xml
Sample:
<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <int>1</int>
  <int>2</int>
</ArrayOfint>
application/x-www-form-urlencoded
Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ICollection`1'.

Response Information

Resource Description

Коллекция позиций со статусами Collection of ResItem
Name
Description
Type
Additional information
Codes Код ответа при операциях с корзиной Collection of ResponseCode None.
Id Внутренний идентификатор из корзины integer None.
IdItemArt Идентификатор позиции integer Required
Qty Количество integer Required Range: inclusive between 1 and 2147483647
Comment Комментарий к позиции, если комментарий пустой, и в корзине существует данная позиция, количество уже существующей позиции увеличивается на заказываемое string String length: inclusive between 0 and 100
Price Цена к позиции, если null, добавляется без предупреждения decimal number None.
Days Срок доставки в календарных днях, если null позиция добавляется без предупреждения integer None.

Response Formats

application/json, text/json
Sample:
[
  {
    "Codes": [
      0,
      0
    ],
    "Id": 1,
    "IdItemArt": 1,
    "Qty": 2,
    "Comment": "sample string 3",
    "Price": 1.0,
    "Days": 1
  },
  {
    "Codes": [
      0,
      0
    ],
    "Id": 1,
    "IdItemArt": 1,
    "Qty": 2,
    "Comment": "sample string 3",
    "Price": 1.0,
    "Days": 1
  }
]
application/xml, text/xml
Sample:
<ArrayOfResItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Wiki.PublicApi.Core.Cart">
  <ResItem>
    <Comment>sample string 3</Comment>
    <Days>1</Days>
    <Id>1</Id>
    <IdItemArt>1</IdItemArt>
    <Price>1</Price>
    <Qty>2</Qty>
    <Codes>
      <ResponseCode>Early</ResponseCode>
      <ResponseCode>Early</ResponseCode>
    </Codes>
  </ResItem>
  <ResItem>
    <Comment>sample string 3</Comment>
    <Days>1</Days>
    <Id>1</Id>
    <IdItemArt>1</IdItemArt>
    <Price>1</Price>
    <Qty>2</Qty>
    <Codes>
      <ResponseCode>Early</ResponseCode>
      <ResponseCode>Early</ResponseCode>
    </Codes>
  </ResItem>
</ArrayOfResItem>