GET api/OrderDetails?UserGuid={UserGuid}&ApiKey={ApiKey}&OrderItemId={OrderItemId}
Возращает информацию о заказе по идентификатору позиции заказа
Информация о запросе
URI параметры
Имя | Описание | Тип | Дополнительная информация |
---|---|---|---|
UserGuid |
Ваш UserGuid |
globally unique identifier |
Required |
ApiKey |
Ваш ApiKey |
string |
Required |
OrderItemId |
Идентификатор позиции заказа |
integer |
Required |
Параметры тела запроса
Нет.
Информация об ответе
Описание ресурсов
OrderDetailsResponseИмя | Описание | Тип | Дополнительная информация |
---|---|---|---|
OrderItem |
Позиция заказа |
OrderViewModel |
Нет. |
IsError |
Указывает завершился ли запрос с ошибкой или нет |
boolean |
Нет. |
ErrorMessage |
Сообщение об ошибке |
string |
Нет. |
Форматы ответа
application/json, text/json
Пример:
{ "OrderItem": { "OrderItemId": 1, "OrderGuid": "e6378d50-1fa8-4213-aa93-94e382abdc07", "OrderNumber": "sample string 2", "OrderDate": "2024-09-18T12:19:12.8711913+05:00", "UpdateDate": "2024-09-18T12:19:12.8711913+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": "81fff327-d8ff-41c9-b891-3c089c49b2fc", "CategoryId": "d61049cc-1896-4bf4-b7bb-55a7a224cefc", "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
Пример:
{"OrderItem":{"OrderItemId":1,"OrderGuid":"e6378d50-1fa8-4213-aa93-94e382abdc07","OrderNumber":"sample string 2","OrderDate":"2024-09-18T12:19:12.8711913+05:00","UpdateDate":"2024-09-18T12:19:12.8711913+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":"81fff327-d8ff-41c9-b891-3c089c49b2fc","CategoryId":"d61049cc-1896-4bf4-b7bb-55a7a224cefc","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
Пример:
<OrderDetailsResponse 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> <OrderItem> <OrderItemId>1</OrderItemId> <OrderGuid>e6378d50-1fa8-4213-aa93-94e382abdc07</OrderGuid> <OrderNumber>sample string 2</OrderNumber> <OrderDate>2024-09-18T12:19:12.8711913+05:00</OrderDate> <UpdateDate>2024-09-18T12:19:12.8711913+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>81fff327-d8ff-41c9-b891-3c089c49b2fc</WarehouseId> <CategoryId>d61049cc-1896-4bf4-b7bb-55a7a224cefc</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> </OrderItem> </OrderDetailsResponse>