POST api/ValueCard/Busi/QueryPayResult
(跨平台方法)查询某次支付的支付结果(result.errcode=0且result.tag.TradeStatus="S"表示收款成功)。
Request Information
URI Parameters
None.
Body Parameters
发起查询的参数。
ValueCardPayTradeQueryParmName | Description | Type | Additional information |
---|---|---|---|
BusiTradeType |
同系统业务类型1-票务(含景区和演出);2-自营零售业务;3-包车业务;4-即上即下环保车业务;5-装备租赁业务,6-联营零售业务,7-餐饮业务,8-其他业务。 您可以提供BusiBillId + BusiTradeType 或 BillId两者之一进行查询。 |
string |
Max length: 1 Min length: 1 |
BusiBillId |
来自于业务系统的单据号。这个与“业务类型”加起来必须是唯一的。 业务系统是指发起本次调用的系统,如餐饮系统等。 您可以提供BusiBillId + BusiTradeType 或 BillId两者之一进行查询。 |
string |
Max length: 32 |
BillId |
电子门票系统内部交易单据号。 此数据不能与BusiTradeType,BusiBillId同时为空。 您可以提供BusiBillId + BusiTradeType 或 BillId两者之一进行查询。 |
string |
Max length: 32 |
Request Formats
application/json, text/json
Sample:
{ "BusiTradeType": "sample string 1", "BusiBillId": "sample string 2", "BillId": "sample string 3" }
application/xml, text/xml
Sample:
<ValueCardPayTradeQueryParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.ValueCard"> <BillId>sample string 3</BillId> <BusiBillId>sample string 2</BusiBillId> <BusiTradeType>sample string 1</BusiTradeType> </ValueCardPayTradeQueryParm>
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
(跨平台方法)查询某次支付的支付结果(result.errcode=0且result.tag.TradeStatus="S"表示收款成功)。
CommonOperationResultWithTagOfValueCardPaymentResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | ValueCardPaymentResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "BillId": "sample string 1", "StartedBy": "sample string 2", "TradeFrom": "sample string 3", "TradeFromDetail": "sample string 4", "CardNo": "sample string 5", "TradeTime": "sample string 6", "PayAmount": 7.0, "TradeStatus": "sample string 8", "TradeMessage": "sample string 9", "UserLoginName": "sample string 10", "BusiTradeType": "sample string 11", "BusiBillId": "sample string 12", "MerchantId": 13, "ShopId": "sample string 14", "Attach": "sample string 15" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfValueCardPaymentResultjuXQ_SQCk 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.ValueCard"> <d2p1:Attach>sample string 15</d2p1:Attach> <d2p1:BillId>sample string 1</d2p1:BillId> <d2p1:BusiBillId>sample string 12</d2p1:BusiBillId> <d2p1:BusiTradeType>sample string 11</d2p1:BusiTradeType> <d2p1:CardNo>sample string 5</d2p1:CardNo> <d2p1:MerchantId>13</d2p1:MerchantId> <d2p1:PayAmount>7</d2p1:PayAmount> <d2p1:ShopId>sample string 14</d2p1:ShopId> <d2p1:StartedBy>sample string 2</d2p1:StartedBy> <d2p1:TradeFrom>sample string 3</d2p1:TradeFrom> <d2p1:TradeFromDetail>sample string 4</d2p1:TradeFromDetail> <d2p1:TradeMessage>sample string 9</d2p1:TradeMessage> <d2p1:TradeStatus>sample string 8</d2p1:TradeStatus> <d2p1:TradeTime>sample string 6</d2p1:TradeTime> <d2p1:UserLoginName>sample string 10</d2p1:UserLoginName> </tag> </CommonOperationResultWithTagOfValueCardPaymentResultjuXQ_SQCk>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.