GET v1/Shops/{shopId}/TicketTypes
Get a list with all TicketTypes, for the given shop.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopId |
The id of the shop. |
integer |
Required. |
Body Parameters
None.
Response Information
Resource Description
A list of the TicketTypeBasicInfo objects, ordered by id, ascending.
Collection of TicketType| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The Id of the Ticket. |
integer |
Required |
| Name |
The name of this ticket type. |
string |
Required Max length: 50 |
| ShopOwnerId |
The shop owner id to which this ticket type is bound. |
integer |
None. |
| IconFileId |
The icon id which is shown in the UI. |
integer |
None. |
| Sequence |
The sequence for this ticket type. |
integer |
Required |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"ShopOwnerId": 1,
"IconFileId": 1,
"Sequence": 3
},
{
"Id": 1,
"Name": "sample string 2",
"ShopOwnerId": 1,
"IconFileId": 1,
"Sequence": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfTicketType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<TicketType>
<Id>1</Id>
<Name>sample string 2</Name>
<ShopOwnerId>1</ShopOwnerId>
<IconFileId>1</IconFileId>
<Sequence>3</Sequence>
</TicketType>
<TicketType>
<Id>1</Id>
<Name>sample string 2</Name>
<ShopOwnerId>1</ShopOwnerId>
<IconFileId>1</IconFileId>
<Sequence>3</Sequence>
</TicketType>
</ArrayOfTicketType>