POST api/Order
Request Information
URI Parameters
None.
Body Parameters
Order| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| AccountName | string |
None. |
|
| CardNumber | string |
None. |
|
| ProductId | integer |
None. |
|
| Quantity | integer |
None. |
|
| When | date |
None. |
|
| ProductName | string |
None. |
|
| ProductEan | string |
None. |
|
| TotalPrice | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"AccountName": "sample string 1",
"CardNumber": "sample string 2",
"ProductId": 1,
"Quantity": 1,
"When": "2025-12-13T03:40:43.8052285+00:00",
"ProductName": "sample string 3",
"ProductEan": "sample string 4",
"TotalPrice": 1.1
}
application/xml, text/xml
Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UnderCutters.Service.ViewModels"> <AccountName>sample string 1</AccountName> <CardNumber>sample string 2</CardNumber> <Id>1</Id> <ProductEan>sample string 4</ProductEan> <ProductId>1</ProductId> <ProductName>sample string 3</ProductName> <Quantity>1</Quantity> <TotalPrice>1.1</TotalPrice> <When>2025-12-13T03:40:43.8052285+00:00</When> </Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Order| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| AccountName | string |
None. |
|
| CardNumber | string |
None. |
|
| ProductId | integer |
None. |
|
| Quantity | integer |
None. |
|
| When | date |
None. |
|
| ProductName | string |
None. |
|
| ProductEan | string |
None. |
|
| TotalPrice | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"AccountName": "sample string 1",
"CardNumber": "sample string 2",
"ProductId": 1,
"Quantity": 1,
"When": "2025-12-13T03:40:43.9458628+00:00",
"ProductName": "sample string 3",
"ProductEan": "sample string 4",
"TotalPrice": 1.1
}
application/xml, text/xml
Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UnderCutters.Service.ViewModels"> <AccountName>sample string 1</AccountName> <CardNumber>sample string 2</CardNumber> <Id>1</Id> <ProductEan>sample string 4</ProductEan> <ProductId>1</ProductId> <ProductName>sample string 3</ProductName> <Quantity>1</Quantity> <TotalPrice>1.1</TotalPrice> <When>2025-12-13T03:40:43.9458628+00:00</When> </Order>