POST api/Servo/Queue/Device/Offline/CheckRec
应用来自车载机或脱机闸机的离线验票记录,一次可以应用多个记录,将自动判定是否是疑似或不可用记录。
Request Information
URI Parameters
None.
Body Parameters
Collection of Device_OfflineCheckRecItemParmName | Description | Type | Additional information |
---|---|---|---|
GateId |
char(4) ,/*道闸ID*/ |
string |
Required Max length: 4 Min length: 4 |
CheckTime |
char(14),/*验票时间:YYYYMMDDHHMMSS*/ |
string |
Required Max length: 14 Min length: 14 |
TicketNumber |
varchar(32),/*票号*/ |
string |
Required Max length: 32 |
MediaType |
char(1),/*检票介质:B条码,I二代证,F人脸,UIC卡,Q强制,P指纹,O其他*/ |
string |
Required Max length: 1 Min length: 1 |
CheckDirection |
char(1), /*检票方向:I(字母)表示进入,O(字母)表示离开*/ |
string |
Required Max length: 1 Min length: 1 |
CertiCode |
varchar(20) /*证件号: 当MediaType=I时,此值必填,表示当初读到的证件号。*/ |
string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "GateId": "sample string 1", "CheckTime": "sample string 2", "TicketNumber": "sample string 3", "MediaType": "sample string 4", "CheckDirection": "sample string 5", "CertiCode": "sample string 6" }, { "GateId": "sample string 1", "CheckTime": "sample string 2", "TicketNumber": "sample string 3", "MediaType": "sample string 4", "CheckDirection": "sample string 5", "CertiCode": "sample string 6" } ]
application/xml, text/xml
Sample:
<ArrayOfDevice_OfflineCheckRecItemParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <Device_OfflineCheckRecItemParm> <CertiCode>sample string 6</CertiCode> <CheckDirection>sample string 5</CheckDirection> <CheckTime>sample string 2</CheckTime> <GateId>sample string 1</GateId> <MediaType>sample string 4</MediaType> <TicketNumber>sample string 3</TicketNumber> </Device_OfflineCheckRecItemParm> <Device_OfflineCheckRecItemParm> <CertiCode>sample string 6</CertiCode> <CheckDirection>sample string 5</CheckDirection> <CheckTime>sample string 2</CheckTime> <GateId>sample string 1</GateId> <MediaType>sample string 4</MediaType> <TicketNumber>sample string 3</TicketNumber> </Device_OfflineCheckRecItemParm> </ArrayOfDevice_OfflineCheckRecItemParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
应用来自车载机或脱机闸机的离线验票记录,一次可以应用多个记录,将自动判定是否是疑似或不可用记录。
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.