POST api/order/BasketInfo

Получение информации о составе корзины, её стоимости и применённых поощрениях

Request Information

URI Parameters

None.

Body Parameters

BasketInfoRequest
NameDescriptionTypeAdditional information
PosCode

Код торговой точки, которая иниирует запрос на действия по корзине

string

None.

Mobile_basket_id

Идентификатор корзины, по которой необходимо произвести действие

integer

None.

Client

Идентификатор клиента

integer

None.

ClientIShop

Идентификатор клиента в БД интернет-магазина

integer

None.

Operator

Идентификатор оператора программы лояльности

integer

None.

Token

Токен пользователя, который инициирует данный запрос

integer

None.

SiteCode

Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PosCode": "sample string 1",
  "Mobile_basket_id": 1,
  "Client": 1,
  "ClientIShop": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<BasketInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.OrderRequest">
  <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator>
  <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <Client>1</Client>
  <ClientIShop>1</ClientIShop>
  <Mobile_basket_id>1</Mobile_basket_id>
  <PosCode>sample string 1</PosCode>
</BasketInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BasketInfoResponse
NameDescriptionTypeAdditional information
TotalPosition

Общее количество позиций в корзине

decimal number

None.

TotalAmount

Общая сумма позиций в корзине до применения разных скидок и оплат

decimal number

None.

TotalPromo

Общая экономия

decimal number

None.

TotalPayment

Итоговая сумма к оплате

decimal number

None.

SumDelivery

Сумма доставки

decimal number

None.

MaxRedeem

Сколько можно списать бонусов

decimal number

None.

Redeemed

Сколько бонусов списано в корзину

decimal number

None.

SertRedeemed

Сколько средств списано с сертификата в корзину

decimal number

None.

Discount

Сумма скидок, предоставленная в корзину

decimal number

None.

Coupon

Купон/промокод, который был использован в корзину

string

None.

Added

Сколько бонусов будет начислено за корзину

decimal number

None.

Basket

Массив с составом корзины по позициям

Collection of BasketInfoBasketRow

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalPosition": 1.0,
  "TotalAmount": 1.0,
  "TotalPromo": 1.0,
  "TotalPayment": 1.0,
  "SumDelivery": 1.0,
  "MaxRedeem": 1.0,
  "Redeemed": 1.0,
  "SertRedeemed": 1.0,
  "Discount": 1.0,
  "Coupon": "sample string 1",
  "Added": 1.0,
  "Basket": [
    {
      "Id": 1,
      "Position": 1,
      "Name": "sample string 1",
      "BrandName": "sample string 2",
      "BrandLogo": "sample string 3",
      "Color": "sample string 4",
      "ColorCode": "sample string 5",
      "Size": "sample string 6",
      "CollectionName": "sample string 7",
      "SeasonName": "sample string 8",
      "ClientTag": "sample string 9",
      "UrlImage": "sample string 10",
      "GoodId": 1,
      "Guid": "sample string 11",
      "Price": 1.0,
      "Amount": 1.0,
      "OldAmount": 1.0,
      "Quantity": 1.0,
      "GoodsDiscount": 1.0
    },
    {
      "Id": 1,
      "Position": 1,
      "Name": "sample string 1",
      "BrandName": "sample string 2",
      "BrandLogo": "sample string 3",
      "Color": "sample string 4",
      "ColorCode": "sample string 5",
      "Size": "sample string 6",
      "CollectionName": "sample string 7",
      "SeasonName": "sample string 8",
      "ClientTag": "sample string 9",
      "UrlImage": "sample string 10",
      "GoodId": 1,
      "Guid": "sample string 11",
      "Price": 1.0,
      "Amount": 1.0,
      "OldAmount": 1.0,
      "Quantity": 1.0,
      "GoodsDiscount": 1.0
    }
  ],
  "ErrorCode": 2,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<BasketInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.OrderResponse">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">2</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</Message>
  <Added>1</Added>
  <Basket>
    <BasketInfoResponse.BasketInfoBasketRow>
      <Amount>1</Amount>
      <BrandLogo>sample string 3</BrandLogo>
      <BrandName>sample string 2</BrandName>
      <ClientTag>sample string 9</ClientTag>
      <CollectionName>sample string 7</CollectionName>
      <Color>sample string 4</Color>
      <ColorCode>sample string 5</ColorCode>
      <GoodId>1</GoodId>
      <GoodsDiscount>1</GoodsDiscount>
      <Guid>sample string 11</Guid>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <OldAmount>1</OldAmount>
      <Position>1</Position>
      <Price>1</Price>
      <Quantity>1</Quantity>
      <SeasonName>sample string 8</SeasonName>
      <Size>sample string 6</Size>
      <UrlImage>sample string 10</UrlImage>
    </BasketInfoResponse.BasketInfoBasketRow>
    <BasketInfoResponse.BasketInfoBasketRow>
      <Amount>1</Amount>
      <BrandLogo>sample string 3</BrandLogo>
      <BrandName>sample string 2</BrandName>
      <ClientTag>sample string 9</ClientTag>
      <CollectionName>sample string 7</CollectionName>
      <Color>sample string 4</Color>
      <ColorCode>sample string 5</ColorCode>
      <GoodId>1</GoodId>
      <GoodsDiscount>1</GoodsDiscount>
      <Guid>sample string 11</Guid>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <OldAmount>1</OldAmount>
      <Position>1</Position>
      <Price>1</Price>
      <Quantity>1</Quantity>
      <SeasonName>sample string 8</SeasonName>
      <Size>sample string 6</Size>
      <UrlImage>sample string 10</UrlImage>
    </BasketInfoResponse.BasketInfoBasketRow>
  </Basket>
  <Coupon>sample string 1</Coupon>
  <Discount>1</Discount>
  <MaxRedeem>1</MaxRedeem>
  <Redeemed>1</Redeemed>
  <SertRedeemed>1</SertRedeemed>
  <SumDelivery>1</SumDelivery>
  <TotalAmount>1</TotalAmount>
  <TotalPayment>1</TotalPayment>
  <TotalPosition>1</TotalPosition>
  <TotalPromo>1</TotalPromo>
</BasketInfoResponse>