POST api/WebInterface/Order/Pay/WithRebate/ByVerifyCode
使用预订金+手机验证码对订单进行支付,支付成功后,生成门票并下发通知(可能有通知)给客人或代理商。 所有的操作都在一个事务中,总是同时成功或失败。
Request Information
URI Parameters
None.
Body Parameters
OrderPayAndActivateByVerifyCodeParmName | Description | Type | Additional information |
---|---|---|---|
dwid |
客户ID |
string |
Required Max length: 36 |
dwlx |
客户类型,可以是以下取值:1-地接社,2-组团社,3-协议单位,4-地接社部门,5-组团社部门,6-协议单位部门,7-导游员。 |
string |
Required Max length: 1 |
payparm |
实际的支付参数。 |
PayOrderUseVerifyCodeParm |
Required |
sellstationid |
售票站点ID |
string |
Required Max length: 2 |
marketareaid |
市场区划ID |
string |
Max length: 8 |
teamtypecode |
团队类型代码 |
string |
Max length: 2 |
settotommrowtime |
设置订单转日时间。 |
string |
Max length: 5 |
Request Formats
application/json, text/json
Sample:
{ "dwid": "sample string 1", "dwlx": "sample string 2", "payparm": { "orderid": "sample string 1", "verifycode": "sample string 2", "mobile": "sample string 3" }, "sellstationid": "sample string 3", "marketareaid": "sample string 4", "teamtypecode": "sample string 5", "settotommrowtime": "sample string 6" }
application/xml, text/xml
Sample:
<OrderPayAndActivateByVerifyCodeParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <dwid>sample string 1</dwid> <dwlx>sample string 2</dwlx> <marketareaid>sample string 4</marketareaid> <payparm xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface"> <d2p1:mobile>sample string 3</d2p1:mobile> <d2p1:orderid>sample string 1</d2p1:orderid> <d2p1:verifycode>sample string 2</d2p1:verifycode> </payparm> <sellstationid>sample string 3</sellstationid> <settotommrowtime>sample string 6</settotommrowtime> <teamtypecode>sample string 5</teamtypecode> </OrderPayAndActivateByVerifyCodeParm>
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
使用预订金+手机验证码对订单进行支付,支付成功后,生成门票并下发通知(可能有通知)给客人或代理商。 所有的操作都在一个事务中,总是同时成功或失败。
OrderOperatorResultName | Description | Type | Additional information |
---|---|---|---|
orderid |
操作对应(或产生)的电子门票系统订单号。 |
string |
None. |
sendid |
操作对应的第三方系统的订单号(如同程网发送过来的订单的编号),此编号由接口方提供,在提口方系统中应为唯一值。 |
string |
None. |
orderstatus |
订单当前所处的状态 |
string |
None. |
resultcode |
操作返回代码,0表示成功,其他值表示错误。 |
integer |
None. |
returnmessgage |
从接口返回的提示消息,用于告知成功的结果或出错的原因。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "orderid": "sample string 1", "sendid": "sample string 2", "orderstatus": "sample string 3", "resultcode": 4, "returnmessgage": "sample string 5" }
application/xml, text/xml
Sample:
<OrderOperatorResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface"> <orderid>sample string 1</orderid> <orderstatus>sample string 3</orderstatus> <resultcode>4</resultcode> <returnmessgage>sample string 5</returnmessgage> <sendid>sample string 2</sendid> </OrderOperatorResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.