POST api/ValueCard/Busi/Recharge/WithBarCode/Begin
开始一次充值过程。 对于非现金充值,需在收款前,执行本操作;收款完成或收款回调时执行END操作; 对于现金充值,只需要执行本操作。
Request Information
URI Parameters
None.
Body Parameters
开始充值的参数。
ValueCardRechargeBeginParmName | Description | Type | Additional information |
---|---|---|---|
BillNum |
单号。 |
string |
Required Max length: 20 |
paymentbarcode |
手机机或支付设备扫描到的客户的付款码的密文。 加密算法TripleDes(付款码,会话KEY)。 不需要传入付款方式,直接使用对解密后的明文进行判断来区分是支付宝还是微信。 |
string |
Max length: 200 |
CardNo |
卡号。 |
string |
Required Max length: 20 |
BusiFrom |
交易来源 NN 1-前台 2-互联网 |
string |
Required Max length: 1 |
PaymentTypeId |
付款方式ID |
string |
Required Max length: 2 |
Amount |
金额(不能为零),大于零表示给约定的储值卡账户加钱,小于零表示减钱。 |
decimal number |
Required |
Memory |
备注。 |
string |
Max length: 50 |
Reserve1 |
保留一。 |
string |
Max length: 50 |
Reserve2 |
保留二。 |
string |
Max length: 50 |
Request Formats
application/json, text/json
Sample:
{ "BillNum": "sample string 1", "paymentbarcode": "sample string 2", "CardNo": "sample string 3", "BusiFrom": "sample string 4", "PaymentTypeId": "sample string 5", "Amount": 6.0, "Memory": "sample string 7", "Reserve1": "sample string 8", "Reserve2": "sample string 9" }
application/xml, text/xml
Sample:
<ValueCardRechargeBeginParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.ValueCard"> <Amount>6</Amount> <BillNum>sample string 1</BillNum> <BusiFrom>sample string 4</BusiFrom> <CardNo>sample string 3</CardNo> <Memory>sample string 7</Memory> <PaymentTypeId>sample string 5</PaymentTypeId> <Reserve1>sample string 8</Reserve1> <Reserve2>sample string 9</Reserve2> <paymentbarcode>sample string 2</paymentbarcode> </ValueCardRechargeBeginParm>
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
开始一次充值过程。 对于非现金充值,需在收款前,执行本操作;收款完成或收款回调时执行END操作; 对于现金充值,只需要执行本操作。
CommonOperationResultWithTagOfValueCardRechargeItemResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | ValueCardRechargeItemResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "busiStatus": "sample string 1", "confirmAmount": 2.0, "customerAccount": "sample string 3", "ownerAccount": "sample string 4", "thirdPartyBusiId": "sample string 5", "unionid": "sample string 6" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfValueCardRechargeItemResultjuXQ_SQCk 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.ValueCard"> <d2p1:busiStatus>sample string 1</d2p1:busiStatus> <d2p1:confirmAmount>2</d2p1:confirmAmount> <d2p1:customerAccount>sample string 3</d2p1:customerAccount> <d2p1:ownerAccount>sample string 4</d2p1:ownerAccount> <d2p1:thirdPartyBusiId>sample string 5</d2p1:thirdPartyBusiId> <d2p1:unionid>sample string 6</d2p1:unionid> </tag> </CommonOperationResultWithTagOfValueCardRechargeItemResultjuXQ_SQCk>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.