POST api/Order
Request Information
URI Parameters
None.
Body Parameters
Order| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CustomerName | string |
None. |
|
| CustomerAddress | string |
None. |
|
| CustomerPhone | string |
None. |
|
| CustomerEmail | string |
None. |
|
| CustomerState | string |
None. |
|
| OrderNo | string |
None. |
|
| Total | decimal number |
None. |
|
| TransactionRef | string |
None. |
|
| ProductOrders | Collection of ProductOrder |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OrderResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| TotalAmount | decimal number |
None. |
|
| OrderNo | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"TotalAmount": 2.0,
"OrderNo": "sample string 3"
}
application/xml, text/xml
Sample:
<OrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RoeFarmsApi.Controllers"> <Message>sample string 1</Message> <OrderNo>sample string 3</OrderNo> <TotalAmount>2</TotalAmount> </OrderResponse>