GET api/Ticket/Image/{orderid}/{ticketcode}
获取手机二维码门票的图片(这个图片在手机上显示之后,可以直接用于检票)。 本API将较验访问者对订单的访问权限,不要求执行前置的api/Order/QueryWJM获取文件名。 本API是实时API,订单一支付可立即调用。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| orderid |
电子门票系统订单编号,不可以为空。 |
string |
Required |
| ticketcode |
门票的唯一识别号,该识别号可通过查询订单明细或接收回调通知获取。 |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
获取手机二维码门票的图片(这个图片在手机上显示之后,可以直接用于检票)。 本API将较验访问者对订单的访问权限,不要求执行前置的api/Order/QueryWJM获取文件名。 本API是实时API,订单一支付可立即调用。
TicketResourceResult| Name | Description | Type | Additional information |
|---|---|---|---|
| lbsbh |
门票的维一编号(电子门票系统) |
string |
None. |
| errmsg |
当图片不返回时,错误的描述,有可以是“该门票已退。";"该门票已列印。"; |
string |
None. |
| errcode |
0表示成功,其他值,均表示错误 |
integer |
None. |
| imagebase64 |
图片文件的Base64串/二维码的字符串 |
string |
None. |
| needrefreshtime |
二维码过期时间,V4版本会返回该值,格式为20240101100000 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"lbsbh": "sample string 1",
"errmsg": "sample string 2",
"errcode": 3,
"imagebase64": "sample string 4",
"needrefreshtime": "sample string 5"
}
application/xml, text/xml
Sample:
<TicketResourceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface"> <errcode>3</errcode> <errmsg>sample string 2</errmsg> <imagebase64>sample string 4</imagebase64> <lbsbh>sample string 1</lbsbh> <needrefreshtime>sample string 5</needrefreshtime> </TicketResourceResult>