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": "64f13fca-ec47-44da-b65b-5a0a1d4de4f4", "OrderNumber": "sample string 2", "OrderDate": "2024-11-21T11:44:11.4676829+05:00", "UpdateDate": "2024-11-21T11:44:11.4676829+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": "14f71576-1fad-4264-9ee3-0c7bf3e3f57b", "CategoryId": "b6753998-a085-43f0-9a01-c53a43c3430f", "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": "64f13fca-ec47-44da-b65b-5a0a1d4de4f4", "OrderNumber": "sample string 2", "OrderDate": "2024-11-21T11:44:11.4676829+05:00", "UpdateDate": "2024-11-21T11:44:11.4676829+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": "14f71576-1fad-4264-9ee3-0c7bf3e3f57b", "CategoryId": "b6753998-a085-43f0-9a01-c53a43c3430f", "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":"64f13fca-ec47-44da-b65b-5a0a1d4de4f4","OrderNumber":"sample string 2","OrderDate":"2024-11-21T11:44:11.4676829+05:00","UpdateDate":"2024-11-21T11:44:11.4676829+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":"14f71576-1fad-4264-9ee3-0c7bf3e3f57b","CategoryId":"b6753998-a085-43f0-9a01-c53a43c3430f","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":"64f13fca-ec47-44da-b65b-5a0a1d4de4f4","OrderNumber":"sample string 2","OrderDate":"2024-11-21T11:44:11.4676829+05:00","UpdateDate":"2024-11-21T11:44:11.4676829+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":"14f71576-1fad-4264-9ee3-0c7bf3e3f57b","CategoryId":"b6753998-a085-43f0-9a01-c53a43c3430f","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>64f13fca-ec47-44da-b65b-5a0a1d4de4f4</OrderGuid> <OrderNumber>sample string 2</OrderNumber> <OrderDate>2024-11-21T11:44:11.4676829+05:00</OrderDate> <UpdateDate>2024-11-21T11:44:11.4676829+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>14f71576-1fad-4264-9ee3-0c7bf3e3f57b</WarehouseId> <CategoryId>b6753998-a085-43f0-9a01-c53a43c3430f</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>64f13fca-ec47-44da-b65b-5a0a1d4de4f4</OrderGuid> <OrderNumber>sample string 2</OrderNumber> <OrderDate>2024-11-21T11:44:11.4676829+05:00</OrderDate> <UpdateDate>2024-11-21T11:44:11.4676829+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>14f71576-1fad-4264-9ee3-0c7bf3e3f57b</WarehouseId> <CategoryId>b6753998-a085-43f0-9a01-c53a43c3430f</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>