POST api/supplierorder/Update
Update a supplier order (purchase order)
Request Information
URI Parameters
None.
Body Parameters
This is the supplier order.
SupplierOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Unique id for a given supplier order. |
integer |
None. |
| Type |
What type of order is this |
SupplierOrderType |
Required |
| Status |
Indicates the status of the order. |
SupplierOrderStatus |
Required |
| BranchId |
Id of associated branch |
integer |
Required |
| OrderDate |
Date when ther order is placed. |
date |
Required |
| SupplierId |
Id of the supplier. |
globally unique identifier |
Required |
| Preseason | boolean |
Required |
|
| IncludingRecyclefee |
Indicating if the order are including recyclefee |
boolean |
Required |
| LastUpdated |
Last date the order was updated. |
date |
Required |
| LastUpdatedByUsername |
The last user who updated the order. |
string |
Required Max length: 128 |
| Note |
A simple text information about the order. |
string |
Max length: 255 |
| Lines |
A list of the articles in the supplier order (purchase order). |
Collection of SupplierOrderLine |
None. |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
{
"Id": 1,
"Type": 0,
"Status": 0,
"BranchId": 1,
"OrderDate": "9/30/2026 6:07:35 PM",
"SupplierId": "25bc70ba-e484-4640-ab3c-3ad1e7db1633",
"Preseason": true,
"IncludingRecyclefee": true,
"LastUpdated": "9/30/2026 6:07:35 PM",
"LastUpdatedByUsername": "sample string 7",
"Note": "sample string 8",
"Lines": [
{
"LineNumber": 1,
"Status": 0,
"StockId": "03ac9f0e-d314-449f-947d-df486e047a20",
"ArticleId": "0f2dd802-2f08-48d0-b4ed-f85295f25e69",
"UnitId": 1,
"OriginalQuantity": 1.0,
"Quantity": 4.0,
"Price": 5.0,
"DiscountPercentage": 6.0,
"Recyclefee": 1.0,
"Note": "sample string 7",
"RequestedDeliveryDate": "9/30/2026 6:07:35 PM",
"DeliveryDetails": [
{
"Id": "b2e7c04e-d3bd-4a13-90a6-859ac13f085a",
"DeliveryDate": "9/30/2026 6:07:35 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:35 PM",
"CreatedByUsername": "sample string 7"
},
{
"Id": "b2e7c04e-d3bd-4a13-90a6-859ac13f085a",
"DeliveryDate": "9/30/2026 6:07:35 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:35 PM",
"CreatedByUsername": "sample string 7"
}
]
},
{
"LineNumber": 1,
"Status": 0,
"StockId": "03ac9f0e-d314-449f-947d-df486e047a20",
"ArticleId": "0f2dd802-2f08-48d0-b4ed-f85295f25e69",
"UnitId": 1,
"OriginalQuantity": 1.0,
"Quantity": 4.0,
"Price": 5.0,
"DiscountPercentage": 6.0,
"Recyclefee": 1.0,
"Note": "sample string 7",
"RequestedDeliveryDate": "9/30/2026 6:07:35 PM",
"DeliveryDetails": [
{
"Id": "b2e7c04e-d3bd-4a13-90a6-859ac13f085a",
"DeliveryDate": "9/30/2026 6:07:35 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:35 PM",
"CreatedByUsername": "sample string 7"
},
{
"Id": "b2e7c04e-d3bd-4a13-90a6-859ac13f085a",
"DeliveryDate": "9/30/2026 6:07:35 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:35 PM",
"CreatedByUsername": "sample string 7"
}
]
}
]
}
application/xml, text/xml
<SupplierOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Supplier"> <BranchId>1</BranchId> <Id>1</Id> <IncludingRecyclefee>true</IncludingRecyclefee> <LastUpdated>2026-09-30T18:07:35.2866125+01:00</LastUpdated> <LastUpdatedByUsername>sample string 7</LastUpdatedByUsername> <Note>sample string 8</Note> <OrderDate>2026-09-30T18:07:35.2866125+01:00</OrderDate> <Preseason>true</Preseason> <Status>Open</Status> <SupplierId>25bc70ba-e484-4640-ab3c-3ad1e7db1633</SupplierId> <Type>Normal</Type> </SupplierOrder>
application/x-www-form-urlencoded
Response Information
Resource Description
SupplierOrderResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of the supplier order (purchase order). |
integer |
None. |
| BranchId |
Branch id of the supplier order (purchase order). |
integer |
None. |
| WmsId |
Id for WMS on the supplier order (purchase order). |
integer |
None. |
| Success |
Indicates if the request was successfull. |
boolean |
None. |
| Messages |
Is Success is false, then there are error codes and messages in this list |
Collection of SupplierOrderMessage |
None. |
Response Formats
application/json, text/json
Sample not available.