⇐ Home

GET cart/SetQuantity/{idItemCart}/{qty}

Установить количество позиции в корзине

Request Information

URI Parameters

Name
Description
Type
Additional information
idItemCart Идентификатор позиции в корзине integer Required
qty Устанавливоемое количество позиции в корзине integer Required

Body Parameters

None.

Response Information

Resource Description

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
}
application/xml, text/xml
Sample:
<ResItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Wiki.PublicApi.Core.Cart">
  <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>