POST api/SalesOrder?calulateVbsFields={calulateVbsFields}
Endpoint to create a new salesorder
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| calulateVbsFields | boolean |
Default value is False |
Body Parameters
PostSaleOrderDto| Name | Description | Type | Additional information |
|---|---|---|---|
| CurrencyNo | integer |
None. |
|
| Orderlines | Collection of PostSaleOrderLineDto |
None. |
|
| CustomerNo | integer |
None. |
|
| CustomerName | string |
None. |
|
| Label | string |
None. |
|
| InvoiceCustomerNo | integer |
None. |
|
| DeliveryAssociateNo | integer |
None. |
|
| InvoiceNo | string |
None. |
|
| InvoiceDate | date |
None. |
|
| RequiredDeliveryDate | date |
None. |
|
| DeliveryAddress1 | string |
None. |
|
| DeliveryAddress2 | string |
None. |
|
| DeliveryAddress3 | string |
None. |
|
| DeliveryAddress4 | string |
None. |
|
| DeliveryName | string |
None. |
|
| DeliveryPostCode | string |
None. |
|
| DeliveryPostalArea | string |
None. |
|
| DeliveryVisitPostCode | string |
None. |
|
| DeliveryVisitPostalArea | string |
None. |
|
| DeliveryCountryNo | integer |
None. |
|
| DeliveryMethod | integer |
None. |
|
| CustomerOrSupplierOrderNo | string |
None. |
|
| RequisitionNo | string |
None. |
|
| OrderType | integer |
None. |
|
| OrderNo | integer |
None. |
|
| AddressLine1 | string |
None. |
|
| AddressLine2 | string |
None. |
|
| PostCode | string |
None. |
|
| PostArea | string |
None. |
|
| CountryNo | integer |
None. |
|
| OrderDate | date |
None. |
|
| EmployeeNo | integer |
None. |
|
| SellerOrBuyer | integer |
None. |
|
| OurReference | string |
None. |
|
| YourReference | string |
None. |
|
| Group1 | integer |
None. |
|
| Group2 | integer |
None. |
|
| Group3 | integer |
None. |
|
| Group4 | integer |
None. |
|
| Group5 | integer |
None. |
|
| Group6 | integer |
None. |
|
| Group7 | integer |
None. |
|
| Group8 | integer |
None. |
|
| Group9 | integer |
None. |
|
| Group10 | integer |
None. |
|
| Group11 | integer |
None. |
|
| Group12 | integer |
None. |
|
| Information1 | string |
None. |
|
| Information2 | string |
None. |
|
| Information3 | string |
None. |
|
| Information4 | string |
None. |
|
| Information5 | string |
None. |
|
| Information6 | string |
None. |
|
| Information7 | string |
None. |
|
| Information8 | string |
None. |
|
| WarehouseNo | integer |
None. |
|
| OrgUnit1No | integer |
None. |
|
| OrgUnit2No | integer |
None. |
|
| OrgUnit3No | integer |
None. |
|
| OrgUnit4No | integer |
None. |
|
| OrgUnit5No | integer |
None. |
|
| OrgUnit6No | integer |
None. |
|
| FactoringNo | string |
None. |
|
| DmeFields | Dictionary of string [key] and Object [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"CurrencyNo": 1,
"Orderlines": [
{
"OrderNo": 1,
"LineNo": 2,
"ProductNo": "sample string 3",
"Description": "sample string 4",
"Quantity": 5.0,
"VatRate": 6,
"RequiredDeliveryDate": "2026-03-24 07:37",
"DesiredProductionStartDate": "2026-03-24 07:37",
"TransactionInformation1": "sample string 9",
"TransactionInformation2": "sample string 10",
"TransactionDate": "2026-03-24 07:37",
"FinishDate": "2026-03-24 07:37",
"PriceInCurrency": 13.0,
"Finished": 14.0,
"DiscountPercent1": 15.0,
"DiscountPercent2": 16.0,
"CostPriceInCurrency": 17.0,
"WarehouseNo": 18,
"ProcessingMethod1": 19,
"UnitNo": 20,
"EmployeeNo": 21,
"SellerOrBuyer": 22,
"OrgUnit2No": 23
},
{
"OrderNo": 1,
"LineNo": 2,
"ProductNo": "sample string 3",
"Description": "sample string 4",
"Quantity": 5.0,
"VatRate": 6,
"RequiredDeliveryDate": "2026-03-24 07:37",
"DesiredProductionStartDate": "2026-03-24 07:37",
"TransactionInformation1": "sample string 9",
"TransactionInformation2": "sample string 10",
"TransactionDate": "2026-03-24 07:37",
"FinishDate": "2026-03-24 07:37",
"PriceInCurrency": 13.0,
"Finished": 14.0,
"DiscountPercent1": 15.0,
"DiscountPercent2": 16.0,
"CostPriceInCurrency": 17.0,
"WarehouseNo": 18,
"ProcessingMethod1": 19,
"UnitNo": 20,
"EmployeeNo": 21,
"SellerOrBuyer": 22,
"OrgUnit2No": 23
}
],
"CustomerNo": 2,
"CustomerName": "sample string 3",
"Label": "sample string 4",
"InvoiceCustomerNo": 5,
"DeliveryAssociateNo": 6,
"InvoiceNo": "sample string 7",
"InvoiceDate": "2026-03-24 07:37",
"RequiredDeliveryDate": "2026-03-24 07:37",
"DeliveryAddress1": "sample string 10",
"DeliveryAddress2": "sample string 11",
"DeliveryAddress3": "sample string 12",
"DeliveryAddress4": "sample string 13",
"DeliveryName": "sample string 14",
"DeliveryPostCode": "sample string 15",
"DeliveryPostalArea": "sample string 16",
"DeliveryVisitPostCode": "sample string 17",
"DeliveryVisitPostalArea": "sample string 18",
"DeliveryCountryNo": 19,
"DeliveryMethod": 20,
"CustomerOrSupplierOrderNo": "sample string 21",
"RequisitionNo": "sample string 22",
"OrderType": 23,
"OrderNo": 24,
"AddressLine1": "sample string 25",
"AddressLine2": "sample string 26",
"PostCode": "sample string 27",
"PostArea": "sample string 28",
"CountryNo": 29,
"OrderDate": "2026-03-24 07:37",
"EmployeeNo": 31,
"SellerOrBuyer": 32,
"OurReference": "sample string 33",
"YourReference": "sample string 34",
"Group1": 35,
"Group2": 36,
"Group3": 37,
"Group4": 38,
"Group5": 39,
"Group6": 40,
"Group7": 41,
"Group8": 42,
"Group9": 43,
"Group10": 44,
"Group11": 45,
"Group12": 46,
"Information1": "sample string 47",
"Information2": "sample string 48",
"Information3": "sample string 49",
"Information4": "sample string 50",
"Information5": "sample string 51",
"Information6": "sample string 52",
"Information7": "sample string 53",
"Information8": "sample string 54",
"WarehouseNo": 55,
"OrgUnit1No": 56,
"OrgUnit2No": 57,
"OrgUnit3No": 58,
"OrgUnit4No": 59,
"OrgUnit5No": 60,
"OrgUnit6No": 61,
"FactoringNo": "sample string 62",
"DmeFields": {
"sample string 1": {},
"sample string 3": {}
}
}
application/xml, text/xml
Sample:
<PostSaleOrderDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Post">
<DmeFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">
<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>
</DmeFields>
<AddressLine1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 25</AddressLine1>
<AddressLine2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 26</AddressLine2>
<CountryNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">29</CountryNo>
<EmployeeNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">31</EmployeeNo>
<FactoringNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 62</FactoringNo>
<Group1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">35</Group1>
<Group10 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">44</Group10>
<Group11 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">45</Group11>
<Group12 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">46</Group12>
<Group2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">36</Group2>
<Group3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">37</Group3>
<Group4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">38</Group4>
<Group5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">39</Group5>
<Group6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">40</Group6>
<Group7 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">41</Group7>
<Group8 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">42</Group8>
<Group9 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">43</Group9>
<Information1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 47</Information1>
<Information2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 48</Information2>
<Information3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 49</Information3>
<Information4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 50</Information4>
<Information5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 51</Information5>
<Information6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 52</Information6>
<Information7 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 53</Information7>
<Information8 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 54</Information8>
<OrderDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</OrderDate>
<OrderNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">24</OrderNo>
<OrgUnit1No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">56</OrgUnit1No>
<OrgUnit2No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">57</OrgUnit2No>
<OrgUnit3No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">58</OrgUnit3No>
<OrgUnit4No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">59</OrgUnit4No>
<OrgUnit5No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">60</OrgUnit5No>
<OrgUnit6No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">61</OrgUnit6No>
<OurReference xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 33</OurReference>
<PostArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 28</PostArea>
<PostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 27</PostCode>
<SellerOrBuyer xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">32</SellerOrBuyer>
<WarehouseNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">55</WarehouseNo>
<YourReference xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 34</YourReference>
<CustomerName xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 3</CustomerName>
<CustomerNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2</CustomerNo>
<CustomerOrSupplierOrderNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 21</CustomerOrSupplierOrderNo>
<DeliveryAddress1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 10</DeliveryAddress1>
<DeliveryAddress2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 11</DeliveryAddress2>
<DeliveryAddress3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 12</DeliveryAddress3>
<DeliveryAddress4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 13</DeliveryAddress4>
<DeliveryAssociateNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">6</DeliveryAssociateNo>
<DeliveryCountryNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">19</DeliveryCountryNo>
<DeliveryMethod xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">20</DeliveryMethod>
<DeliveryName xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 14</DeliveryName>
<DeliveryPostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 15</DeliveryPostCode>
<DeliveryPostalArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 16</DeliveryPostalArea>
<DeliveryVisitPostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 17</DeliveryVisitPostCode>
<DeliveryVisitPostalArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 18</DeliveryVisitPostalArea>
<InvoiceCustomerNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">5</InvoiceCustomerNo>
<InvoiceDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</InvoiceDate>
<InvoiceNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 7</InvoiceNo>
<Label xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 4</Label>
<OrderType xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">23</OrderType>
<RequiredDeliveryDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</RequiredDeliveryDate>
<RequisitionNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 22</RequisitionNo>
<CurrencyNo>1</CurrencyNo>
<Orderlines>
<PostSaleOrderLineDto>
<CostPriceInCurrency xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">17</CostPriceInCurrency>
<Description xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 4</Description>
<DesiredProductionStartDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</DesiredProductionStartDate>
<DiscountPercent1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">15</DiscountPercent1>
<DiscountPercent2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">16</DiscountPercent2>
<EmployeeNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">21</EmployeeNo>
<FinishDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</FinishDate>
<Finished xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">14</Finished>
<LineNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2</LineNo>
<OrderNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">1</OrderNo>
<OrgUnit2No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">23</OrgUnit2No>
<PriceInCurrency xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">13</PriceInCurrency>
<ProcessingMethod1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">19</ProcessingMethod1>
<ProductNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 3</ProductNo>
<Quantity xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">5</Quantity>
<RequiredDeliveryDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</RequiredDeliveryDate>
<SellerOrBuyer xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">22</SellerOrBuyer>
<TransactionDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</TransactionDate>
<TransactionInformation1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 9</TransactionInformation1>
<TransactionInformation2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 10</TransactionInformation2>
<UnitNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">20</UnitNo>
<VatRate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">6</VatRate>
<WarehouseNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">18</WarehouseNo>
</PostSaleOrderLineDto>
<PostSaleOrderLineDto>
<CostPriceInCurrency xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">17</CostPriceInCurrency>
<Description xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 4</Description>
<DesiredProductionStartDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</DesiredProductionStartDate>
<DiscountPercent1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">15</DiscountPercent1>
<DiscountPercent2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">16</DiscountPercent2>
<EmployeeNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">21</EmployeeNo>
<FinishDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</FinishDate>
<Finished xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">14</Finished>
<LineNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2</LineNo>
<OrderNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">1</OrderNo>
<OrgUnit2No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">23</OrgUnit2No>
<PriceInCurrency xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">13</PriceInCurrency>
<ProcessingMethod1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">19</ProcessingMethod1>
<ProductNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 3</ProductNo>
<Quantity xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">5</Quantity>
<RequiredDeliveryDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</RequiredDeliveryDate>
<SellerOrBuyer xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">22</SellerOrBuyer>
<TransactionDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2026-03-24T07:37:27.4887161+01:00</TransactionDate>
<TransactionInformation1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 9</TransactionInformation1>
<TransactionInformation2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 10</TransactionInformation2>
<UnitNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">20</UnitNo>
<VatRate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">6</VatRate>
<WarehouseNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">18</WarehouseNo>
</PostSaleOrderLineDto>
</Orderlines>
</PostSaleOrderDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |