POST api/Agent/Acc/TradeRecord/ReceiveMoney
完成一个交易记录的收款操作。
Request Information
URI Parameters
None.
Body Parameters
交易收款参数
AgentTradeRecordReceiveMoneyParmName | Description | Type | Additional information |
---|---|---|---|
tradeid |
交易记录的ID |
integer |
Required |
receiveid |
交易记录的ID |
integer |
None. |
paymenttype |
付款方式代码00:现金;01:银行卡POS;02:支付宝;03:微信;06银联网上支付;99其他。 当PaymentType='00'时,@ReceiveId可以为空。 |
string |
Required Max length: 2 |
summary |
收款金额,不能为空 |
decimal number |
Required |
payeraccount |
付款方账号 |
string |
Max length: 100 |
thirdpartno |
第三方交易单号 |
string |
Max length: 50 |
thirdpartno2 |
第三方交易单号2 |
string |
Max length: 50 |
receivestatus |
付款状态 S交易成功,C收款关闭,F交易失败 |
string |
Required Max length: 1 |
Request Formats
application/json, text/json
Sample:
{ "tradeid": 1, "receiveid": 2, "paymenttype": "sample string 3", "summary": 4.0, "payeraccount": "sample string 5", "thirdpartno": "sample string 6", "thirdpartno2": "sample string 7", "receivestatus": "sample string 8" }
application/xml, text/xml
Sample:
<AgentTradeRecordReceiveMoneyParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Dosimeter"> <payeraccount>sample string 5</payeraccount> <paymenttype>sample string 3</paymenttype> <receiveid>2</receiveid> <receivestatus>sample string 8</receivestatus> <summary>4</summary> <thirdpartno>sample string 6</thirdpartno> <thirdpartno2>sample string 7</thirdpartno2> <tradeid>1</tradeid> </AgentTradeRecordReceiveMoneyParm>
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.