POST api/system/ErrorPosRequest

Логирование запросов к API MLoyalty, которые привели к ошибке, включая код и текст ошибки

Request Information

URI Parameters

None.

Body Parameters

ErrorPosRequestRequest
NameDescriptionTypeAdditional information
PosCode

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

string

None.

MethodName

Наименование метода, который вызывали

string

None.

Request

Текст запроса

string

None.

Response

Текст ошибки + код ошибки

string

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PosCode": "sample string 1",
  "MethodName": "sample string 2",
  "Request": "sample string 3",
  "Response": "sample string 4",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 5"
}

application/xml, text/xml

Sample:
<ErrorPosRequestRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.SystemRequest">
  <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 5</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <MethodName>sample string 2</MethodName>
  <PosCode>sample string 1</PosCode>
  <Request>sample string 3</Request>
  <Response>sample string 4</Response>
</ErrorPosRequestRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ErrorPosRequestResponse
NameDescriptionTypeAdditional information
Id

Идентификатор созданной записи

integer

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ErrorPosRequestResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.SystemResponse">
  <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>
  <Id>1</Id>
</ErrorPosRequestResponse>