GET api/OrderDetails?UserGuid={UserGuid}&ApiKey={ApiKey}&OrderGuid={OrderGuid}

Возвращает информацию по заказу по заданному идентификатору

Информация о запросе

URI параметры

ИмяОписаниеТипДополнительная информация
UserGuid

Ваш UserGuid

globally unique identifier

Required

ApiKey

Ваш ApiKey

string

Required

OrderGuid

Идентификатор (GUID) заказа

globally unique identifier

Required

Параметры тела запроса

Нет.

Информация об ответе

Описание ресурсов

OrdersListResponse
ИмяОписаниеТипДополнительная информация
OrdersList

Список заказов

Коллекция OrderViewModel

Нет.

IsError

Указывает завершился ли запрос с ошибкой или нет

boolean

Нет.

ErrorMessage

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

string

Нет.

Форматы ответа

application/json, text/json

Пример:
{
  "OrdersList": [
    {
      "OrderItemId": 1,
      "OrderGuid": "3b1d9d15-4c48-4a47-aa35-380e2d9c47d8",
      "OrderNumber": "sample string 2",
      "OrderDate": "2019-10-17T14:28:07.3072979+06:00",
      "UpdateDate": "2019-10-17T14:28:07.3072979+06:00",
      "Contragent": "sample string 5",
      "ContragentGuid": "sample string 6",
      "Count": 7,
      "Price": 8.0,
      "TotalSum": 9.0,
      "Status": "sample string 10",
      "CancelReason": "sample string 11",
      "StatusCode": 12,
      "WarehouseName": "sample string 13",
      "WarehouseId": "c14e0568-0e40-4d86-9639-0dbd0a7b9bc0",
      "CategoryId": "ea58b6a7-8d99-4dd3-bab8-e79a6e90f56e",
      "Article": "sample string 16",
      "Brand": "sample string 17",
      "Name": "sample string 18",
      "ExpectedDelivery": 19,
      "GuaranteedDelivery": 20,
      "Unit": "sample string 21",
      "Comment": "sample string 22"
    },
    {
      "OrderItemId": 1,
      "OrderGuid": "3b1d9d15-4c48-4a47-aa35-380e2d9c47d8",
      "OrderNumber": "sample string 2",
      "OrderDate": "2019-10-17T14:28:07.3072979+06:00",
      "UpdateDate": "2019-10-17T14:28:07.3072979+06:00",
      "Contragent": "sample string 5",
      "ContragentGuid": "sample string 6",
      "Count": 7,
      "Price": 8.0,
      "TotalSum": 9.0,
      "Status": "sample string 10",
      "CancelReason": "sample string 11",
      "StatusCode": 12,
      "WarehouseName": "sample string 13",
      "WarehouseId": "c14e0568-0e40-4d86-9639-0dbd0a7b9bc0",
      "CategoryId": "ea58b6a7-8d99-4dd3-bab8-e79a6e90f56e",
      "Article": "sample string 16",
      "Brand": "sample string 17",
      "Name": "sample string 18",
      "ExpectedDelivery": 19,
      "GuaranteedDelivery": 20,
      "Unit": "sample string 21",
      "Comment": "sample string 22"
    }
  ],
  "IsError": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Пример:
<OrdersListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PhaetonExternalApi.ViewModels">
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsError>true</IsError>
  <OrdersList>
    <OrderViewModel>
      <Article>sample string 16</Article>
      <Brand>sample string 17</Brand>
      <CancelReason>sample string 11</CancelReason>
      <CategoryId>ea58b6a7-8d99-4dd3-bab8-e79a6e90f56e</CategoryId>
      <Comment>sample string 22</Comment>
      <Contragent>sample string 5</Contragent>
      <ContragentGuid>sample string 6</ContragentGuid>
      <Count>7</Count>
      <ExpectedDelivery>19</ExpectedDelivery>
      <GuaranteedDelivery>20</GuaranteedDelivery>
      <Name>sample string 18</Name>
      <OrderDate>2019-10-17T14:28:07.3072979+06:00</OrderDate>
      <OrderGuid>3b1d9d15-4c48-4a47-aa35-380e2d9c47d8</OrderGuid>
      <OrderItemId>1</OrderItemId>
      <OrderNumber>sample string 2</OrderNumber>
      <Price>8</Price>
      <Status>sample string 10</Status>
      <StatusCode>12</StatusCode>
      <TotalSum>9</TotalSum>
      <Unit>sample string 21</Unit>
      <UpdateDate>2019-10-17T14:28:07.3072979+06:00</UpdateDate>
      <WarehouseId>c14e0568-0e40-4d86-9639-0dbd0a7b9bc0</WarehouseId>
      <WarehouseName>sample string 13</WarehouseName>
    </OrderViewModel>
    <OrderViewModel>
      <Article>sample string 16</Article>
      <Brand>sample string 17</Brand>
      <CancelReason>sample string 11</CancelReason>
      <CategoryId>ea58b6a7-8d99-4dd3-bab8-e79a6e90f56e</CategoryId>
      <Comment>sample string 22</Comment>
      <Contragent>sample string 5</Contragent>
      <ContragentGuid>sample string 6</ContragentGuid>
      <Count>7</Count>
      <ExpectedDelivery>19</ExpectedDelivery>
      <GuaranteedDelivery>20</GuaranteedDelivery>
      <Name>sample string 18</Name>
      <OrderDate>2019-10-17T14:28:07.3072979+06:00</OrderDate>
      <OrderGuid>3b1d9d15-4c48-4a47-aa35-380e2d9c47d8</OrderGuid>
      <OrderItemId>1</OrderItemId>
      <OrderNumber>sample string 2</OrderNumber>
      <Price>8</Price>
      <Status>sample string 10</Status>
      <StatusCode>12</StatusCode>
      <TotalSum>9</TotalSum>
      <Unit>sample string 21</Unit>
      <UpdateDate>2019-10-17T14:28:07.3072979+06:00</UpdateDate>
      <WarehouseId>c14e0568-0e40-4d86-9639-0dbd0a7b9bc0</WarehouseId>
      <WarehouseName>sample string 13</WarehouseName>
    </OrderViewModel>
  </OrdersList>
</OrdersListResponse>