POST api/order/OrderInvoicesInfo

Получение данных по всем накладным заказа клиента с детализацией

Request Information

URI Parameters

None.

Body Parameters

OrderInvoicesInfoRequest
NameDescriptionTypeAdditional information
OrderNumber

Номер заказа

string

None.

OrderGuid

Гуид заказа

string

None.

OrderId

Идентификатор заказа в БД Mloyalty

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderNumber": "sample string 1",
  "OrderGuid": "sample string 2",
  "OrderId": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 3"
}

application/xml, text/xml

Sample:
<OrderInvoicesInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.OrderRequest">
  <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 3</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <OrderGuid>sample string 2</OrderGuid>
  <OrderId>1</OrderId>
  <OrderNumber>sample string 1</OrderNumber>
</OrderInvoicesInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OrderInvoicesInfoResponse
NameDescriptionTypeAdditional information
Invoices

Массив заказов

Collection of OrderInvoicesInfoInvoice

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Invoices": [
    {
      "Id": 1,
      "InvoiceId": 1,
      "Guid": "sample string 1",
      "Status": "sample string 2",
      "Refund": true,
      "СhequeId": 1,
      "BarCode": 1,
      "Amount": 1.0,
      "ChequeTime": "2022-08-16T22:43:20.1013361+03:00",
      "Number": "sample string 3",
      "Redeemed": 1.0,
      "Added": 1.0,
      "SertRedeemed": 1.0,
      "Discount": 1.0,
      "InvoicesData": [
        {
          "Id": 1,
          "Position": 1,
          "Name": "sample string 1",
          "Guid": "sample string 2",
          "ItemArticle": "sample string 3",
          "Price": 1.0,
          "MinPrice": 1.0,
          "Amount": 1.0,
          "Quantity": 1,
          "Redeemed": 1.0,
          "Added": 1.0,
          "SertRedeemed": 1.0,
          "Discount": 1.0,
          "Coupon": "sample string 4"
        },
        {
          "Id": 1,
          "Position": 1,
          "Name": "sample string 1",
          "Guid": "sample string 2",
          "ItemArticle": "sample string 3",
          "Price": 1.0,
          "MinPrice": 1.0,
          "Amount": 1.0,
          "Quantity": 1,
          "Redeemed": 1.0,
          "Added": 1.0,
          "SertRedeemed": 1.0,
          "Discount": 1.0,
          "Coupon": "sample string 4"
        }
      ]
    },
    {
      "Id": 1,
      "InvoiceId": 1,
      "Guid": "sample string 1",
      "Status": "sample string 2",
      "Refund": true,
      "СhequeId": 1,
      "BarCode": 1,
      "Amount": 1.0,
      "ChequeTime": "2022-08-16T22:43:20.1013361+03:00",
      "Number": "sample string 3",
      "Redeemed": 1.0,
      "Added": 1.0,
      "SertRedeemed": 1.0,
      "Discount": 1.0,
      "InvoicesData": [
        {
          "Id": 1,
          "Position": 1,
          "Name": "sample string 1",
          "Guid": "sample string 2",
          "ItemArticle": "sample string 3",
          "Price": 1.0,
          "MinPrice": 1.0,
          "Amount": 1.0,
          "Quantity": 1,
          "Redeemed": 1.0,
          "Added": 1.0,
          "SertRedeemed": 1.0,
          "Discount": 1.0,
          "Coupon": "sample string 4"
        },
        {
          "Id": 1,
          "Position": 1,
          "Name": "sample string 1",
          "Guid": "sample string 2",
          "ItemArticle": "sample string 3",
          "Price": 1.0,
          "MinPrice": 1.0,
          "Amount": 1.0,
          "Quantity": 1,
          "Redeemed": 1.0,
          "Added": 1.0,
          "SertRedeemed": 1.0,
          "Discount": 1.0,
          "Coupon": "sample string 4"
        }
      ]
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<OrderInvoicesInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.OrderResponse">
  <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>
  <Invoices>
    <OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice>
      <Added>1</Added>
      <Amount>1</Amount>
      <BarCode>1</BarCode>
      <ChequeTime>2022-08-16T22:43:20.1013361+03:00</ChequeTime>
      <Discount>1</Discount>
      <Guid>sample string 1</Guid>
      <Id>1</Id>
      <InvoiceId>1</InvoiceId>
      <InvoicesData>
        <OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
          <Added>1</Added>
          <Amount>1</Amount>
          <Coupon>sample string 4</Coupon>
          <Discount>1</Discount>
          <Guid>sample string 2</Guid>
          <Id>1</Id>
          <ItemArticle>sample string 3</ItemArticle>
          <MinPrice>1</MinPrice>
          <Name>sample string 1</Name>
          <Position>1</Position>
          <Price>1</Price>
          <Quantity>1</Quantity>
          <Redeemed>1</Redeemed>
          <SertRedeemed>1</SertRedeemed>
        </OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
        <OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
          <Added>1</Added>
          <Amount>1</Amount>
          <Coupon>sample string 4</Coupon>
          <Discount>1</Discount>
          <Guid>sample string 2</Guid>
          <Id>1</Id>
          <ItemArticle>sample string 3</ItemArticle>
          <MinPrice>1</MinPrice>
          <Name>sample string 1</Name>
          <Position>1</Position>
          <Price>1</Price>
          <Quantity>1</Quantity>
          <Redeemed>1</Redeemed>
          <SertRedeemed>1</SertRedeemed>
        </OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
      </InvoicesData>
      <Number>sample string 3</Number>
      <Redeemed>1</Redeemed>
      <Refund>true</Refund>
      <SertRedeemed>1</SertRedeemed>
      <Status>sample string 2</Status>
      <СhequeId>1</СhequeId>
    </OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice>
    <OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice>
      <Added>1</Added>
      <Amount>1</Amount>
      <BarCode>1</BarCode>
      <ChequeTime>2022-08-16T22:43:20.1013361+03:00</ChequeTime>
      <Discount>1</Discount>
      <Guid>sample string 1</Guid>
      <Id>1</Id>
      <InvoiceId>1</InvoiceId>
      <InvoicesData>
        <OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
          <Added>1</Added>
          <Amount>1</Amount>
          <Coupon>sample string 4</Coupon>
          <Discount>1</Discount>
          <Guid>sample string 2</Guid>
          <Id>1</Id>
          <ItemArticle>sample string 3</ItemArticle>
          <MinPrice>1</MinPrice>
          <Name>sample string 1</Name>
          <Position>1</Position>
          <Price>1</Price>
          <Quantity>1</Quantity>
          <Redeemed>1</Redeemed>
          <SertRedeemed>1</SertRedeemed>
        </OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
        <OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
          <Added>1</Added>
          <Amount>1</Amount>
          <Coupon>sample string 4</Coupon>
          <Discount>1</Discount>
          <Guid>sample string 2</Guid>
          <Id>1</Id>
          <ItemArticle>sample string 3</ItemArticle>
          <MinPrice>1</MinPrice>
          <Name>sample string 1</Name>
          <Position>1</Position>
          <Price>1</Price>
          <Quantity>1</Quantity>
          <Redeemed>1</Redeemed>
          <SertRedeemed>1</SertRedeemed>
        </OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice.OrderInvoicesInfoInvoiceData>
      </InvoicesData>
      <Number>sample string 3</Number>
      <Redeemed>1</Redeemed>
      <Refund>true</Refund>
      <SertRedeemed>1</SertRedeemed>
      <Status>sample string 2</Status>
      <СhequeId>1</СhequeId>
    </OrderInvoicesInfoResponse.OrderInvoicesInfoInvoice>
  </Invoices>
</OrderInvoicesInfoResponse>