POST api/supplierorder/Create
Created 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:29 PM",
"SupplierId": "7203131c-8c13-405b-949c-e022f46edd80",
"Preseason": true,
"IncludingRecyclefee": true,
"LastUpdated": "9/30/2026 6:07:29 PM",
"LastUpdatedByUsername": "sample string 7",
"Note": "sample string 8",
"Lines": [
{
"LineNumber": 1,
"Status": 0,
"StockId": "9422cbbd-3805-4375-9c44-ec172390a304",
"ArticleId": "c77e9798-c13e-40cc-8890-8bb794243615",
"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:29 PM",
"DeliveryDetails": [
{
"Id": "6c92756b-9386-4e4e-8b75-a2028d352eb4",
"DeliveryDate": "9/30/2026 6:07:29 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:29 PM",
"CreatedByUsername": "sample string 7"
},
{
"Id": "6c92756b-9386-4e4e-8b75-a2028d352eb4",
"DeliveryDate": "9/30/2026 6:07:29 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:29 PM",
"CreatedByUsername": "sample string 7"
}
]
},
{
"LineNumber": 1,
"Status": 0,
"StockId": "9422cbbd-3805-4375-9c44-ec172390a304",
"ArticleId": "c77e9798-c13e-40cc-8890-8bb794243615",
"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:29 PM",
"DeliveryDetails": [
{
"Id": "6c92756b-9386-4e4e-8b75-a2028d352eb4",
"DeliveryDate": "9/30/2026 6:07:29 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:29 PM",
"CreatedByUsername": "sample string 7"
},
{
"Id": "6c92756b-9386-4e4e-8b75-a2028d352eb4",
"DeliveryDate": "9/30/2026 6:07:29 PM",
"DeliveredQuantity": 3.0,
"ConfirmedQuantity": 4.0,
"Note": "sample string 5",
"Created": "9/30/2026 6:07:29 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:29.2781476+01:00</LastUpdated> <LastUpdatedByUsername>sample string 7</LastUpdatedByUsername> <Note>sample string 8</Note> <OrderDate>2026-09-30T18:07:29.2781476+01:00</OrderDate> <Preseason>true</Preseason> <Status>Open</Status> <SupplierId>7203131c-8c13-405b-949c-e022f46edd80</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.