POST api/mobile/ClientOfferPurchaseCreate
Покупка клиентом предложения/акции за бонусы
Request Information
URI Parameters
None.
Body Parameters
ClientOfferPurchaseCreateRequestName | Description | Type | Additional information |
---|---|---|---|
Partner |
Идентификатор партнера |
integer |
None. |
PosCode |
Код торговой точки |
string |
None. |
Client |
Идентификатор клиента |
integer |
None. |
Campaign |
Идентификатор акции/предложения |
integer |
None. |
Bonus |
Сумма списываемых бонусов |
decimal number |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Partner": 1, "PosCode": "sample string 1", "Client": 1, "Campaign": 1, "Bonus": 1.0, "Operator": 1, "Token": 1, "SiteCode": "sample string 2" }
application/xml, text/xml
Sample:
<ClientOfferPurchaseCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MobileRequest"> <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> <Bonus>1</Bonus> <Campaign>1</Campaign> <Client>1</Client> <Partner>1</Partner> <PosCode>sample string 1</PosCode> </ClientOfferPurchaseCreateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ClientOfferPurchaseCreateResponseName | Description | Type | Additional information |
---|---|---|---|
Balance |
Баланс бонусов после списания |
decimal number |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Balance": 1.0, "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
Sample:
<ClientOfferPurchaseCreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MobileResponse"> <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> <Balance>1</Balance> </ClientOfferPurchaseCreateResponse>