GET api/v{version}/BookingSubtypes
Gets the list of different possible booking subtypes.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| version |
The requested API version |
string |
Required Default value is 2.0 |
Body Parameters
None.
Response Information
Resource Description
Returns the list of booking subtypes (code and name)
Collection of BookingSubtype| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Gets or sets the code that can be used to identify the subtype. |
string |
None. |
| Name |
Gets or sets the friendly name of the subtype. |
string |
None. |
Response Formats
application/json, text/json, application/problem+json
Sample:
[
{
"code": "Demand",
"name": "Demand Response Request"
},
{
"code": "Subscr",
"name": "Registered Subscription"
},
{
"code": "WillCall",
"name": "Will Call"
},
{
"code": "Transportation",
"name": "Transportation"
}
]
application/xml, text/xml
Sample:
<ArrayOfBookingSubtype xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
<BookingSubtype>
<Code>Demand</Code>
<Name>Demand Response Request</Name>
</BookingSubtype>
<BookingSubtype>
<Code>Subscr</Code>
<Name>Registered Subscription</Name>
</BookingSubtype>
<BookingSubtype>
<Code>WillCall</Code>
<Name>Will Call</Name>
</BookingSubtype>
<BookingSubtype>
<Code>Transportation</Code>
<Name>Transportation</Name>
</BookingSubtype>
</ArrayOfBookingSubtype>