POST api/Pos/Busi/Sell/Pay/WithWechat/Barcode

使用微信条码支付时,调用这个API接口。 客人需要先打开微信支付,点击”付款码“。 需要响应这个API的返回值,如果errcode=0表示收款成功了,且应用到了售货单,如果tag.billpaystate="3"表示这个单收款都完成了。否则没有全部完成收款。 如果errocde=1,则需要查询一个付款的情况(调用其他API)。 如果errcode=-1表示失败。

Request Information

URI Parameters

None.

Body Parameters

支付的参数。

PosSellPayWithWechatBarcodeParm
NameDescriptionTypeAdditional information
billnum

被支付的售货单的单号

string

Required

Max length: 20

wechatbarcode

用户付款码的密文。 使用会话用的KEY(UPPER(MD5(登陆密码))对扫描到的内容进行TripDes加密。

string

Required

Max length: 256

paymentvalue

支付的金额。

decimal number

Required

Request Formats

application/json, text/json

Sample:
{
  "billnum": "sample string 1",
  "wechatbarcode": "sample string 2",
  "paymentvalue": 3.0
}

application/xml, text/xml

Sample:
<PosSellPayWithWechatBarcodeParm 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>
  <wechatbarcode>sample string 2</wechatbarcode>
</PosSellPayWithWechatBarcodeParm>

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.billpaystate="3"表示这个单收款都完成了。否则没有全部完成收款。 如果errocde=1,则需要查询一个付款的情况(调用其他API)。 如果errcode=-1表示失败。

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