POST api/Order
Request Information
URI Parameters
None.
Body Parameters
OrderName | 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-06-16T21:01:04.1997473+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-06-16T21:01:04.1997473+00:00</When> </Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OrderName | 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-06-16T21:01:04.2153803+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-06-16T21:01:04.2153803+00:00</When> </Order>