POST api/WebInterface/DouYin/CalendarTicket/Order/Verify
下单前的校验接口,用于消费者预订前的信息校验,包括库存和限购规则等,保障消费者提交订单后不会因为库存不足或其他业务规则被拒单
Request Information
URI Parameters
None.
Body Parameters
OrderTourTicketParmName | Description | Type | Additional information |
---|---|---|---|
dwid |
客户ID |
string |
Required Max length: 36 |
dwlx |
客户类型,可以是以下取值:1-地接社,2-组团社,3-协议单位,4-地接社部门,5-组团社部门,6-协议单位部门,7-导游员。 |
string |
Required Max length: 1 |
orderinfo |
预订信息 |
OrderAddParm |
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", "orderinfo": { "orderdetails": [ { "productid": "sample string 1", "amount": 2, "identificationnumber": "sample string 3", "fullname": "sample string 4", "identificationtype": "sample string 5", "mobile": "sample string 6", "gateinmode": "sample string 7", "seatitems": [ { "seatid": "sample string 1" }, { "seatid": "sample string 1" } ] }, { "productid": "sample string 1", "amount": 2, "identificationnumber": "sample string 3", "fullname": "sample string 4", "identificationtype": "sample string 5", "mobile": "sample string 6", "gateinmode": "sample string 7", "seatitems": [ { "seatid": "sample string 1" }, { "seatid": "sample string 1" } ] } ], "mobile": "sample string 1", "otheruserid": 2, "identificationnumber": "sample string 3", "effectdate": "sample string 4", "needinvoice": "sample string 5", "invoicetitle": "sample string 6", "invoicecode": "sample string 7", "senderid": "sample string 8", "servicecode": "sample string 9", "timespanindex": 10, "tripbillcode": "sample string 11", "guidernumber": "sample string 12", "marketareaid": "sample string 13", "reserve1": "sample string 14", "reserve2": "sample string 15" }, "sellstationid": "sample string 3", "marketareaid": "sample string 4", "teamtypecode": "sample string 5", "settotommrowtime": "sample string 6" }
application/xml, text/xml
Sample:
<OrderTourTicketParm 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> <orderinfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface"> <d2p1:effectdate>sample string 4</d2p1:effectdate> <d2p1:guidernumber>sample string 12</d2p1:guidernumber> <d2p1:identificationnumber>sample string 3</d2p1:identificationnumber> <d2p1:invoicecode>sample string 7</d2p1:invoicecode> <d2p1:invoicetitle>sample string 6</d2p1:invoicetitle> <d2p1:marketareaid>sample string 13</d2p1:marketareaid> <d2p1:mobile>sample string 1</d2p1:mobile> <d2p1:needinvoice>sample string 5</d2p1:needinvoice> <d2p1:orderdetails> <d2p1:OrderAddItemParm> <d2p1:amount>2</d2p1:amount> <d2p1:fullname>sample string 4</d2p1:fullname> <d2p1:gateinmode>sample string 7</d2p1:gateinmode> <d2p1:identificationnumber>sample string 3</d2p1:identificationnumber> <d2p1:identificationtype>sample string 5</d2p1:identificationtype> <d2p1:mobile>sample string 6</d2p1:mobile> <d2p1:productid>sample string 1</d2p1:productid> <d2p1:seatitems> <d2p1:Order2SeatItem> <d2p1:seatid>sample string 1</d2p1:seatid> </d2p1:Order2SeatItem> <d2p1:Order2SeatItem> <d2p1:seatid>sample string 1</d2p1:seatid> </d2p1:Order2SeatItem> </d2p1:seatitems> </d2p1:OrderAddItemParm> <d2p1:OrderAddItemParm> <d2p1:amount>2</d2p1:amount> <d2p1:fullname>sample string 4</d2p1:fullname> <d2p1:gateinmode>sample string 7</d2p1:gateinmode> <d2p1:identificationnumber>sample string 3</d2p1:identificationnumber> <d2p1:identificationtype>sample string 5</d2p1:identificationtype> <d2p1:mobile>sample string 6</d2p1:mobile> <d2p1:productid>sample string 1</d2p1:productid> <d2p1:seatitems> <d2p1:Order2SeatItem> <d2p1:seatid>sample string 1</d2p1:seatid> </d2p1:Order2SeatItem> <d2p1:Order2SeatItem> <d2p1:seatid>sample string 1</d2p1:seatid> </d2p1:Order2SeatItem> </d2p1:seatitems> </d2p1:OrderAddItemParm> </d2p1:orderdetails> <d2p1:otheruserid>2</d2p1:otheruserid> <d2p1:reserve1>sample string 14</d2p1:reserve1> <d2p1:reserve2>sample string 15</d2p1:reserve2> <d2p1:senderid>sample string 8</d2p1:senderid> <d2p1:servicecode>sample string 9</d2p1:servicecode> <d2p1:timespanindex>10</d2p1:timespanindex> <d2p1:tripbillcode>sample string 11</d2p1:tripbillcode> </orderinfo> <sellstationid>sample string 3</sellstationid> <settotommrowtime>sample string 6</settotommrowtime> <teamtypecode>sample string 5</teamtypecode> </OrderTourTicketParm>
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
下单前的校验接口,用于消费者预订前的信息校验,包括库存和限购规则等,保障消费者提交订单后不会因为库存不足或其他业务规则被拒单
CommonOperationResultName | Description | Type | Additional 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.