POST api/ValueCard/Busi/Trade/RefundOrCancel/Query
(跨平台方法)查询一个退款交易的信息(result.errcode=0且result.tag.TradeStatus="S"表示退款成功)。
Request Information
URI Parameters
None.
Body Parameters
查询的参数。
ValueCardRefundQueryParmName | Description | Type | Additional information |
---|---|---|---|
RefundBillId |
退款交易的ID(电子门票系统的退款交易ID,在发起交易时由BillId返回)。 |
string |
Max length: 32 |
BusiBillType |
同系统业务类型1-票务(含景区和演出);2-自营零售业务;3-包车业务;4-即上即下环保车业务;5-装备租赁业务,6-联营零售业务,7-餐饮业务,8-其他业务。 您可以提供BusiRefundBillId + BusiTradeType 或 RefundBillId两者之一进行查询。 |
string |
Max length: 1 |
BusiRefundBillId |
来自于业务系统的退款单据号。这个与“业务类型”加起来必须是唯一的。 业务系统是指发起本次调用的系统,如餐饮系统等。 您可以提供BusiRefundBillId + BusiTradeType 或 RefundBillId两者之一进行查询。 |
string |
Max length: 32 |
Request Formats
application/json, text/json
Sample:
{ "RefundBillId": "sample string 1", "BusiBillType": "sample string 2", "BusiRefundBillId": "sample string 3" }
application/xml, text/xml
Sample:
<ValueCardRefundQueryParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.ValueCard"> <BusiBillType>sample string 2</BusiBillType> <BusiRefundBillId>sample string 3</BusiRefundBillId> <RefundBillId>sample string 1</RefundBillId> </ValueCardRefundQueryParm>
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"表示退款成功)。
CommonOperationResultWithTagOfValueCardRefundResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | ValueCardRefundResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "BillId": "sample string 1", "TradeType": "sample string 2", "TradeFrom": "sample string 3", "TradeFromDetail": "sample string 4", "OrgBillId": "sample string 5", "OrgBusiTradeType": "sample string 6", "OrgBusiBillId": "sample string 7", "RefundOrCancelAmount": 8.0, "CardNo": "sample string 9", "TradeStatus": "sample string 10", "TradeMessage": "sample string 11", "BusiRefundBillId": "sample string 12", "Attach": "sample string 13", "MerchantId": 14, "ShopId": "sample string 15", "TradeTime": "sample string 16", "UserLoginName": "sample string 17" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfValueCardRefundResultjuXQ_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 13</d2p1:Attach> <d2p1:BillId>sample string 1</d2p1:BillId> <d2p1:BusiRefundBillId>sample string 12</d2p1:BusiRefundBillId> <d2p1:CardNo>sample string 9</d2p1:CardNo> <d2p1:MerchantId>14</d2p1:MerchantId> <d2p1:OrgBillId>sample string 5</d2p1:OrgBillId> <d2p1:OrgBusiBillId>sample string 7</d2p1:OrgBusiBillId> <d2p1:OrgBusiTradeType>sample string 6</d2p1:OrgBusiTradeType> <d2p1:RefundOrCancelAmount>8</d2p1:RefundOrCancelAmount> <d2p1:ShopId>sample string 15</d2p1:ShopId> <d2p1:TradeFrom>sample string 3</d2p1:TradeFrom> <d2p1:TradeFromDetail>sample string 4</d2p1:TradeFromDetail> <d2p1:TradeMessage>sample string 11</d2p1:TradeMessage> <d2p1:TradeStatus>sample string 10</d2p1:TradeStatus> <d2p1:TradeTime>sample string 16</d2p1:TradeTime> <d2p1:TradeType>sample string 2</d2p1:TradeType> <d2p1:UserLoginName>sample string 17</d2p1:UserLoginName> </tag> </CommonOperationResultWithTagOfValueCardRefundResultjuXQ_SQCk>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.