POST api/OrderLine?orderNo={orderNo}
Endpoint to add a new orderline to a given order
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| orderNo | integer |
Required |
Body Parameters
PostSaleOrderLineDto| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderNo | integer |
None. |
|
| LineNo | integer |
None. |
|
| ProductNo | string |
None. |
|
| Description | string |
None. |
|
| Quantity | decimal number |
None. |
|
| VatRate | integer |
None. |
|
| RequiredDeliveryDate | date |
None. |
|
| DesiredProductionStartDate | date |
None. |
|
| TransactionInformation1 | string |
None. |
|
| TransactionInformation2 | string |
None. |
|
| TransactionDate | date |
None. |
|
| FinishDate | date |
None. |
|
| PriceInCurrency | decimal number |
None. |
|
| Finished | decimal number |
None. |
|
| DiscountPercent1 | decimal number |
None. |
|
| DiscountPercent2 | decimal number |
None. |
|
| CostPriceInCurrency | decimal number |
None. |
|
| WarehouseNo | integer |
None. |
|
| ProcessingMethod1 | integer |
None. |
|
| UnitNo | integer |
None. |
|
| EmployeeNo | integer |
None. |
|
| SellerOrBuyer | integer |
None. |
|
| OrgUnit2No | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"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
}
application/xml, text/xml
Sample:
<PostSaleOrderLineDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Post"> <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:42.7092146+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:42.7092146+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:42.7092146+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:42.7092146+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>
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. |