POST api/mobile/ClientOfferPurchaseInfo

Получение истории покупок/предложений клиента за бонусы

Request Information

URI Parameters

None.

Body Parameters

ClientOfferPurchaseInfoRequest
NameDescriptionTypeAdditional information
Client

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

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Client": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<ClientOfferPurchaseInfoRequest 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>
  <Client>1</Client>
</ClientOfferPurchaseInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClientOfferPurchaseInfoResponse
NameDescriptionTypeAdditional information
Purchases

Массив покупок/предложений клиента

Collection of ClientOfferPurchaseInfoPurchases

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Purchases": [
    {
      "Id": 1,
      "Logo": "sample string 1",
      "BigLogo": "sample string 2",
      "Title": "sample string 3",
      "PurchaseDate": "2022-08-12T18:46:44.9225998+03:00",
      "BonusRedeem": 1.0,
      "PartnerLogo": "sample string 4",
      "PartnerBigLogo": "sample string 5"
    },
    {
      "Id": 1,
      "Logo": "sample string 1",
      "BigLogo": "sample string 2",
      "Title": "sample string 3",
      "PurchaseDate": "2022-08-12T18:46:44.9225998+03:00",
      "BonusRedeem": 1.0,
      "PartnerLogo": "sample string 4",
      "PartnerBigLogo": "sample string 5"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientOfferPurchaseInfoResponse 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>
  <Purchases>
    <ClientOfferPurchaseInfoResponse.ClientOfferPurchaseInfoPurchases>
      <BigLogo>sample string 2</BigLogo>
      <BonusRedeem>1</BonusRedeem>
      <Id>1</Id>
      <Logo>sample string 1</Logo>
      <PartnerBigLogo>sample string 5</PartnerBigLogo>
      <PartnerLogo>sample string 4</PartnerLogo>
      <PurchaseDate>2022-08-12T18:46:44.9225998+03:00</PurchaseDate>
      <Title>sample string 3</Title>
    </ClientOfferPurchaseInfoResponse.ClientOfferPurchaseInfoPurchases>
    <ClientOfferPurchaseInfoResponse.ClientOfferPurchaseInfoPurchases>
      <BigLogo>sample string 2</BigLogo>
      <BonusRedeem>1</BonusRedeem>
      <Id>1</Id>
      <Logo>sample string 1</Logo>
      <PartnerBigLogo>sample string 5</PartnerBigLogo>
      <PartnerLogo>sample string 4</PartnerLogo>
      <PurchaseDate>2022-08-12T18:46:44.9225998+03:00</PurchaseDate>
      <Title>sample string 3</Title>
    </ClientOfferPurchaseInfoResponse.ClientOfferPurchaseInfoPurchases>
  </Purchases>
</ClientOfferPurchaseInfoResponse>