POST api/v1/Orders/{id}/Lines
Create new order line with the specified information. Will return HTTP 404 on missing order and HTTP 400 on invalid order line. The returned list of fields are cached.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
CreateOrderLineDtoName | Description | Type | Additional information |
---|---|---|---|
ExtProductId |
External product id of orderline |
string |
Max length: 100 |
ImgUrl |
Image url of orderline |
string |
Max length: 2000 |
Name |
Name of orderline |
string |
Max length: 250 |
Description |
Description of orderline |
string |
None. |
Quantity |
Quantity of orderline |
decimal number |
Required |
Price |
Price of orderline |
decimal number |
Required |
ContactId |
ContactId for orderline |
integer |
None. |
Request Formats
application/json, text/json
{ "ExtProductId": "sample string 1", "ImgUrl": "sample string 2", "Name": "sample string 3", "Description": "sample string 4", "Quantity": 5.0, "Price": 6.0, "ContactId": 1 }
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ReadOrderLineDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of orderline |
integer |
None. |
OrderId |
Id of order |
integer |
None. |
ExtProductId |
External product id of orderline |
string |
Max length: 100 |
ImgUrl |
Image url of orderline |
string |
Max length: 2000 |
Name |
Name of orderline |
string |
Max length: 250 |
Description |
Description of orderline |
string |
None. |
Quantity |
Quantity of orderline |
decimal number |
None. |
Price |
Price of orderline |
decimal number |
None. |
PriceTotal |
Total price of orderline |
decimal number |
None. |
LastModified |
Date and time of last modification od order |
date |
None. |
ContactRegistrationSource |
Registration source of the orderline's contact |
string |
Max length: 50 |
ContactRegistrationDateTime |
Registration datetime of the orderline's contact |
date |
None. |
Response Formats
application/json, text/json
{ "Id": 1, "OrderId": 2, "ExtProductId": "sample string 3", "ImgUrl": "sample string 4", "Name": "sample string 5", "Description": "sample string 6", "Quantity": 7.0, "Price": 8.0, "PriceTotal": 9.0, "LastModified": "2025-08-31T06:09:07.5642253+02:00", "ContactRegistrationSource": "sample string 11", "ContactRegistrationDateTime": "2025-08-31T06:09:07.5642253+02:00" }