POST api/site/GetSegments

Получение списка сегментов

Request Information

URI Parameters

None.

Body Parameters

GetSegmentsRequest
NameDescriptionTypeAdditional information
Operator

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

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetSegmentsResponse
NameDescriptionTypeAdditional information
ErrorCode

код ошибки

integer

None.

Message

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

string

None.

SegmentData

список сегментов

Collection of Segment

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "Message": "sample string 2",
  "SegmentData": [
    {
      "id": 1,
      "name": "sample string 2"
    },
    {
      "id": 1,
      "name": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<GetSegmentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
  <SegmentData>
    <Segment>
      <id>1</id>
      <name>sample string 2</name>
    </Segment>
    <Segment>
      <id>1</id>
      <name>sample string 2</name>
    </Segment>
  </SegmentData>
</GetSegmentsResponse>