POST api/card/CardLevelInfo
Получение информации об уровнях карты в программе, накоплениях и порогах накоплений
Request Information
URI Parameters
None.
Body Parameters
CardLevelInfoRequestName | Description | Type | Additional information |
---|---|---|---|
PosCode |
Код торговой точки |
string |
None. |
Client |
Идентификатор клиента |
integer |
None. |
Card |
Номер карты клиента |
integer |
None. |
Phone |
Номер телефона клиента |
integer |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "PosCode": "sample string 1", "Client": 1, "Card": 1, "Phone": 1, "Operator": 1, "Token": 1, "SiteCode": "sample string 2" }
application/xml, text/xml
Sample:
<CardLevelInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request"> <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 2</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <Card>1</Card> <Client>1</Client> <Phone>1</Phone> <PosCode>sample string 1</PosCode> </CardLevelInfoRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CardLevelInfoResponseName | Description | Type | Additional information |
---|---|---|---|
Levels |
Уровни |
Collection of CardLevelInfoLevel |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Levels": [ { "Id": 1, "Step": 1, "Exceeds": 1.0, "NextSum": 1.0, "Name": "sample string 1", "Condition": "sample string 2", "Threshold": 1.0, "Confirm": true }, { "Id": 1, "Step": 1, "Exceeds": 1.0, "NextSum": 1.0, "Name": "sample string 1", "Condition": "sample string 2", "Threshold": 1.0, "Confirm": true } ], "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
Sample:
<CardLevelInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response"> <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> <Levels> <CardLevelInfoResponse.CardLevelInfoLevel> <Condition>sample string 2</Condition> <Confirm>true</Confirm> <Exceeds>1</Exceeds> <Id>1</Id> <Name>sample string 1</Name> <NextSum>1</NextSum> <Step>1</Step> <Threshold>1</Threshold> </CardLevelInfoResponse.CardLevelInfoLevel> <CardLevelInfoResponse.CardLevelInfoLevel> <Condition>sample string 2</Condition> <Confirm>true</Confirm> <Exceeds>1</Exceeds> <Id>1</Id> <Name>sample string 1</Name> <NextSum>1</NextSum> <Step>1</Step> <Threshold>1</Threshold> </CardLevelInfoResponse.CardLevelInfoLevel> </Levels> </CardLevelInfoResponse>