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 | integer |
None. |
|
| Type | SupplierOrderType |
Required |
|
| Status | SupplierOrderStatus |
Required |
|
| BranchId | integer |
Required |
|
| OrderDate | date |
Required |
|
| SupplierId | globally unique identifier |
Required |
|
| Preseason | boolean |
Required |
|
| IncludingRecyclefee | boolean |
Required |
|
| LastUpdated | date |
Required |
|
| LastUpdatedByUsername | string |
Required Max length: 128 |
|
| Note | string |
Max length: 255 |
|
| Lines | Collection of SupplierOrderLine |
None. |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Type": 0,
"Status": 0,
"BranchId": 1,
"OrderDate": "2026-01-21 22:50:34",
"SupplierId": "5f8f579a-e99e-4eb5-8690-02bde38542c6",
"Preseason": true,
"IncludingRecyclefee": true,
"LastUpdated": "2026-01-21 22:50:34",
"LastUpdatedByUsername": "sample string 7",
"Note": "sample string 8",
"Lines": [
{
"LineNumber": 1,
"Status": 0,
"StockId": "d85341a0-9bcd-4a61-b39b-c74aa47279b3",
"ArticleId": "444601f6-94f7-4f4b-9103-e066dc6765aa",
"UnitId": 1,
"OriginalQuantity": 1.0,
"Quantity": 4.0,
"Price": 5.0,
"DiscountPercentage": 6.0,
"Recyclefee": 1.0,
"Note": "sample string 7",
"RequestedDeliveryDate": "2026-01-21 22:50:34",
"DeliveryDetails": [
{
"Id": "24dbeefa-14a2-42d8-95ea-01841431a3ef",
"DeliveryDate": "2026-01-21 22:50:34",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "2026-01-21 22:50:34",
"CreatedByUsername": "sample string 7"
},
{
"Id": "24dbeefa-14a2-42d8-95ea-01841431a3ef",
"DeliveryDate": "2026-01-21 22:50:34",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "2026-01-21 22:50:34",
"CreatedByUsername": "sample string 7"
}
]
},
{
"LineNumber": 1,
"Status": 0,
"StockId": "d85341a0-9bcd-4a61-b39b-c74aa47279b3",
"ArticleId": "444601f6-94f7-4f4b-9103-e066dc6765aa",
"UnitId": 1,
"OriginalQuantity": 1.0,
"Quantity": 4.0,
"Price": 5.0,
"DiscountPercentage": 6.0,
"Recyclefee": 1.0,
"Note": "sample string 7",
"RequestedDeliveryDate": "2026-01-21 22:50:34",
"DeliveryDetails": [
{
"Id": "24dbeefa-14a2-42d8-95ea-01841431a3ef",
"DeliveryDate": "2026-01-21 22:50:34",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "2026-01-21 22:50:34",
"CreatedByUsername": "sample string 7"
},
{
"Id": "24dbeefa-14a2-42d8-95ea-01841431a3ef",
"DeliveryDate": "2026-01-21 22:50:34",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "2026-01-21 22:50:34",
"CreatedByUsername": "sample string 7"
}
]
}
]
}
application/xml, text/xml
Sample:
<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-01-21T22:50:34.9452781+01:00</LastUpdated> <LastUpdatedByUsername>sample string 7</LastUpdatedByUsername> <Note>sample string 8</Note> <OrderDate>2026-01-21T22:50:34.9452781+01:00</OrderDate> <Preseason>true</Preseason> <Status>Open</Status> <SupplierId>5f8f579a-e99e-4eb5-8690-02bde38542c6</SupplierId> <Type>Normal</Type> </SupplierOrder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SupplierOrderResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| BranchId | integer |
None. |
|
| WmsId | integer |
None. |
|
| Success | boolean |
None. |
|
| Messages | Collection of SupplierOrderMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.