POST api/site/GetCampaign

Получение подробной информации об акции

Request Information

URI Parameters

None.

Body Parameters

GetCampaignRequest
NameDescriptionTypeAdditional information
CampaignID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CampaignID": 1
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetCampaignResponse
NameDescriptionTypeAdditional information
ErrorCode

код ошибки

integer

None.

Message

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

string

None.

CampaignData

детализированная информация об акции

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-19T23:09:15.6821819+03:00",
    "endDate": "2022-08-19T23:09:15.6821819+03:00",
    "active": true,
    "noposes": true
  }
}

application/xml, text/xml

Sample:
<GetCampaignResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <CampaignData>
    <active>true</active>
    <categoryId xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </categoryId>
    <condition>sample string 7</condition>
    <description>sample string 6</description>
    <endDate>2022-08-19T23:09:15.6821819+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-19T23:09:15.6821819+03:00</startDate>
    <tagline>sample string 8</tagline>
  </CampaignData>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</GetCampaignResponse>