GET api/Ticket/Resource/V4/{ticketcode}

获取门票图片(此处对应的FILECODE码,该码通过api/Order/QueryWJM获取。),返回的是动态码,有过期时间

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ticketcode

门票对应的FILECODE码,该码通过api/Order/QueryWJM获取。

string

Required

Body Parameters

None.

Response Information

Resource Description

获取门票图片(此处对应的FILECODE码,该码通过api/Order/QueryWJM获取。),返回的是动态码,有过期时间

TicketResourceResult
NameDescriptionTypeAdditional 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>