POST api/WebInterface/Order/YearCard/BeginToPay
开始年卡订单第三方支付并返回支付的账户参数 ,本过程将验证订单状态,验证付款渠道参数设计等,创建一条第三方付款开始记录,不会修改订单状态。
Request Information
URI Parameters
None.
Body Parameters
发起支付的参数
EPayBeginParmName | Description | Type | Additional information |
---|---|---|---|
orderid |
预订单号,必须存在。 |
string |
Required Max length: 20 |
paychannelid |
支付方式ID。 |
string |
Required Max length: 2 |
Request Formats
application/json, text/json
Sample:
{ "orderid": "sample string 1", "paychannelid": "sample string 2" }
application/xml, text/xml
Sample:
<EPayBeginParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <orderid>sample string 1</orderid> <paychannelid>sample string 2</paychannelid> </EPayBeginParm>
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
开始年卡订单第三方支付并返回支付的账户参数 ,本过程将验证订单状态,验证付款渠道参数设计等,创建一条第三方付款开始记录,不会修改订单状态。
CommonOperationResultWithTagOfOrder3PayBeginPayResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | Order3PayBeginPayResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "paymenttypecode": "sample string 1", "receiveaccount": "sample string 2", "enterpiseid": "sample string 3", "paymentkey": "sample string 4", "refundnotifyurl": "sample string 5", "param1": "sample string 6", "param2": "sample string 7", "param3": "sample string 8", "param4": "sample string 9", "memory": "sample string 10", "innerbusinessid": "sample string 11" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfOrder3PayBeginPayResultldpHZqFJ 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:enterpiseid>sample string 3</d2p1:enterpiseid> <d2p1:innerbusinessid>sample string 11</d2p1:innerbusinessid> <d2p1:memory>sample string 10</d2p1:memory> <d2p1:param1>sample string 6</d2p1:param1> <d2p1:param2>sample string 7</d2p1:param2> <d2p1:param3>sample string 8</d2p1:param3> <d2p1:param4>sample string 9</d2p1:param4> <d2p1:paymentkey>sample string 4</d2p1:paymentkey> <d2p1:paymenttypecode>sample string 1</d2p1:paymenttypecode> <d2p1:receiveaccount>sample string 2</d2p1:receiveaccount> <d2p1:refundnotifyurl>sample string 5</d2p1:refundnotifyurl> </tag> </CommonOperationResultWithTagOfOrder3PayBeginPayResultldpHZqFJ>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.