POST api/Pos/MiniProgram/Busi/Sell/Pay/WithCash
使用现金对售货单进行支付时,调用的API。 注意,需要响应这个API的返回值。返回值为0,且tag.billpaystate=3(售货单的状态,如果是已足额支付,售货单会转换为状态3 ,部分支付会转换为状态2)表示支付完成了,可以给货。
Request Information
URI Parameters
None.
Body Parameters
现金支付的参数。
PosSellPayWithCashParm| Name | 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:
<PosSellPayWithCashParm 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> </PosSellPayWithCashParm>
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的返回值。返回值为0,且tag.billpaystate=3(售货单的状态,如果是已足额支付,售货单会转换为状态3 ,部分支付会转换为状态2)表示支付完成了,可以给货。
CommonOperationResultWithTagOfPosSellPaymentResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | PosSellPaymentResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": {
"billnum": "sample string 1",
"autoid": 2,
"billpaystate": "sample string 3"
}
}
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfPosSellPaymentResultldpHZqFJ 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:billpaystate>sample string 3</d2p1:billpaystate>
</tag>
</CommonOperationResultWithTagOfPosSellPaymentResultldpHZqFJ>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.