POST api/Pos/Refund/AddOrUpdate
发起一个退货请求。 每次退货总是只能针对一个售货单进行。 每次至少退原售货单的一个明细。 原售货单的每个明细总是需要在一次退货中退完。 本操作发起退货申请后,如果未取货,能直接办结;如果已取货,则需要审核才能办结。 审核的结果有两种,分别是“已办理”,“已拒绝”。拒绝表示不能退货,以上两者状态均是最终状态。 退货的申请,审核均是将会有回调的事件。
Request Information
URI Parameters
None.
Body Parameters
退货单的信息
PosRefundFromWebParm| Name | Description | Type | Additional information |
|---|---|---|---|
| SellBillNum |
引用的售货单的单号。 |
string |
Required Max length: 20 |
| Memory |
备注。 |
string |
Max length: 100 |
| GuestMemory |
顾客留言。 |
string |
Max length: 100 |
| Details |
退货的明细记录。 |
Collection of integer |
Required |
| SenderBillNum |
第三方退货单据号ID。 |
string |
Max length: 32 |
Request Formats
application/json, text/json
{
"SellBillNum": "sample string 1",
"Memory": "sample string 2",
"GuestMemory": "sample string 3",
"Details": [
1,
2
],
"SenderBillNum": "sample string 4"
}
application/xml, text/xml
<PosRefundFromWebParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.MiniProgram.Result.Parm">
<Details xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</Details>
<GuestMemory>sample string 3</GuestMemory>
<Memory>sample string 2</Memory>
<SellBillNum>sample string 1</SellBillNum>
<SenderBillNum>sample string 4</SenderBillNum>
</PosRefundFromWebParm>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
发起一个退货请求。 每次退货总是只能针对一个售货单进行。 每次至少退原售货单的一个明细。 原售货单的每个明细总是需要在一次退货中退完。 本操作发起退货申请后,如果未取货,能直接办结;如果已取货,则需要审核才能办结。 审核的结果有两种,分别是“已办理”,“已拒绝”。拒绝表示不能退货,以上两者状态均是最终状态。 退货的申请,审核均是将会有回调的事件。
CommonOperationResultWithTagOfPosRefundResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode | integer |
None. |
|
| errmsg | string |
None. |
|
| tag | PosRefundResult |
None. |
Response Formats
application/json, text/json
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": {
"BillNum": "sample string 1",
"RefundAuthState": "sample string 2",
"RefundState": "sample string 3"
}
}
application/xml, text/xml
<CommonOperationResultWithTagOfPosRefundResultlTRO8TLE 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.Parm">
<d2p1:BillNum>sample string 1</d2p1:BillNum>
<d2p1:RefundAuthState>sample string 2</d2p1:RefundAuthState>
<d2p1:RefundState>sample string 3</d2p1:RefundState>
</tag>
</CommonOperationResultWithTagOfPosRefundResultlTRO8TLE>