Overview : ShortText , Structured 의 차이
- Endpoint : https://api.pp.travelport.com/11/air/farerule/farerules/fromoffer
ShortText
Req
XHTML
1 2 3 4 5 |
offerIdentifier = "e6b6f555-66d2-4476-b051-84b3a5be4d64_PC" string urlWithParams = $"{farerule_url}?offerIdentifier={offerIdentifier}&fareRuleType=ShortText"; |
Rsp
Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
{ "FareRuleListResponse": { "@type": "FareRuleListResponse", "transactionId": "56381957-db09-458a-9612-0453184e802e:p", "FareRule": [ { "@type": "FareRuleText", "id": "OLEOGHT", "Flight": [ { "@type": "Flight", "FlightRef": "f1" } ], "TextFareRule": [ { "name": "AWARD_ACCRUAL", "value": "ADT:Yes" }, { "name": "BAGGAGEALLOWANCE_CARRYON", "value": "ADT:No" }, { "name": "BAGGAGEALLOWANCE_CHECKED", "value": "ADT:No" }, { "name": "CANCEL_AFTERDEPARTURE", "value": "ADT:No" }, { "name": "CANCEL_BEFOREDEPARTURE", "value": "ADT:No" }, { "name": "CHANGE_AFTERDEPARTURE", "value": "ADT:Yes against a fee" }, { "name": "CHANGE_BEFOREDEPARTURE", "value": "ADT:Yes against a fee" }, { "name": "DISCLAIMER", "value": "ADT:Food & drinks: No</br>\n\nUnderseat bag: 40x30x15 cm" }, { "name": "LOUNGEACCESS", "value": "ADT:No" }, { "name": "PRIORITY_BOARDING", "value": "ADT:No" }, { "name": "PRIORITY_SECURITY", "value": "ADT:No" } ] } ], "Identifier": { "value": "e6b6f555-66d2-4476-b051-84b3a5be4d64_PC_FR" }, "ReferenceList": [ { "@type": "ReferenceListFlight", "Flight": [ { "@type": "Flight", "stops": 0, "duration": "PT1H50M", "carrier": "SK", "number": "500", "operatingCarrier": "SK", "operatingCarrierName": "SCANDINAVIAN AIRLINES", "equipment": "32N", "id": "f1", "FlightRef": "f1", "Identifier": { "value": "SEG2" }, "Departure": { "@type": "DepartureDetail", "terminal": "2", "location": "LHR", "date": "2025-03-12", "time": "06:40:00" }, "Arrival": { "@type": "ArrivalDetail", "terminal": "3", "location": "CPH", "date": "2025-03-12", "time": "09:30:00" } } ] } ] } } |

Structured
Req
XHTML
1 2 3 4 5 |
offerIdentifier = "d8ddedb4-fdea-4f95-8fb9-18934421546c_PC" string urlWithParams = $"{farerule_url}?offerIdentifier={offerIdentifier}&fareRuleType=Structured"; |
Rsp
Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
{ "FareRuleListResponse": { "@type": "FareRuleListResponse", "transactionId": "25c43f23-9ad9-49d9-904d-8376e5d6d4dd:p", "FareRule": [ { "@type": "FareRuleStructured", "Flight": [ { "@type": "Flight", "FlightRef": "f1" } ], "StructuredFareRules": [ { "@type": "StructuredFareRules", "Penalties": [ { "@type": "Penalties", "Change": [ { "@type": "ChangeNotPermitted" }, { "@type": "ChangePermitted", "penaltyTypes": [ "BeforeDeparture", "ExchangeRequired" ], "Penalty": [ { "@type": "PenaltyAmount", "Amount": { "code": "KRW", "value": 119900 } } ] } ], "Cancel": [ { "@type": "CancelNotPermitted" }, { "@type": "CancelPermitted", "penaltyTypes": [ "BeforeDeparture" ], "Penalty": [ { "@type": "PenaltyAmount", "Amount": { "code": "KRW", "value": 119900 } } ] } ], "Waiver": [ "DeathOfPassenger", "IllnessOfPassenger" ], "PassengerTypeCodes": [ "ADT" ] } ] } ] } ], "Identifier": { "value": "d8ddedb4-fdea-4f95-8fb9-18934421546c_PC_FR" }, "ReferenceList": [ { "@type": "ReferenceListFlight", "Flight": [ { "@type": "Flight", "stops": 0, "duration": "PT1H55M", "carrier": "SK", "number": "502", "operatingCarrier": "SK", "operatingCarrierName": "SCANDINAVIAN AIRLINES", "equipment": "32N", "id": "f1", "Identifier": { "value": "SEG3" }, "Departure": { "@type": "DepartureDetail", "terminal": "2", "location": "LHR", "date": "2025-03-12", "time": "10:20:00" }, "Arrival": { "@type": "ArrivalDetail", "terminal": "3", "location": "CPH", "date": "2025-03-12", "time": "13:15:00" } } ] } ] } } |
