POST api/mobile/ClientOffers

Получение информации о предложениях, которые предназначены для клиента

Request Information

URI Parameters

None.

Body Parameters

ClientOffersRequest
NameDescriptionTypeAdditional information
Partner

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

integer

None.

Pos

Идентификатор торговой точки

integer

None.

Client

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

integer

None.

MainPage

Признак, что нужны офферы на гл. страницу

boolean

None.

Favorite

Признак, что нужны офферы из избранного

boolean

None.

Recommended

Признак, что нужны офферы рекомендованные

boolean

None.

New

Признак, что нужны офферы новые/новинки

boolean

None.

City

Признак, что нужны офферы в точках конкретного города

integer

None.

Segment

Признак, что нужны офферы конкретного сегмента

integer

None.

Category

Признак, что нужны офферы конкретной категории

integer

None.

MyPurchases

Признак, что нужны офферы те, которые клиент уже купил

boolean

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Partner": 1,
  "Pos": 1,
  "Client": 1,
  "MainPage": true,
  "Favorite": true,
  "Recommended": true,
  "New": true,
  "City": 1,
  "Segment": 1,
  "Category": 1,
  "MyPurchases": true,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<ClientOffersRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MobileRequest">
  <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 1</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <Category>1</Category>
  <City>1</City>
  <Client>1</Client>
  <Favorite>true</Favorite>
  <MainPage>true</MainPage>
  <MyPurchases>true</MyPurchases>
  <New>true</New>
  <Partner>1</Partner>
  <Pos>1</Pos>
  <Recommended>true</Recommended>
  <Segment>1</Segment>
</ClientOffersRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClientOffersResponse
NameDescriptionTypeAdditional information
Offers

Массив офферов

Collection of ClientOffersOffers

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Offers": [
    {
      "Campaign": 1,
      "Description": "sample string 1",
      "Logo": "sample string 2",
      "BigLogo": "sample string 3",
      "Title": "sample string 4",
      "SubTitle": "sample string 5",
      "StartDate": "2022-08-14T16:19:43.3848359+03:00",
      "EndDate": "2022-08-14T16:19:43.3848359+03:00",
      "OfferType": "sample string 6",
      "OfferStatus": "sample string 7",
      "OfferUrl": "sample string 8",
      "Price": 1.0,
      "OldPrice": 1.0,
      "PartnerLogo": "sample string 9",
      "PartnerBigLogo": "sample string 10",
      "PartnerName": "sample string 11",
      "PartnerId": 1,
      "PartnerSite": "sample string 12",
      "New": true,
      "Recommended": true,
      "Favorite": true,
      "NoPoses": true,
      "Expire": true,
      "MyPurchases": true,
      "CampaignType": 64
    },
    {
      "Campaign": 1,
      "Description": "sample string 1",
      "Logo": "sample string 2",
      "BigLogo": "sample string 3",
      "Title": "sample string 4",
      "SubTitle": "sample string 5",
      "StartDate": "2022-08-14T16:19:43.3848359+03:00",
      "EndDate": "2022-08-14T16:19:43.3848359+03:00",
      "OfferType": "sample string 6",
      "OfferStatus": "sample string 7",
      "OfferUrl": "sample string 8",
      "Price": 1.0,
      "OldPrice": 1.0,
      "PartnerLogo": "sample string 9",
      "PartnerBigLogo": "sample string 10",
      "PartnerName": "sample string 11",
      "PartnerId": 1,
      "PartnerSite": "sample string 12",
      "New": true,
      "Recommended": true,
      "Favorite": true,
      "NoPoses": true,
      "Expire": true,
      "MyPurchases": true,
      "CampaignType": 64
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientOffersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MobileResponse">
  <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>
  <Offers>
    <ClientOffersResponse.ClientOffersOffers>
      <BigLogo>sample string 3</BigLogo>
      <Campaign>1</Campaign>
      <CampaignType>64</CampaignType>
      <Description>sample string 1</Description>
      <EndDate>2022-08-14T16:19:43.3848359+03:00</EndDate>
      <Expire>true</Expire>
      <Favorite>true</Favorite>
      <Logo>sample string 2</Logo>
      <MyPurchases>true</MyPurchases>
      <New>true</New>
      <NoPoses>true</NoPoses>
      <OfferStatus>sample string 7</OfferStatus>
      <OfferType>sample string 6</OfferType>
      <OfferUrl>sample string 8</OfferUrl>
      <OldPrice>1</OldPrice>
      <PartnerBigLogo>sample string 10</PartnerBigLogo>
      <PartnerId>1</PartnerId>
      <PartnerLogo>sample string 9</PartnerLogo>
      <PartnerName>sample string 11</PartnerName>
      <PartnerSite>sample string 12</PartnerSite>
      <Price>1</Price>
      <Recommended>true</Recommended>
      <StartDate>2022-08-14T16:19:43.3848359+03:00</StartDate>
      <SubTitle>sample string 5</SubTitle>
      <Title>sample string 4</Title>
    </ClientOffersResponse.ClientOffersOffers>
    <ClientOffersResponse.ClientOffersOffers>
      <BigLogo>sample string 3</BigLogo>
      <Campaign>1</Campaign>
      <CampaignType>64</CampaignType>
      <Description>sample string 1</Description>
      <EndDate>2022-08-14T16:19:43.3848359+03:00</EndDate>
      <Expire>true</Expire>
      <Favorite>true</Favorite>
      <Logo>sample string 2</Logo>
      <MyPurchases>true</MyPurchases>
      <New>true</New>
      <NoPoses>true</NoPoses>
      <OfferStatus>sample string 7</OfferStatus>
      <OfferType>sample string 6</OfferType>
      <OfferUrl>sample string 8</OfferUrl>
      <OldPrice>1</OldPrice>
      <PartnerBigLogo>sample string 10</PartnerBigLogo>
      <PartnerId>1</PartnerId>
      <PartnerLogo>sample string 9</PartnerLogo>
      <PartnerName>sample string 11</PartnerName>
      <PartnerSite>sample string 12</PartnerSite>
      <Price>1</Price>
      <Recommended>true</Recommended>
      <StartDate>2022-08-14T16:19:43.3848359+03:00</StartDate>
      <SubTitle>sample string 5</SubTitle>
      <Title>sample string 4</Title>
    </ClientOffersResponse.ClientOffersOffers>
  </Offers>
</ClientOffersResponse>