POST api/pos/ImportChequeAdd

Импорт добавленных чеков

Request Information

URI Parameters

None.

Body Parameters

ImportChequeAddRequest
NameDescriptionTypeAdditional information
Card

номер карты

integer

None.

Phone

номер телефона

integer

None.

ChequeTime

время чека

date

None.

Pos

наименование ТТ

string

None.

Amount

сумма чека

decimal number

None.

Number

номер чека

string

None.

Added

начислено бонусов

decimal number

None.

Redeemed

оплачено бонусами

decimal number

None.

Refund

указатель чека возврата

boolean

None.

Purchasenumber

номер чека покупки, по которому делается возврат

string

None.

Purchasedate

дата чека покупки, по которому делается возврат

date

None.

Discount

размер предоставленного дисконта в данную покупку

decimal number

None.

ChequeItems

таблица позиций чека

Collection of ChequeItem

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Card": 1,
  "Phone": 1,
  "ChequeTime": "2022-08-14T15:21:36.3397984+03:00",
  "Pos": "sample string 1",
  "Amount": 1.0,
  "Number": "sample string 2",
  "Added": 1.0,
  "Redeemed": 1.0,
  "Refund": true,
  "Purchasenumber": "sample string 3",
  "Purchasedate": "2022-08-14T15:21:36.3397984+03:00",
  "Discount": 1.0,
  "ChequeItems": [
    {
      "Position": 64,
      "Code": "sample string 1",
      "Price": 1.0,
      "Quantity": 1.0,
      "Amount": 1.0,
      "Added": 1.0,
      "Redeemed": 1.0,
      "Discount": 1.0,
      "Size": "sample string 2"
    },
    {
      "Position": 64,
      "Code": "sample string 1",
      "Price": 1.0,
      "Quantity": 1.0,
      "Amount": 1.0,
      "Added": 1.0,
      "Redeemed": 1.0,
      "Discount": 1.0,
      "Size": "sample string 2"
    }
  ],
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 4"
}

application/xml, text/xml

Sample:
<ImportChequeAddRequest 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 4</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <Added>1</Added>
  <Amount>1</Amount>
  <Card>1</Card>
  <ChequeItems>
    <ChequeItem>
      <Added>1</Added>
      <Amount>1</Amount>
      <Code>sample string 1</Code>
      <Discount>1</Discount>
      <Position>64</Position>
      <Price>1</Price>
      <Quantity>1</Quantity>
      <Redeemed>1</Redeemed>
      <Size>sample string 2</Size>
    </ChequeItem>
    <ChequeItem>
      <Added>1</Added>
      <Amount>1</Amount>
      <Code>sample string 1</Code>
      <Discount>1</Discount>
      <Position>64</Position>
      <Price>1</Price>
      <Quantity>1</Quantity>
      <Redeemed>1</Redeemed>
      <Size>sample string 2</Size>
    </ChequeItem>
  </ChequeItems>
  <ChequeTime>2022-08-14T15:21:36.3397984+03:00</ChequeTime>
  <Discount>1</Discount>
  <Number>sample string 2</Number>
  <Phone>1</Phone>
  <Pos>sample string 1</Pos>
  <Purchasedate>2022-08-14T15:21:36.3397984+03:00</Purchasedate>
  <Purchasenumber>sample string 3</Purchasenumber>
  <Redeemed>1</Redeemed>
  <Refund>true</Refund>
</ImportChequeAddRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ImportChequeAddResponse
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:
<ImportChequeAddResponse 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>
</ImportChequeAddResponse>