GET api/WebInterface/Order/Query/Tickets?username={username}&orderid={orderid}&senderid={senderid}&personalid={personalid}&guidernum={guidernum}
获取门票清单。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。 为向下兼容,同功能的WebForms接口访问地址为~/Source/GetTicketList.aspx 。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| username |
代理商的用户名 |
string |
Required |
| orderid |
电子门票系统订单号,此值不能同时与senderid为空。 |
string |
Default value is |
| senderid |
接口方订单号(仅当接口方在下达预订单时提供了sendid参数,才能依据此检索),此值不能同时与orderid为空。 |
string |
Default value is |
| personalid |
个人会员ID,当个人会员通过官方渠道发起操作时这个参数必须,代理商可以不提供这个参数。 |
integer |
Default value is 0 |
| guidernum |
导游证号。 |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
获取门票清单。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。 为向下兼容,同功能的WebForms接口访问地址为~/Source/GetTicketList.aspx 。
Collection of Ticket| Name | Description | Type | Additional information |
|---|---|---|---|
| productid |
产品ID。 |
string |
None. |
| productname |
产品名称。 |
string |
None. |
| ticketcode |
门票内部识别号。 |
string |
None. |
| personcount |
人数,int,一人一票时,此值总为1,多人一票时,此值表示当前门票检票时,可以通过的人数。 |
integer |
None. |
| ticketdate |
门票日期,string(8),YYYYMMDD,此值表示门票的起始生效日期,取值来源于激活时指定“游览日期”或取票时售票员指定的“门票日期”。 |
string |
None. |
| freecount |
赠送人数,int,此值仅在电子门票系统系统执行“现返”时,不为零,不为零时,表示现返人数,游宝星电子门票系统仅支持N免X模式的现返,如“10免1”。 |
integer |
None. |
| price |
价格 |
decimal number |
None. |
| summary |
金额,decimal,值等于price* (personcount-freecount)。 |
decimal number |
None. |
| servicecode |
服务项目代码(线路代码),string(2),此值仅在电子门票系统处于“分时段售检票”模式时有意义 |
string |
None. |
| servicename |
服务项目名称(线路名称),string(32),此值仅在电子门票系统处于“分时段售检票”模式时有意义。 |
string |
None. |
| timespanindex |
时段号。 |
integer |
None. |
| starttime |
时段预计检票开始时间,string(5),HH:MM,此值仅在电子门票系统处于“分时段售检票”模式或演艺模式时有意义 |
string |
None. |
| endtime |
时段预计检票结束时间,string(5),HH:MM,此值仅在电子门票系统处于“分时段售检票”模式或演艺模式时有意义 |
string |
None. |
| status |
状态,string(1),“1”正常,“2”已退票,“3”已取纸质票,“4”已消费。 |
string |
None. |
| name |
姓名,string(32),实名制模式下,此值表示客人的姓名。 |
string |
None. |
| identitycode |
身份证号,string(20),实名制模式下,此值表示客人的法定有效个人身份证件号码。 |
string |
None. |
| checkmethod |
"I"将使用二代证过闸,“B”将使用手机条码过闸,“T”将前台取票或自助机取票过闸。 |
string |
None. |
| ticketurl |
门票图片的URL。 |
string |
None. |
| identitytype |
证件类型 |
string |
None. |
| mobile |
手机号 |
string |
None. |
Response Formats
application/json, text/json
[
{
"productid": "sample string 1",
"productname": "sample string 2",
"ticketcode": "sample string 3",
"personcount": 4,
"ticketdate": "sample string 5",
"freecount": 6,
"price": 7.0,
"summary": 8.0,
"servicecode": "sample string 9",
"servicename": "sample string 10",
"timespanindex": 11,
"starttime": "sample string 12",
"endtime": "sample string 13",
"status": "sample string 14",
"name": "sample string 15",
"identitycode": "sample string 16",
"checkmethod": "sample string 17",
"ticketurl": "sample string 18",
"identitytype": "sample string 19",
"mobile": "sample string 20"
},
{
"productid": "sample string 1",
"productname": "sample string 2",
"ticketcode": "sample string 3",
"personcount": 4,
"ticketdate": "sample string 5",
"freecount": 6,
"price": 7.0,
"summary": 8.0,
"servicecode": "sample string 9",
"servicename": "sample string 10",
"timespanindex": 11,
"starttime": "sample string 12",
"endtime": "sample string 13",
"status": "sample string 14",
"name": "sample string 15",
"identitycode": "sample string 16",
"checkmethod": "sample string 17",
"ticketurl": "sample string 18",
"identitytype": "sample string 19",
"mobile": "sample string 20"
}
]
application/xml, text/xml
<ArrayOfTicket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface">
<Ticket>
<checkmethod>sample string 17</checkmethod>
<endtime>sample string 13</endtime>
<freecount>6</freecount>
<identitycode>sample string 16</identitycode>
<identitytype>sample string 19</identitytype>
<mobile>sample string 20</mobile>
<name>sample string 15</name>
<personcount>4</personcount>
<price>7</price>
<productid>sample string 1</productid>
<productname>sample string 2</productname>
<servicecode>sample string 9</servicecode>
<servicename>sample string 10</servicename>
<starttime>sample string 12</starttime>
<status>sample string 14</status>
<summary>8</summary>
<ticketcode>sample string 3</ticketcode>
<ticketdate>sample string 5</ticketdate>
<ticketurl>sample string 18</ticketurl>
<timespanindex>11</timespanindex>
</Ticket>
<Ticket>
<checkmethod>sample string 17</checkmethod>
<endtime>sample string 13</endtime>
<freecount>6</freecount>
<identitycode>sample string 16</identitycode>
<identitytype>sample string 19</identitytype>
<mobile>sample string 20</mobile>
<name>sample string 15</name>
<personcount>4</personcount>
<price>7</price>
<productid>sample string 1</productid>
<productname>sample string 2</productname>
<servicecode>sample string 9</servicecode>
<servicename>sample string 10</servicename>
<starttime>sample string 12</starttime>
<status>sample string 14</status>
<summary>8</summary>
<ticketcode>sample string 3</ticketcode>
<ticketdate>sample string 5</ticketdate>
<ticketurl>sample string 18</ticketurl>
<timespanindex>11</timespanindex>
</Ticket>
</ArrayOfTicket>
application/bson
Binary JSON content. See http://bsonspec.org for details.