POST api/Special/UpdateOrder
Обновление заказа
Request Information
URI Parameters
None.
Body Parameters
DefaultOrderRequestName | Description | Type | Additional information |
---|---|---|---|
OrderItems | Collection of DefaultOrderItemRequest |
None. |
|
Id | integer |
None. |
|
OrderId | integer |
None. |
|
OrderNumber |
Номер заказа |
string |
None. |
OrderDate |
Дата заказа |
date |
None. |
FirmCode |
Код фирмы |
string |
None. |
Name |
ФИО клиента |
string |
None. |
FirstName | string |
None. |
|
LastName | string |
None. |
|
FatherName | string |
None. |
|
Company |
Компания |
string |
None. |
CompCode | string |
None. |
|
CompCode2 | string |
None. |
|
|
string |
None. |
|
Phone |
Телефон |
string |
None. |
PaymentType |
Тип оплаты |
RefRequest |
None. |
DeliveryType |
Тип доставки |
RefRequest |
None. |
Note |
Комментарий |
string |
None. |
Extra |
Доп. параметры |
Dictionary of string [key] and Object [value] |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "OrderItems": [ { "Code": "sample string 1", "Name": "sample string 2", "Quantity": 3.0, "Price": 4.0, "Note": "sample string 5" }, { "Code": "sample string 1", "Name": "sample string 2", "Quantity": 3.0, "Price": 4.0, "Note": "sample string 5" } ], "Id": 1, "OrderId": 1, "OrderNumber": "sample string 1", "OrderDate": "2025-05-22T08:30:54.4089552+03:00", "FirmCode": "sample string 2", "Name": "sample string 3", "FirstName": "sample string 4", "LastName": "sample string 5", "FatherName": "sample string 6", "Company": "sample string 7", "CompCode": "sample string 8", "CompCode2": "sample string 9", "Email": "sample string 10", "Phone": "sample string 11", "PaymentType": { "Code": "sample string 1", "ID": 1, "Guid": "1e94e00e-a04a-4f1c-9ffe-07a91786867c", "Name": "sample string 3" }, "DeliveryType": { "Code": "sample string 1", "ID": 1, "Guid": "1e94e00e-a04a-4f1c-9ffe-07a91786867c", "Name": "sample string 3" }, "Note": "sample string 12", "Extra": { "sample string 1": {}, "sample string 3": {} } }
application/xml, text/xml
Sample:
<OrderHelper.OrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apec.WebApi.Classes"> <CompCode>sample string 8</CompCode> <CompCode2>sample string 9</CompCode2> <Company>sample string 7</Company> <DeliveryType xmlns:d2p1="http://schemas.datacontract.org/2004/07/Apec.WebApi.Models"> <d2p1:Guid>1e94e00e-a04a-4f1c-9ffe-07a91786867c</d2p1:Guid> <d2p1:ID>1</d2p1:ID> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Code>sample string 1</d2p1:Code> </DeliveryType> <Email>sample string 10</Email> <Extra xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </Extra> <FatherName>sample string 6</FatherName> <FirmCode>sample string 2</FirmCode> <FirstName>sample string 4</FirstName> <Id>1</Id> <LastName>sample string 5</LastName> <Name>sample string 3</Name> <Note>sample string 12</Note> <OrderDate>2025-05-22T08:30:54.4089552+03:00</OrderDate> <OrderId>1</OrderId> <OrderNumber>sample string 1</OrderNumber> <PaymentType xmlns:d2p1="http://schemas.datacontract.org/2004/07/Apec.WebApi.Models"> <d2p1:Guid>1e94e00e-a04a-4f1c-9ffe-07a91786867c</d2p1:Guid> <d2p1:ID>1</d2p1:ID> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:Code>sample string 1</d2p1:Code> </PaymentType> <Phone>sample string 11</Phone> <OrderItems> <OrderHelper.OrderItemRequest> <Code>sample string 1</Code> <Name>sample string 2</Name> <Note>sample string 5</Note> <Price>4</Price> <Quantity>3</Quantity> </OrderHelper.OrderItemRequest> <OrderHelper.OrderItemRequest> <Code>sample string 1</Code> <Name>sample string 2</Name> <Note>sample string 5</Note> <Price>4</Price> <Quantity>3</Quantity> </OrderHelper.OrderItemRequest> </OrderItems> </OrderHelper.OrderRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DataResponseName | Description | Type | Additional information |
---|---|---|---|
ID |
ID записи |
integer |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{ "ID": 1 }
application/xml, text/xml
Sample:
<DataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apec.WebApi.Models"> <ID>1</ID> </DataResponse>