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. |
|
| 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. |
|
| 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": "2025-12-13 07:53",
"DesiredProductionStartDate": "2025-12-13 07:53",
"TransactionInformation1": "sample string 9",
"TransactionInformation2": "sample string 10",
"TransactionDate": "2025-12-13 07:53",
"FinishDate": "2025-12-13 07:53",
"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": "2025-12-13 07:53",
"DesiredProductionStartDate": "2025-12-13 07:53",
"TransactionInformation1": "sample string 9",
"TransactionInformation2": "sample string 10",
"TransactionDate": "2025-12-13 07:53",
"FinishDate": "2025-12-13 07:53",
"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",
"InvoiceCustomerNo": 4,
"DeliveryAssociateNo": 5,
"InvoiceNo": "sample string 6",
"InvoiceDate": "2025-12-13 07:53",
"RequiredDeliveryDate": "2025-12-13 07:53",
"DeliveryAddress1": "sample string 9",
"DeliveryAddress2": "sample string 10",
"DeliveryAddress3": "sample string 11",
"DeliveryAddress4": "sample string 12",
"DeliveryName": "sample string 13",
"DeliveryPostCode": "sample string 14",
"DeliveryPostalArea": "sample string 15",
"DeliveryVisitPostCode": "sample string 16",
"DeliveryVisitPostalArea": "sample string 17",
"DeliveryCountryNo": 18,
"DeliveryMethod": 19,
"CustomerOrSupplierOrderNo": "sample string 20",
"RequisitionNo": "sample string 21",
"OrderType": 22,
"OrderNo": 23,
"AddressLine1": "sample string 24",
"AddressLine2": "sample string 25",
"PostCode": "sample string 26",
"PostArea": "sample string 27",
"CountryNo": 28,
"OrderDate": "2025-12-13 07:53",
"EmployeeNo": 30,
"SellerOrBuyer": 31,
"OurReference": "sample string 32",
"YourReference": "sample string 33",
"Group1": 34,
"Group2": 35,
"Group3": 36,
"Group4": 37,
"Group5": 38,
"Group6": 39,
"Group7": 40,
"Group8": 41,
"Group9": 42,
"Group10": 43,
"Group11": 44,
"Group12": 45,
"Information1": "sample string 46",
"Information2": "sample string 47",
"Information3": "sample string 48",
"Information4": "sample string 49",
"Information5": "sample string 50",
"Information6": "sample string 51",
"WarehouseNo": 52,
"OrgUnit1No": 53,
"OrgUnit2No": 54,
"OrgUnit3No": 55,
"OrgUnit4No": 56,
"OrgUnit5No": 57,
"OrgUnit6No": 58,
"FactoringNo": "sample string 59",
"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 24</AddressLine1>
<AddressLine2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 25</AddressLine2>
<CountryNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">28</CountryNo>
<EmployeeNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">30</EmployeeNo>
<FactoringNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 59</FactoringNo>
<Group1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">34</Group1>
<Group10 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">43</Group10>
<Group11 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">44</Group11>
<Group12 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">45</Group12>
<Group2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">35</Group2>
<Group3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">36</Group3>
<Group4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">37</Group4>
<Group5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">38</Group5>
<Group6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">39</Group6>
<Group7 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">40</Group7>
<Group8 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">41</Group8>
<Group9 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">42</Group9>
<Information1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 46</Information1>
<Information2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 47</Information2>
<Information3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 48</Information3>
<Information4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 49</Information4>
<Information5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 50</Information5>
<Information6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 51</Information6>
<OrderDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2025-12-13T07:53:53.8296892+01:00</OrderDate>
<OrderNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">23</OrderNo>
<OrgUnit1No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">53</OrgUnit1No>
<OrgUnit2No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">54</OrgUnit2No>
<OrgUnit3No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">55</OrgUnit3No>
<OrgUnit4No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">56</OrgUnit4No>
<OrgUnit5No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">57</OrgUnit5No>
<OrgUnit6No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">58</OrgUnit6No>
<OurReference xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 32</OurReference>
<PostArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 27</PostArea>
<PostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 26</PostCode>
<SellerOrBuyer xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">31</SellerOrBuyer>
<WarehouseNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">52</WarehouseNo>
<YourReference xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 33</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 20</CustomerOrSupplierOrderNo>
<DeliveryAddress1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 9</DeliveryAddress1>
<DeliveryAddress2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 10</DeliveryAddress2>
<DeliveryAddress3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 11</DeliveryAddress3>
<DeliveryAddress4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 12</DeliveryAddress4>
<DeliveryAssociateNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">5</DeliveryAssociateNo>
<DeliveryCountryNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">18</DeliveryCountryNo>
<DeliveryMethod xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">19</DeliveryMethod>
<DeliveryName xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 13</DeliveryName>
<DeliveryPostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 14</DeliveryPostCode>
<DeliveryPostalArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 15</DeliveryPostalArea>
<DeliveryVisitPostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 16</DeliveryVisitPostCode>
<DeliveryVisitPostalArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 17</DeliveryVisitPostalArea>
<InvoiceCustomerNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">4</InvoiceCustomerNo>
<InvoiceDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2025-12-13T07:53:53.8296892+01:00</InvoiceDate>
<InvoiceNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 6</InvoiceNo>
<OrderType xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">22</OrderType>
<RequiredDeliveryDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2025-12-13T07:53:53.8296892+01:00</RequiredDeliveryDate>
<RequisitionNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 21</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">2025-12-13T07:53:53.8296892+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">2025-12-13T07:53:53.8296892+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">2025-12-13T07:53:53.8296892+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">2025-12-13T07:53:53.8296892+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">2025-12-13T07:53:53.8296892+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">2025-12-13T07:53:53.8296892+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">2025-12-13T07:53:53.8296892+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">2025-12-13T07:53:53.8296892+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. |