POST api/Pos/Busi/Refund/Bill/Auth

设置一个退款申请中的退货单。 通常情况下,如果没有取件的售货单,是可以直接退成功的。 但如果已取件,提交的退货单就不能直接成功,直能通过审核确保商品退还后方可办结。 审核通过之后,系统是后台办理退款的。

Request Information

URI Parameters

None.

Body Parameters

PosRefundAuthParm
NameDescriptionTypeAdditional information
BillNum

退货单单号。

string

Required

Max length: 20

AuthResult

审核结论。审核结果,1通过,2拒绝

string

Required

Max length: 1

Min length: 1

AuthMessage

审核说明,当AuthResult ='2'时,此值必填。

string

Max length: 100

AutoRefundMoney

是否自动退款,‘1’表示是,0表示否。 如果是互联网发过来的订单,则应设置为‘1’。 如果是前台的订单,则可以为‘1’或‘0’ 如果为‘0’,则可以一次性办结的业务,需要提供RefundMoneyList清单内容,以指明退款的条目。

string

Required

Max length: 1

RefundMoneyList

退款条目清单。

Collection of RefundTicketRefundMoneyParm

None.

Request Formats

application/json, text/json

Sample:
{
  "BillNum": "sample string 1",
  "AuthResult": "sample string 2",
  "AuthMessage": "sample string 3",
  "AutoRefundMoney": "sample string 4",
  "RefundMoneyList": [
    {
      "OrgPaymentBillNum": "sample string 1",
      "RefundAmount": 2.0,
      "UseCashForce": "sample string 3"
    },
    {
      "OrgPaymentBillNum": "sample string 1",
      "RefundAmount": 2.0,
      "UseCashForce": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<PosRefundAuthParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm">
  <AuthMessage>sample string 3</AuthMessage>
  <AuthResult>sample string 2</AuthResult>
  <AutoRefundMoney>sample string 4</AutoRefundMoney>
  <BillNum>sample string 1</BillNum>
  <RefundMoneyList>
    <RefundTicketRefundMoneyParm>
      <OrgPaymentBillNum>sample string 1</OrgPaymentBillNum>
      <RefundAmount>2</RefundAmount>
      <UseCashForce>sample string 3</UseCashForce>
    </RefundTicketRefundMoneyParm>
    <RefundTicketRefundMoneyParm>
      <OrgPaymentBillNum>sample string 1</OrgPaymentBillNum>
      <RefundAmount>2</RefundAmount>
      <UseCashForce>sample string 3</UseCashForce>
    </RefundTicketRefundMoneyParm>
  </RefundMoneyList>
</PosRefundAuthParm>

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

设置一个退款申请中的退货单。 通常情况下,如果没有取件的售货单,是可以直接退成功的。 但如果已取件,提交的退货单就不能直接成功,直能通过审核确保商品退还后方可办结。 审核通过之后,系统是后台办理退款的。

CommonOperationResult
NameDescriptionTypeAdditional 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.