POST api/values/VerificationPromocode
Проверка промокода
Request Information
URI Parameters
None.
Body Parameters
VerificationPromocodeRequestName | Description | Type | Additional information |
---|---|---|---|
Operator |
идентификатор Оператора программы лояльности |
integer |
None. |
Promocode |
промокод |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Operator": 1, "Promocode": "sample string 2" }
application/xml, text/xml
Sample:
<VerificationPromocodeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models"> <Operator>1</Operator> <Promocode>sample string 2</Promocode> </VerificationPromocodeRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VerificationPromocodeResponseName | 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:
<VerificationPromocodeResponse 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> </VerificationPromocodeResponse>