GET api/ordertype
API for getting order types
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
OrderTypeResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderTypes |
List of order types added for the location |
Collection of OrderTypeDto |
None. |
| Status |
Status for response |
RStatus |
None. |
| Desc |
description of response |
string |
None. |
Response Formats
application/json
Sample:
{
"OrderTypes": [
{
"OrderTypeID": 1,
"Name": "Dine In",
"TableSelection": true,
"DeliveryAllowed": false,
"PackageCosting": false,
"RefrenceAllowed": false,
"StatusID": 1
},
{
"OrderTypeID": 2,
"Name": "Take Away",
"TableSelection": false,
"DeliveryAllowed": false,
"PackageCosting": true,
"RefrenceAllowed": false,
"StatusID": 1
}
],
"Status": 1,
"Desc": "Success"
}
text/json
Sample:
{
"OrderTypes": [
{
"OrderTypeID": 1,
"Name": "sample string 2",
"TableSelection": true,
"DeliveryAllowed": true,
"PackageCosting": true,
"RefrenceAllowed": true,
"StatusID": 1
},
{
"OrderTypeID": 1,
"Name": "sample string 2",
"TableSelection": true,
"DeliveryAllowed": true,
"PackageCosting": true,
"RefrenceAllowed": true,
"StatusID": 1
}
],
"Status": 1,
"Desc": "sample string 1"
}
text/xml
Sample:
<OrderTypeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.Response">
<Desc>sample string 1</Desc>
<Status>Success</Status>
<OrderTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/BusinessEntities">
<d2p1:OrderTypeDto>
<d2p1:DeliveryAllowed>true</d2p1:DeliveryAllowed>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:OrderTypeID>1</d2p1:OrderTypeID>
<d2p1:PackageCosting>true</d2p1:PackageCosting>
<d2p1:RefrenceAllowed>true</d2p1:RefrenceAllowed>
<d2p1:StatusID>Active</d2p1:StatusID>
<d2p1:TableSelection>true</d2p1:TableSelection>
</d2p1:OrderTypeDto>
<d2p1:OrderTypeDto>
<d2p1:DeliveryAllowed>true</d2p1:DeliveryAllowed>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:OrderTypeID>1</d2p1:OrderTypeID>
<d2p1:PackageCosting>true</d2p1:PackageCosting>
<d2p1:RefrenceAllowed>true</d2p1:RefrenceAllowed>
<d2p1:StatusID>Active</d2p1:StatusID>
<d2p1:TableSelection>true</d2p1:TableSelection>
</d2p1:OrderTypeDto>
</OrderTypes>
</OrderTypeResponse>