POST api/card/CardMerge

Замена номера карты клиента

Request Information

URI Parameters

None.

Body Parameters

CardMergeRequest
NameDescriptionTypeAdditional information
OldCard

Старый номер карты

integer

None.

NewCard

Новый номер карты

integer

None.

NoSendsms

Не отправлять смс

boolean

None.

PosCode

Код торговой точки

string

None.

Operator

Идентификатор оператора программы лояльности

integer

None.

Token

Токен пользователя, который инициирует данный запрос

integer

None.

SiteCode

Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OldCard": 1,
  "NewCard": 1,
  "NoSendsms": true,
  "PosCode": "sample string 1",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<CardMergeRequest 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>
  <NewCard>1</NewCard>
  <NoSendsms>true</NoSendsms>
  <OldCard>1</OldCard>
  <PosCode>sample string 1</PosCode>
</CardMergeRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CardMergeResponse
NameDescriptionTypeAdditional 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:
<CardMergeResponse 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>
</CardMergeResponse>