GET api/OrdersList?UserGuid={UserGuid}&ApiKey={ApiKey}&DateFrom={DateFrom}&DateTo={DateTo}&ContragentGuid={ContragentGuid}
Возвращает список заказов за данный период для выбранного контрагента
Информация о запросе
URI параметры
Имя | Описание | Тип | Дополнительная информация |
---|---|---|---|
UserGuid |
Ваш UserGuid |
globally unique identifier |
Required |
ApiKey |
Ваш ApiKey |
string |
Required |
DateFrom |
Дата "от" в формате yyyy-MM-dd. Если не задано, то устанавливается в минус 30 дней от текущей даты |
date |
Нет. |
DateTo |
Дата "до" в формате yyyy-MM-dd. Если не задано, то устанавливается в текущую дату |
date |
Нет. |
ContragentGuid |
Guid контрагента (необязательное) |
string |
Нет. |
Параметры тела запроса
Нет.
Информация об ответе
Описание ресурсов
OrdersListResponseИмя | Описание | Тип | Дополнительная информация |
---|---|---|---|
OrdersList |
Список заказов |
Коллекция OrderViewModel |
Нет. |
IsError |
Указывает завершился ли запрос с ошибкой или нет |
boolean |
Нет. |
ErrorMessage |
Сообщение об ошибке |
string |
Нет. |
Форматы ответа
application/json, text/json
Пример:
{ "OrdersList": [ { "OrderItemId": 1, "OrderGuid": "db21bff2-748a-472e-b7f9-1e917862080d", "OrderNumber": "sample string 2", "OrderDate": "2024-11-21T11:44:13.3583459+05:00", "UpdateDate": "2024-11-21T11:44:13.3583459+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": "03e386a5-dede-478b-8d5b-c141cca4814a", "CategoryId": "5e315f5d-2e33-4fa9-ab52-957b8f838ae9", "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": "db21bff2-748a-472e-b7f9-1e917862080d", "OrderNumber": "sample string 2", "OrderDate": "2024-11-21T11:44:13.3583459+05:00", "UpdateDate": "2024-11-21T11:44:13.3583459+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": "03e386a5-dede-478b-8d5b-c141cca4814a", "CategoryId": "5e315f5d-2e33-4fa9-ab52-957b8f838ae9", "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":"db21bff2-748a-472e-b7f9-1e917862080d","OrderNumber":"sample string 2","OrderDate":"2024-11-21T11:44:13.3583459+05:00","UpdateDate":"2024-11-21T11:44:13.3583459+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":"03e386a5-dede-478b-8d5b-c141cca4814a","CategoryId":"5e315f5d-2e33-4fa9-ab52-957b8f838ae9","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":"db21bff2-748a-472e-b7f9-1e917862080d","OrderNumber":"sample string 2","OrderDate":"2024-11-21T11:44:13.3583459+05:00","UpdateDate":"2024-11-21T11:44:13.3583459+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":"03e386a5-dede-478b-8d5b-c141cca4814a","CategoryId":"5e315f5d-2e33-4fa9-ab52-957b8f838ae9","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>db21bff2-748a-472e-b7f9-1e917862080d</OrderGuid> <OrderNumber>sample string 2</OrderNumber> <OrderDate>2024-11-21T11:44:13.3583459+05:00</OrderDate> <UpdateDate>2024-11-21T11:44:13.3583459+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>03e386a5-dede-478b-8d5b-c141cca4814a</WarehouseId> <CategoryId>5e315f5d-2e33-4fa9-ab52-957b8f838ae9</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>db21bff2-748a-472e-b7f9-1e917862080d</OrderGuid> <OrderNumber>sample string 2</OrderNumber> <OrderDate>2024-11-21T11:44:13.3583459+05:00</OrderDate> <UpdateDate>2024-11-21T11:44:13.3583459+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>03e386a5-dede-478b-8d5b-c141cca4814a</WarehouseId> <CategoryId>5e315f5d-2e33-4fa9-ab52-957b8f838ae9</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>