POST api/v1/pkfare/reserve
下单
Request Information
URI Parameters
None.
Body Parameters
ReserveRqContractName | Description | Type | Additional information |
---|---|---|---|
autoticket |
是否為自動出票 |
boolean |
None. |
bookingremarks |
備注 |
Collection of ReserveRemark |
None. |
contact |
聯系人信息 |
ContactContract |
None. |
isincludepayment | boolean |
None. |
|
passengers |
旅客信息 |
Collection of PassengerContract |
None. |
placequeue | boolean |
None. |
|
routing |
機票信息 |
Routeing |
None. |
sessionid |
緩存鍵ID |
string |
None. |
formofpayment | string |
None. |
|
platformsource |
平臺來源 |
string |
None. |
triptype |
類型(1=單程,2=雙程,3=多程) |
string |
None. |
sid |
標識 |
string |
None. |
lang |
语言 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "autoticket": true, "bookingremarks": [ { "Type": 0, "Remark": "sample string 1" }, { "Type": 0, "Remark": "sample string 1" } ], "contact": { "prefix": "sample string 1", "address": "sample string 2", "email": "sample string 3", "mobile": "sample string 4", "firstName": "sample string 5", "lastName": "sample string 6", "postCode": "sample string 7", "city": "sample string 8", "countryCode": "sample string 9", "otherPhone": "sample string 10", "provinceState": "sample string 11" }, "isincludepayment": true, "passengers": [ { "agetType": 0, "birthDay": "2024-12-23T20:02:20.7688353+08:00", "cardExpired": "sample string 1", "cardIssuePlace": "sample string 2", "cardNum": "sample string 3", "cardType": "sample string 4", "email": "sample string 5", "gender": "sample string 6", "firstName": "sample string 7", "lastName": "sample string 8", "nationality": "sample string 9", "phoneNO": "sample string 10", "ssrRequests": [ { "type": "sample string 1", "freeText": "sample string 2" }, { "type": "sample string 1", "freeText": "sample string 2" } ], "seatType": "sample string 11", "loyaltyCard": { "supplierCode": "sample string 1", "cardNumber": "sample string 2", "operatedBy": [ "sample string 1", "sample string 2" ] }, "prefix": "sample string 12", "cardIssued": "sample string 13" }, { "agetType": 0, "birthDay": "2024-12-23T20:02:20.7688353+08:00", "cardExpired": "sample string 1", "cardIssuePlace": "sample string 2", "cardNum": "sample string 3", "cardType": "sample string 4", "email": "sample string 5", "gender": "sample string 6", "firstName": "sample string 7", "lastName": "sample string 8", "nationality": "sample string 9", "phoneNO": "sample string 10", "ssrRequests": [ { "type": "sample string 1", "freeText": "sample string 2" }, { "type": "sample string 1", "freeText": "sample string 2" } ], "seatType": "sample string 11", "loyaltyCard": { "supplierCode": "sample string 1", "cardNumber": "sample string 2", "operatedBy": [ "sample string 1", "sample string 2" ] }, "prefix": "sample string 12", "cardIssued": "sample string 13" } ], "placequeue": true, "routing": { "source": "sample string 1", "sessionid": 2, "data": "sample string 3", "adultprice": 4.0, "adultmarkup": -1.0, "adultorgprice": 5.0, "adulttax": 6.0, "adultorgtax": 7.0, "childprice": 8.0, "childmarkup": -1.0, "childorgprice": 9.0, "childtax": 10.0, "childorgtax": 11.0, "infantprice": 12.0, "infantmarkup": -1.0, "infantorgprice": 13.0, "infanttax": 14.0, "infantorgtax": 15.0, "pricetype": 16, "applytype": 17, "adulttaxtype": 18, "childtaxtype": 19, "infanttaxtype": 20, "adult": 21, "child": 22, "infant": 23, "labour": 24, "rule": { "refund": "sample string 1", "endorse": "sample string 2", "baggage": "sample string 3", "other": "sample string 4", "listbaggagedetail": [ { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } }, { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } } ], "listcarryondetail": [ { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } }, { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } } ] }, "fromsegments": [ { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 }, { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 } ], "retsegments": [ { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 }, { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 } ], "faretype": 0, "fareprice": 1444.0, "searchaccountid": 25, "bookingaccountid": 26, "pricecalculations": [ { "itemtype": "sample string 1", "adultprice": 2.0, "adulttax": 3.0, "childprice": 4.0, "childtax": 5.0, "infantprice": 6.0, "infanttax": 7.0, "remark": "sample string 8", "displayorder": 9 }, { "itemtype": "sample string 1", "adultprice": 2.0, "adulttax": 3.0, "childprice": 4.0, "childtax": 5.0, "infantprice": 6.0, "infanttax": 7.0, "remark": "sample string 8", "displayorder": 9 } ], "deepLink": "sample string 27", "isCacheData": true, "routingKey": "sample string 1_sample string 2_sample string 2|sample string 2|sample string 1_sample string 2_sample string 2|sample string 2_vs_sample string 1_sample string 2_sample string 2|sample string 2|sample string 1_sample string 2_sample string 2|sample string 2", "platingCarrier": "sample string 29" }, "sessionid": "sample string 4", "formofpayment": "sample string 5", "platformsource": "sample string 6", "triptype": "sample string 7", "sid": "sample string 9", "lang": "sample string 14" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
下单
ReturnResultOfReserveRpContractName | Description | Type | Additional information |
---|---|---|---|
data | ReserveRpContract |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "fareruleonreserve": { "endorsement": [ "sample string 1", "sample string 2" ], "lastticketdate": "sample string 1", "sellingmessage": [ "sample string 1", "sample string 2" ], "ticketvalilddate": "sample string 2" }, "markupby": 0, "markuptaxby": 0, "markuptaxvalue": 1.0, "markupvalue": 2.0, "maxseats": 3, "orderno": "sample string 4", "placequeueresponsemessage": "sample string 5", "placequeuesuccess": true, "pnrcode": "sample string 7", "processid": 8, "responsemessages": [ "sample string 1", "sample string 2" ], "routing": { "source": "sample string 1", "sessionid": 2, "data": "sample string 3", "adultprice": 4.0, "adultmarkup": -1.0, "adultorgprice": 5.0, "adulttax": 6.0, "adultorgtax": 7.0, "childprice": 8.0, "childmarkup": -1.0, "childorgprice": 9.0, "childtax": 10.0, "childorgtax": 11.0, "infantprice": 12.0, "infantmarkup": -1.0, "infantorgprice": 13.0, "infanttax": 14.0, "infantorgtax": 15.0, "pricetype": 16, "applytype": 17, "adulttaxtype": 18, "childtaxtype": 19, "infanttaxtype": 20, "adult": 21, "child": 22, "infant": 23, "labour": 24, "rule": { "refund": "sample string 1", "endorse": "sample string 2", "baggage": "sample string 3", "other": "sample string 4", "listbaggagedetail": [ { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } }, { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } } ], "listcarryondetail": [ { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } }, { "key": "sample string 1", "deptairport": "sample string 2", "arrairport": "sample string 3", "maxweight": "sample string 4", "unit": "sample string 5", "numbeofpieces": "sample string 6", "baggageallowancs": { "unit": 1, "unitname": "sample string 1", "simplerule": true, "url": "sample string 3", "remark": "sample string 4", "baggages": [ { "index": 1, "isfree": true, "remark": "sample string 3" }, { "index": 1, "isfree": true, "remark": "sample string 3" } ] } } ] }, "fromsegments": [ { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 }, { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 } ], "retsegments": [ { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 }, { "carrier": "sample string 1", "flightnumber": "sample string 2", "depairport": "sample string 3", "deptime": "sample string 4", "deptimezone": "sample string 5", "arrairport": "sample string 6", "arrtime": "sample string 7", "arrtimezone": "sample string 8", "stopcities": "sample string 9", "stopcityinfo": [ { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 }, { "depairport": "sample string 1", "deptime": "sample string 2", "deptimezone": "sample string 3", "arrairport": "sample string 4", "arrtime": "sample string 5", "arrtimezone": "sample string 6", "airtime": 7 } ], "codeshare": true, "aircraftcode": "sample string 11", "airtime": "sample string 12", "airreminder": "sample string 13", "key": "sample string 14", "marketairlines": "sample string 15", "operatorairlines": "sample string 16", "cabinclass": [ { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 }, { "qualifier": "sample string 1", "cabin": "sample string 2", "cabincode": 0, "farebasis": "sample string 3", "seatcount": 4 } ], "segmentgroup": 17, "depterminal": "sample string 18", "arrterminal": "sample string 19", "faresequence": "sample string 20", "opsuffix": "sample string 21", "ruleNumber": "sample string 22", "fareApplicationType": 0, "status": "sample string 23", "segmentorder": 24 } ], "faretype": 0, "fareprice": 1444.0, "searchaccountid": 25, "bookingaccountid": 26, "pricecalculations": [ { "itemtype": "sample string 1", "adultprice": 2.0, "adulttax": 3.0, "childprice": 4.0, "childtax": 5.0, "infantprice": 6.0, "infanttax": 7.0, "remark": "sample string 8", "displayorder": 9 }, { "itemtype": "sample string 1", "adultprice": 2.0, "adulttax": 3.0, "childprice": 4.0, "childtax": 5.0, "infantprice": 6.0, "infanttax": 7.0, "remark": "sample string 8", "displayorder": 9 } ], "deepLink": "sample string 27", "isCacheData": true, "routingKey": "sample string 1_sample string 2_sample string 2|sample string 2|sample string 1_sample string 2_sample string 2|sample string 2_vs_sample string 1_sample string 2_sample string 2|sample string 2|sample string 1_sample string 2_sample string 2|sample string 2", "platingCarrier": "sample string 29" }, "segment": 9, "segmentax": 10, "segmentmarkup": 11.0, "segmenttaxmarkup": 12.0, "sessionid": "sample string 13", "undercutby": 0, "undercutby2": 0, "undercutvalue": 14.0, "undercutvalue2": 15.0, "urcode": "sample string 16" }, "code": 1, "message": "sample string 2" }