POST api/sertcard/SitePageBasket
Получение конфига для страницы "Корзина"
Request Information
URI Parameters
None.
Body Parameters
SitePageBasketRequestName | Description | Type | Additional information |
---|---|---|---|
Theme |
Наименование темы |
string |
None. |
PageType |
Наименование типа страницы |
string |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Theme": "sample string 1", "PageType": "sample string 2", "Operator": 1, "Token": 1, "SiteCode": "sample string 3" }
application/xml, text/xml
Sample:
<SitePageBasketRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.SertCardRequest"> <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 3</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <PageType>sample string 2</PageType> <Theme>sample string 1</Theme> </SitePageBasketRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SitePageBasketResponseName | Description | Type | Additional information |
---|---|---|---|
AllowEdit |
Разрешено или нет пользователю редактировать корзину |
boolean |
None. |
BurgerShown |
Показывать или нет бургер на странице подтверждения заказа |
boolean |
None. |
Goods |
Товары |
Collection of SitePageBasketGoods |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "AllowEdit": true, "BurgerShown": true, "Goods": [ { "Id": 1, "Name": "sample string 2", "Quantity": 1, "Price": 1.0, "Design": "sample string 3", "Congratulation": "sample string 4" }, { "Id": 1, "Name": "sample string 2", "Quantity": 1, "Price": 1.0, "Design": "sample string 3", "Congratulation": "sample string 4" } ], "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
Sample:
<SitePageBasketResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.SertCardResponse"> <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message> <AllowEdit>true</AllowEdit> <BurgerShown>true</BurgerShown> <Goods> <SitePageBasketResponse.SitePageBasketGoods> <Congratulation>sample string 4</Congratulation> <Design>sample string 3</Design> <Id>1</Id> <Name>sample string 2</Name> <Price>1</Price> <Quantity>1</Quantity> </SitePageBasketResponse.SitePageBasketGoods> <SitePageBasketResponse.SitePageBasketGoods> <Congratulation>sample string 4</Congratulation> <Design>sample string 3</Design> <Id>1</Id> <Name>sample string 2</Name> <Price>1</Price> <Quantity>1</Quantity> </SitePageBasketResponse.SitePageBasketGoods> </Goods> </SitePageBasketResponse>