POST api/hotel/rts/order/bookingvoucher
生成酒店订单凭证
Request Information
URI Parameters
None.
Body Parameters
BookingVoucherName | Description | Type | Additional information |
---|---|---|---|
sKey | string |
None. |
|
BookingCode | string |
None. |
|
Source | string |
None. |
|
UserName | string |
None. |
|
Cid | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "sKey": "sample string 1", "BookingCode": "sample string 2", "Source": "sample string 3", "UserName": "sample string 4", "Cid": "sample string 5" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
生成酒店订单凭证
ReturnResultOfGetBookingVoucherResponseName | Description | Type | Additional information |
---|---|---|---|
data | GetBookingVoucherResponse |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "bookingvoucherresult": { "CommandHistory": "sample string 1", "ResponseMessage": { "Code": "sample string 1", "ProviderCode": "sample string 2", "SupplierCode": "sample string 3", "Type": 0, "TypeSpecified": true, "Value": "sample string 5" }, "ResponseTime": "sample string 2", "TraceId": "sample string 3", "TransactionId": "sample string 4", "FareRule": [ { "FareInfoRef": "sample string 1", "FareRuleLong": [ { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" }, { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" } ], "FareRuleResultMessage": [ { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" }, { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" } ], "FareRuleShort": [ { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" }, { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" } ], "ProviderCode": "sample string 2", "RuleAdvancedPurchase": { "morerulespresent": true, "morerulespresentspecified": true, "reservationlatestperiod": "sample string 3", "reservationlatestunit": 0, "reservationlatestunitspecified": true, "ticketingearliestdate": "sample string 5", "ticketinglatestdate": "sample string 6", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "ReservationLatestPeriod": "sample string 3", "ReservationLatestUnit": 0, "ReservationLatestUnitSpecified": true, "TicketingEarliestDate": "sample string 5", "TicketingLatestDate": "sample string 6" }, "RuleCharges": { "Amount": "sample string 1", "DepartureStatus": "sample string 2", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "PenaltyType": "sample string 5", "Percent": 6.0, "PercentSpecifiedl": true }, "RuleLengthOfStay": { "MaximumStay": { "length": "sample string 1", "morerulespresent": "sample string 2", "morerulespresentspecified": true, "staydate": "sample string 4", "staydatespecified": true, "stayunit": 0, "stayunitspecified": true, "Length": "sample string 1", "MoreRulesPresent": "sample string 2", "MoreRulesPresentSpecified": true, "StayDate": "sample string 4", "StayDateSpecified": true, "StayUnit": 0, "StayUnitSpecified": true } }, "RuleNumber": "sample string 3", "Source": "sample string 4" }, { "FareInfoRef": "sample string 1", "FareRuleLong": [ { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" }, { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" } ], "FareRuleResultMessage": [ { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" }, { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" } ], "FareRuleShort": [ { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" }, { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" } ], "ProviderCode": "sample string 2", "RuleAdvancedPurchase": { "morerulespresent": true, "morerulespresentspecified": true, "reservationlatestperiod": "sample string 3", "reservationlatestunit": 0, "reservationlatestunitspecified": true, "ticketingearliestdate": "sample string 5", "ticketinglatestdate": "sample string 6", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "ReservationLatestPeriod": "sample string 3", "ReservationLatestUnit": 0, "ReservationLatestUnitSpecified": true, "TicketingEarliestDate": "sample string 5", "TicketingLatestDate": "sample string 6" }, "RuleCharges": { "Amount": "sample string 1", "DepartureStatus": "sample string 2", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "PenaltyType": "sample string 5", "Percent": 6.0, "PercentSpecifiedl": true }, "RuleLengthOfStay": { "MaximumStay": { "length": "sample string 1", "morerulespresent": "sample string 2", "morerulespresentspecified": true, "staydate": "sample string 4", "staydatespecified": true, "stayunit": 0, "stayunitspecified": true, "Length": "sample string 1", "MoreRulesPresent": "sample string 2", "MoreRulesPresentSpecified": true, "StayDate": "sample string 4", "StayDateSpecified": true, "StayUnit": 0, "StayUnitSpecified": true } }, "RuleNumber": "sample string 3", "Source": "sample string 4" } ] }, "BookingVoucherResult": { "CommandHistory": "sample string 1", "ResponseMessage": { "Code": "sample string 1", "ProviderCode": "sample string 2", "SupplierCode": "sample string 3", "Type": 0, "TypeSpecified": true, "Value": "sample string 5" }, "ResponseTime": "sample string 2", "TraceId": "sample string 3", "TransactionId": "sample string 4", "FareRule": [ { "FareInfoRef": "sample string 1", "FareRuleLong": [ { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" }, { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" } ], "FareRuleResultMessage": [ { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" }, { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" } ], "FareRuleShort": [ { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" }, { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" } ], "ProviderCode": "sample string 2", "RuleAdvancedPurchase": { "morerulespresent": true, "morerulespresentspecified": true, "reservationlatestperiod": "sample string 3", "reservationlatestunit": 0, "reservationlatestunitspecified": true, "ticketingearliestdate": "sample string 5", "ticketinglatestdate": "sample string 6", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "ReservationLatestPeriod": "sample string 3", "ReservationLatestUnit": 0, "ReservationLatestUnitSpecified": true, "TicketingEarliestDate": "sample string 5", "TicketingLatestDate": "sample string 6" }, "RuleCharges": { "Amount": "sample string 1", "DepartureStatus": "sample string 2", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "PenaltyType": "sample string 5", "Percent": 6.0, "PercentSpecifiedl": true }, "RuleLengthOfStay": { "MaximumStay": { "length": "sample string 1", "morerulespresent": "sample string 2", "morerulespresentspecified": true, "staydate": "sample string 4", "staydatespecified": true, "stayunit": 0, "stayunitspecified": true, "Length": "sample string 1", "MoreRulesPresent": "sample string 2", "MoreRulesPresentSpecified": true, "StayDate": "sample string 4", "StayDateSpecified": true, "StayUnit": 0, "StayUnitSpecified": true } }, "RuleNumber": "sample string 3", "Source": "sample string 4" }, { "FareInfoRef": "sample string 1", "FareRuleLong": [ { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" }, { "Category": "sample string 1", "Type": "sample string 2", "Value": "sample string 3" } ], "FareRuleResultMessage": [ { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" }, { "Code": "sample string 1", "Type": 0, "TypeSpecified": true, "Value": "sample string 3" } ], "FareRuleShort": [ { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" }, { "tablenumber": "sample string 1", "Category": "sample string 1", "FareRuleNameValue": [ { "Name": null, "Value": "sample string 1" }, { "Name": null, "Value": "sample string 1" } ], "TableNumber": "sample string 1" } ], "ProviderCode": "sample string 2", "RuleAdvancedPurchase": { "morerulespresent": true, "morerulespresentspecified": true, "reservationlatestperiod": "sample string 3", "reservationlatestunit": 0, "reservationlatestunitspecified": true, "ticketingearliestdate": "sample string 5", "ticketinglatestdate": "sample string 6", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "ReservationLatestPeriod": "sample string 3", "ReservationLatestUnit": 0, "ReservationLatestUnitSpecified": true, "TicketingEarliestDate": "sample string 5", "TicketingLatestDate": "sample string 6" }, "RuleCharges": { "Amount": "sample string 1", "DepartureStatus": "sample string 2", "MoreRulesPresent": true, "MoreRulesPresentSpecified": true, "PenaltyType": "sample string 5", "Percent": 6.0, "PercentSpecifiedl": true }, "RuleLengthOfStay": { "MaximumStay": { "length": "sample string 1", "morerulespresent": "sample string 2", "morerulespresentspecified": true, "staydate": "sample string 4", "staydatespecified": true, "stayunit": 0, "stayunitspecified": true, "Length": "sample string 1", "MoreRulesPresent": "sample string 2", "MoreRulesPresentSpecified": true, "StayDate": "sample string 4", "StayDateSpecified": true, "StayUnit": 0, "StayUnitSpecified": true } }, "RuleNumber": "sample string 3", "Source": "sample string 4" } ] } }, "code": 1, "message": "sample string 2" }