POST api/client/GetClient
Получение информации о картах Участника.
Request Information
URI Parameters
None.
Body Parameters
GetClientRequestName | Description | Type | Additional information |
---|---|---|---|
ClientID |
ID участника программы лояльности |
integer |
None. |
OperatorId |
ID оператора программы лояльности |
integer |
None. |
LastPurchase |
Последняя покупка? |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "ClientID": 1, "OperatorId": 2, "LastPurchase": true }
application/xml, text/xml
Sample:
<GetClientRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <ClientID>1</ClientID> <LastPurchase>true</LastPurchase> <OperatorId>2</OperatorId> </GetClientRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetClientResponseName | Description | Type | Additional information |
---|---|---|---|
ErrorCode |
код ошибки |
integer |
None. |
Message |
сообщение об ошибке |
string |
None. |
ClientData |
Информация об участнике программы лояльности |
Client |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 1, "Message": "sample string 2", "ClientData": { "id": 1, "password": "sample string 2", "firstname": "sample string 3", "middlename": "sample string 4", "lastname": "sample string 5", "gender": 1, "birthdate": "2024-12-14T06:54:48.894335+03:00", "address": "sample string 6", "haschildren": true, "description": "sample string 8", "phone": 9, "email": "sample string 10", "allowsms": true, "allowemail": true, "balance": 11.0, "allowpush": true, "lasturchaseamount": 12.0, "lastpurchasedate": "2024-12-14T06:54:48.894335+03:00", "CardNumber": 14, "CardStatus": "sample string 15", "CardFullBalance": 16.0, "BonusStaff": 1.0, "BonusVip": 1.0 } }
application/xml, text/xml
Sample:
<GetClientResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <ClientData> <BonusStaff>1</BonusStaff> <BonusVip>1</BonusVip> <CardFullBalance>16</CardFullBalance> <CardNumber>14</CardNumber> <CardStatus>sample string 15</CardStatus> <address>sample string 6</address> <allowemail>true</allowemail> <allowpush>true</allowpush> <allowsms>true</allowsms> <balance>11</balance> <birthdate>2024-12-14T06:54:48.894335+03:00</birthdate> <description>sample string 8</description> <email>sample string 10</email> <firstname>sample string 3</firstname> <gender>1</gender> <haschildren>true</haschildren> <id>1</id> <lastname>sample string 5</lastname> <lastpurchasedate>2024-12-14T06:54:48.894335+03:00</lastpurchasedate> <lasturchaseamount>12</lasturchaseamount> <middlename>sample string 4</middlename> <password>sample string 2</password> <phone>9</phone> </ClientData> <ErrorCode>1</ErrorCode> <Message>sample string 2</Message> </GetClientResponse>