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": "e66199af-7252-43fd-9588-82bed77b202f", "OrderNumber": "sample string 2", "OrderDate": "2025-04-04T02:06:48.3713424+05:00", "UpdateDate": "2025-04-04T02:06:48.3713424+05: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": "2dfcae91-b842-42c4-9b24-d9ce9ea60548", "CategoryId": "30f74869-b5f0-4e93-9092-065eb0a36f53", "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": "e66199af-7252-43fd-9588-82bed77b202f", "OrderNumber": "sample string 2", "OrderDate": "2025-04-04T02:06:48.3713424+05:00", "UpdateDate": "2025-04-04T02:06:48.3713424+05: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": "2dfcae91-b842-42c4-9b24-d9ce9ea60548", "CategoryId": "30f74869-b5f0-4e93-9092-065eb0a36f53", "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" }
multipart/form-data
Пример:
{"OrdersList":[{"OrderItemId":1,"OrderGuid":"e66199af-7252-43fd-9588-82bed77b202f","OrderNumber":"sample string 2","OrderDate":"2025-04-04T02:06:48.3713424+05:00","UpdateDate":"2025-04-04T02:06:48.3713424+05: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":"2dfcae91-b842-42c4-9b24-d9ce9ea60548","CategoryId":"30f74869-b5f0-4e93-9092-065eb0a36f53","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":"e66199af-7252-43fd-9588-82bed77b202f","OrderNumber":"sample string 2","OrderDate":"2025-04-04T02:06:48.3713424+05:00","UpdateDate":"2025-04-04T02:06:48.3713424+05: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":"2dfcae91-b842-42c4-9b24-d9ce9ea60548","CategoryId":"30f74869-b5f0-4e93-9092-065eb0a36f53","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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <IsError>true</IsError> <ErrorMessage>sample string 2</ErrorMessage> <OrdersList> <OrderViewModel> <OrderItemId>1</OrderItemId> <OrderGuid>e66199af-7252-43fd-9588-82bed77b202f</OrderGuid> <OrderNumber>sample string 2</OrderNumber> <OrderDate>2025-04-04T02:06:48.3713424+05:00</OrderDate> <UpdateDate>2025-04-04T02:06:48.3713424+05:00</UpdateDate> <Contragent>sample string 5</Contragent> <ContragentGuid>sample string 6</ContragentGuid> <Count>7</Count> <Price>8</Price> <TotalSum>9</TotalSum> <Status>sample string 10</Status> <CancelReason>sample string 11</CancelReason> <StatusCode>12</StatusCode> <WarehouseName>sample string 13</WarehouseName> <WarehouseId>2dfcae91-b842-42c4-9b24-d9ce9ea60548</WarehouseId> <CategoryId>30f74869-b5f0-4e93-9092-065eb0a36f53</CategoryId> <Article>sample string 16</Article> <Brand>sample string 17</Brand> <Name>sample string 18</Name> <ExpectedDelivery>19</ExpectedDelivery> <GuaranteedDelivery>20</GuaranteedDelivery> <Unit>sample string 21</Unit> <Comment>sample string 22</Comment> </OrderViewModel> <OrderViewModel> <OrderItemId>1</OrderItemId> <OrderGuid>e66199af-7252-43fd-9588-82bed77b202f</OrderGuid> <OrderNumber>sample string 2</OrderNumber> <OrderDate>2025-04-04T02:06:48.3713424+05:00</OrderDate> <UpdateDate>2025-04-04T02:06:48.3713424+05:00</UpdateDate> <Contragent>sample string 5</Contragent> <ContragentGuid>sample string 6</ContragentGuid> <Count>7</Count> <Price>8</Price> <TotalSum>9</TotalSum> <Status>sample string 10</Status> <CancelReason>sample string 11</CancelReason> <StatusCode>12</StatusCode> <WarehouseName>sample string 13</WarehouseName> <WarehouseId>2dfcae91-b842-42c4-9b24-d9ce9ea60548</WarehouseId> <CategoryId>30f74869-b5f0-4e93-9092-065eb0a36f53</CategoryId> <Article>sample string 16</Article> <Brand>sample string 17</Brand> <Name>sample string 18</Name> <ExpectedDelivery>19</ExpectedDelivery> <GuaranteedDelivery>20</GuaranteedDelivery> <Unit>sample string 21</Unit> <Comment>sample string 22</Comment> </OrderViewModel> </OrdersList> </OrdersListResponse>