POST api/Pos/MiniProgram/Refund/Pay/WithCash
使用现金对退货单进行支付时,调用的API。 注意,需要响应这个API的返回值。返回值errcode=0,且tag.refuncomplete='1'表示退还完成了。 任意一个退货单,总是只能执行一次退款退还(一次退款需退完全部的款项,不能分多次进行退款)。
Request Information
URI Parameters
None.
Body Parameters
现金支付的参数。
PosRefundPayWithCashParmName | Description | Type | Additional information |
---|---|---|---|
billnum |
退货单号。 |
string |
Required Max length: 20 |
paytype |
付款方式。 |
string |
Required Max length: 2 |
paymentvalue |
支付的金额。 |
decimal number |
Required |
Request Formats
application/json, text/json
Sample:
{ "billnum": "sample string 1", "paytype": "sample string 2", "paymentvalue": 3.0 }
application/xml, text/xml
Sample:
<PosRefundPayWithCashParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <billnum>sample string 1</billnum> <paymentvalue>3</paymentvalue> <paytype>sample string 2</paytype> </PosRefundPayWithCashParm>
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
使用现金对退货单进行支付时,调用的API。 注意,需要响应这个API的返回值。返回值errcode=0,且tag.refuncomplete='1'表示退还完成了。 任意一个退货单,总是只能执行一次退款退还(一次退款需退完全部的款项,不能分多次进行退款)。
CommonOperationResultWithTagOfPosRefundPaymentResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | PosRefundPaymentResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "billnum": "sample string 1", "autoid": 2, "refundcomplete": "sample string 3", "oldautoid": 4, "oldownerbusino": "sample string 5", "thirdpartno": "sample string 6", "thirdpartno2": "sample string 7", "paymentaccount": "sample string 8", "receiveaccount": "sample string 9" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfPosRefundPaymentResultldpHZqFJ 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"> <d2p1:autoid>2</d2p1:autoid> <d2p1:billnum>sample string 1</d2p1:billnum> <d2p1:oldautoid>4</d2p1:oldautoid> <d2p1:oldownerbusino>sample string 5</d2p1:oldownerbusino> <d2p1:paymentaccount>sample string 8</d2p1:paymentaccount> <d2p1:receiveaccount>sample string 9</d2p1:receiveaccount> <d2p1:refundcomplete>sample string 3</d2p1:refundcomplete> <d2p1:thirdpartno>sample string 6</d2p1:thirdpartno> <d2p1:thirdpartno2>sample string 7</d2p1:thirdpartno2> </tag> </CommonOperationResultWithTagOfPosRefundPaymentResultldpHZqFJ>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.