POST api/client/GetPersonalCampaigns

Возвращает персональное предложение Участника (потерялся public class Campaing).

Request Information

URI Parameters

None.

Body Parameters

GetPersonalCampaignsRequest
NameDescriptionTypeAdditional information
ClientID

ID участника программы лояльности

integer

None.

Operator

ID оператора

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "ClientID": 1,
  "Operator": 2
}

application/xml, text/xml

Sample:
<GetPersonalCampaignsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ClientID>1</ClientID>
  <Operator>2</Operator>
</GetPersonalCampaignsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetPersonalCampaignsResponse
NameDescriptionTypeAdditional information
ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

CampaignData

список акций

Collection of Campaign

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2",
  "CampaignData": [
    {
      "id": 1,
      "name": "sample string 2",
      "logo": "sample string 3",
      "large": true,
      "partnerlogo": "sample string 5",
      "description": "sample string 6",
      "condition": "sample string 7",
      "tagline": "sample string 8",
      "isPopular": true,
      "isNew": true,
      "categoryId": [
        1,
        2
      ],
      "partnerId": 11,
      "internetShop": "sample string 12",
      "isFav": true,
      "share_url": "sample string 14",
      "startDate": "2022-08-14T15:54:22.6310739+03:00",
      "endDate": "2022-08-14T15:54:22.6310739+03:00",
      "active": true,
      "noposes": true
    },
    {
      "id": 1,
      "name": "sample string 2",
      "logo": "sample string 3",
      "large": true,
      "partnerlogo": "sample string 5",
      "description": "sample string 6",
      "condition": "sample string 7",
      "tagline": "sample string 8",
      "isPopular": true,
      "isNew": true,
      "categoryId": [
        1,
        2
      ],
      "partnerId": 11,
      "internetShop": "sample string 12",
      "isFav": true,
      "share_url": "sample string 14",
      "startDate": "2022-08-14T15:54:22.6310739+03:00",
      "endDate": "2022-08-14T15:54:22.6310739+03:00",
      "active": true,
      "noposes": true
    }
  ]
}

application/xml, text/xml

Sample:
<GetPersonalCampaignsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <CampaignData>
    <Campaign>
      <active>true</active>
      <categoryId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </categoryId>
      <condition>sample string 7</condition>
      <description>sample string 6</description>
      <endDate>2022-08-14T15:54:22.6310739+03:00</endDate>
      <id>1</id>
      <internetShop>sample string 12</internetShop>
      <isFav>true</isFav>
      <isNew>true</isNew>
      <isPopular>true</isPopular>
      <large>true</large>
      <logo>sample string 3</logo>
      <name>sample string 2</name>
      <noposes>true</noposes>
      <partnerId>11</partnerId>
      <partnerlogo>sample string 5</partnerlogo>
      <share_url>sample string 14</share_url>
      <startDate>2022-08-14T15:54:22.6310739+03:00</startDate>
      <tagline>sample string 8</tagline>
    </Campaign>
    <Campaign>
      <active>true</active>
      <categoryId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </categoryId>
      <condition>sample string 7</condition>
      <description>sample string 6</description>
      <endDate>2022-08-14T15:54:22.6310739+03:00</endDate>
      <id>1</id>
      <internetShop>sample string 12</internetShop>
      <isFav>true</isFav>
      <isNew>true</isNew>
      <isPopular>true</isPopular>
      <large>true</large>
      <logo>sample string 3</logo>
      <name>sample string 2</name>
      <noposes>true</noposes>
      <partnerId>11</partnerId>
      <partnerlogo>sample string 5</partnerlogo>
      <share_url>sample string 14</share_url>
      <startDate>2022-08-14T15:54:22.6310739+03:00</startDate>
      <tagline>sample string 8</tagline>
    </Campaign>
  </CampaignData>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</GetPersonalCampaignsResponse>