POST api/client/ClientAddCard
Добавление карты для Участника программы лояльности
Request Information
URI Parameters
None.
Body Parameters
ClientAddCardRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientID |
ID участника программы лояльности |
integer |
None. |
| Card |
номер карты |
integer |
None. |
| PartnerID |
ID партнера |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ClientID": 1,
"Card": 2,
"PartnerID": 3
}
application/xml, text/xml
Sample:
<ClientAddCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <Card>2</Card> <ClientID>1</ClientID> <PartnerID>3</PartnerID> </ClientAddCardRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ClientAddCardResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<ClientAddCardResponse 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> </ClientAddCardResponse>