POST api/Orders
Request Information
URI Parameters
None.
Body Parameters
OrderMstrName | Description | Type | Additional information |
---|---|---|---|
OrderMasterId | integer |
None. |
|
OrderNum | string |
None. |
|
Dt | date |
None. |
|
CustomerId | integer |
None. |
|
PaymentMethod | integer |
None. |
|
Location | string |
None. |
|
Total | decimal number |
None. |
|
OrderDetails | Collection of OrderDetails |
None. |
Request Formats
application/json, text/json
Sample:
{ "OrderMasterId": 1, "OrderNum": "sample string 2", "Dt": "2025-04-28T02:48:58.9589158-07:00", "CustomerId": 4, "PaymentMethod": 5, "Location": "sample string 6", "Total": 7.0, "OrderDetails": [ { "OrderDetailsId": 1, "OrderMasterId": 2, "Mealsid": 3, "Qty": 4, "Price": 5.0 }, { "OrderDetailsId": 1, "OrderMasterId": 2, "Mealsid": 3, "Qty": 4, "Price": 5.0 } ] }
text/html
Sample:
{"OrderMasterId":1,"OrderNum":"sample string 2","Dt":"2025-04-28T02:48:58.9589158-07:00","CustomerId":4,"PaymentMethod":5,"Location":"sample string 6","Total":7.0,"OrderDetails":[{"OrderDetailsId":1,"OrderMasterId":2,"Mealsid":3,"Qty":4,"Price":5.0},{"OrderDetailsId":1,"OrderMasterId":2,"Mealsid":3,"Qty":4,"Price":5.0}]}
application/xml, text/xml
Sample:
<OrderMstr xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNXAPItoFlutter.Models"> <CustomerId>4</CustomerId> <Dt>2025-04-28T02:48:58.9589158-07:00</Dt> <Location>sample string 6</Location> <OrderDetails> <OrderDetails> <Mealsid>3</Mealsid> <OrderDetailsId>1</OrderDetailsId> <OrderMasterId>2</OrderMasterId> <Price>5</Price> <Qty>4</Qty> </OrderDetails> <OrderDetails> <Mealsid>3</Mealsid> <OrderDetailsId>1</OrderDetailsId> <OrderMasterId>2</OrderMasterId> <Price>5</Price> <Qty>4</Qty> </OrderDetails> </OrderDetails> <OrderMasterId>1</OrderMasterId> <OrderNum>sample string 2</OrderNum> <PaymentMethod>5</PaymentMethod> <Total>7</Total> </OrderMstr>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json, text/html
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>