{
    "data": {
        "refunds": {
            "getRefundCandidate": {
                "viewer": "OpsAgentViewer",
                "ticketSummary": {
                    "ticketId": 212210657,
                    "ticketNum": "0741613752194",
                    "pnr": "XXXXXX",
                    "iataCode": "XXXXXXXX",
                    "travelAgencyId": 70,
                    "travelAgencyName": "Agency_name",
                    "airlineName": "Klm",
                    "passengerName": "XXXXX/XXXXX",
                    "flightType": "International",
                    "gds": "WORLDSPAN",
                    "issueDate": "2023-10-09",
                    "validIssueDate": "2023-10-09",
                    "refundLimitDate": "2024-10-09",
                    "endorsements": null,
                    "totalFare": {
                        "amount": 2231200.00,
                        "currencyCode": "COP"
                    },
                    "paidBaseFare": {
                        "amount": 908100.00,
                        "currencyCode": "COP"
                    },
                    "fopData": {
                        "equivalentFare": 908100.00,
                        "cardPayment": 2231200.00,
                        "cashPayment": 0.00,
                        "taxPayment": {
                            "amount": 1323100.00,
                            "currencyCode": "COP"
                        }
                    },
                    "fop": "CC",
                    "parentTicketNum": null,
                    "parentIssueDate": null,
                    "fareBasis": "GLC0BILB",
                    "commissionPercent": 1.00,
                    "commissionAmount": {
                        "amount": 9081.0000,
                        "currencyCode": "COP"
                    },
                    "rfisc": null,
                    "isPocActive": false,
                    "isTicketExpired": false,
                    "pnrAirline": null
                },
                "refundCandidateSummary": {
                    "status": "ERROR",
                    "product": "ARP",
                    "createdAt": "2023-11-01",
                    "waiver": null,
                    "freeText": null,
                    "ssr": null,
                    "osi": null,
                    "remark": null,
                    "endorsement": null,
                    "waiverForceFareRefundWithoutPenalty": true,
                    "rucFoid": null,
                    "emdNum": null,
                    "emdIssueDate": null,
                    "refundRoute": "GDS",
                    "overrideRefundRoute": "GDS",
                    "availableRefundRoutes": [
                        "BSP",
                        "GDS"
                    ],
                    "identificationNotes": "CANDIDATE SEGMENTS TAKEN FROM FARE CONSTRUCTION, DIDN'T NEED TO QUOTE\nTax YS marked as willRefund=false\nYR tax is not set as refundable in AirlineDetails\nStatus changed NEW->REVIEW\nStatus locked to REVIEW\nARP Refund for Agency always REVIEW\nTried to change from locked status REVIEW to READY\nARP REVIEW - TAX ONLY GREATER THAN 500 USD\nTax PE overriden as it is not refundable for tickets who are not LATAM or with IATA starting with 91.\nWATCHOUT: Failed to update related refunds --> No need to check for related refunds\nUpdated -> Status changed by agent@agency.com from REVIEW to READY at 2023-11-01T12:49:34.832512\nUpdated -> refund Route changed by agent@agency.com from BSP to GDS at 2023-11-01T12:49:34.832528\nEnqueued for REFUND by agent@agency.com at 2023-11-01T12:49:41.236773",
                    "notes": null,
                    "operatorNotes": null,
                    "isAdminFeeApplicable": true,
                    "isVisibleToClient": true,
                    "calcError": null,
                    "calcTaxRefundability": "{\"DG\":[1,{\"tax_code\":\"DG\",\"total_paid\":{\"amount\":\"110000.0\",\"currency_code\":\"COP\"},\"total_computed\":{\"amount\":\"110019.3\",\"currency_code\":\"COP\"},\"diff_with_charged_in_usd\":{\"amount\":\"0.00\",\"currency_code\":\"USD\"},\"safe_refundable\":[{\"amount\":\"110000.0\",\"currency_code\":\"COP\"}],\"applied_in_segments\":[{\"origin\":\"BOG\",\"destination\":\"AMS\",\"is_taxable_segment_open\":true,\"is_flight_segment_open\":[true],\"tax_code\":\"DG\",\"tax_sequence\":5216,\"tax_point\":\"DEPARTURE\",\"tax_remit\":\"USE\",\"tax_amount\":\"110000.0\",\"tax_currency\":[\"COP\"],\"tax_percent_flat\":\"FLAT\",\"percent_over_amount\":[{\"amount\":\"207.00\",\"currency_code\":\"NUC\"}],\"is_part_refundable\":true,\"computed_tax_amount\":{\"amount\":\"110000.0\",\"currency_code\":\"COP\"},\"segment_idx\":[1],\"tax_name\":[\"Resident Exit Tax (Timbre)\"],\"tax_country_code\":[\"CO\"],\"origin_country\":[\"CO\"],\"destination_country\":[\"NL\"]}]}],\"CJ\":[1,{\"tax_code\":\"CJ\",\"total_paid\":{\"amount\":\"38100.0\",\"currency_code\":\"COP\"},\"total_computed\":{\"amount\":\"38296.19\",\"currency_code\":\"COP\"},\"diff_with_charged_in_usd\":{\"amount\":\"0.04\",\"currency_code\":\"USD\"},\"safe_refundable\":[{\"amount\":\"38100.0\",\"currency_code\":\"COP\"}],\"applied_in_segments\":[{\"origin\":\"AMS\",\"destination\":\"MAD\",\"is_taxable_segment_open\":true,\"is_flight_segment_open\":[true],\"tax_code\":\"CJ\",\"tax_sequence\":7168,\"tax_point\":\"DEPARTURE\",\"tax_remit\":\"USE\",\"tax_amount\":\"8.29\",\"tax_currency\":[\"EUR\"],\"tax_percent_flat\":\"FLAT\",\"percent_over_amount\":[{\"amount\":\"207.00\",\"currency_code\":\"NUC\"}],\"is_part_refundable\":true,\"computed_tax_amount\":{\"amount\":\"8.29\",\"currency_code\":\"EUR\"},\"segment_idx\":[1],\"tax_name\":[\"Security Service Charge (International)\"],\"tax_country_code\":[\"NL\"],\"origin_country\":[\"NL\"],\"destination_country\":[\"ES\"]}]}],\"YS\":[1,{\"tax_code\":\"YS\",\"total_paid\":{\"amount\":\"293400.0\",\"currency_code\":\"COP\"},\"total_computed\":{\"amount\":\"293400.0\",\"currency_code\":\"COP\"},\"diff_with_charged_in_usd\":{\"amount\":\"0.00\",\"currency_code\":\"USD\"},\"safe_refundable\":[{\"amount\":\"293400.0\",\"currency_code\":\"COP\"}],\"applied_in_segments\":[{\"origin\":\"BOG\",\"destination\":\"AMS\",\"is_taxable_segment_open\":true,\"is_flight_segment_open\":[true],\"tax_code\":\"YS\",\"tax_sequence\":0,\"tax_point\":\"NA\",\"tax_remit\":\"SALE\",\"tax_amount\":\"293400.0\",\"tax_currency\":[\"COP\"],\"tax_percent_flat\":\"FLAT\",\"percent_over_amount\":[{\"amount\":\"207.00\",\"currency_code\":\"NUC\"}],\"is_part_refundable\":true,\"computed_tax_amount\":{\"amount\":\"293400.0\",\"currency_code\":\"COP\"},\"segment_idx\":[1],\"tax_name\":[\"Sales Tax (Domestic) = I.V.A.\"],\"tax_country_code\":[\"CO\"],\"origin_country\":[\"CO\"],\"destination_country\":[\"NL\"]}]}],\"RN\":[1,{\"tax_code\":\"RN\",\"total_paid\":{\"amount\":\"43700.0\",\"currency_code\":\"COP\"},\"total_computed\":{\"amount\":\"43867.35\",\"currency_code\":\"COP\"},\"diff_with_charged_in_usd\":{\"amount\":\"0.04\",\"currency_code\":\"USD\"},\"safe_refundable\":[{\"amount\":\"43700.0\",\"currency_code\":\"COP\"}],\"applied_in_segments\":[{\"origin\":\"AMS\",\"destination\":\"MAD\",\"is_taxable_segment_open\":true,\"is_flight_segment_open\":[true],\"tax_code\":\"RN\",\"tax_sequence\":5407,\"tax_point\":\"DEPARTURE\",\"tax_remit\":\"USE\",\"tax_amount\":\"9.5\",\"tax_currency\":[\"EUR\"],\"tax_percent_flat\":\"FLAT\",\"percent_over_amount\":[{\"amount\":\"207.00\",\"currency_code\":\"NUC\"}],\"is_part_refundable\":true,\"computed_tax_amount\":{\"amount\":\"9.5\",\"currency_code\":\"EUR\"},\"segment_idx\":[1],\"tax_name\":[\"Passenger Service Charge (International)\"],\"tax_country_code\":[\"NL\"],\"origin_country\":[\"NL\"],\"destination_country\":[\"ES\"]}]}],\"CO\":[1,{\"tax_code\":\"CO\",\"total_paid\":{\"amount\":\"201800.0\",\"currency_code\":\"COP\"},\"total_computed\":{\"amount\":\"201789.79\",\"currency_code\":\"COP\"},\"diff_with_charged_in_usd\":{\"amount\":\"0.0\",\"currency_code\":\"USD\"},\"safe_refundable\":[{\"amount\":\"201800.0\",\"currency_code\":\"COP\"}],\"applied_in_segments\":[{\"origin\":\"BOG\",\"destination\":\"AMS\",\"is_taxable_segment_open\":true,\"is_flight_segment_open\":[true],\"tax_code\":\"CO\",\"tax_sequence\":7215,\"tax_point\":\"DEPARTURE\",\"tax_remit\":\"USE\",\"tax_amount\":\"46.0\",\"tax_currency\":[\"USD\"],\"tax_percent_flat\":\"FLAT\",\"percent_over_amount\":[{\"amount\":\"207.00\",\"currency_code\":\"NUC\"}],\"is_part_refundable\":true,\"computed_tax_amount\":{\"amount\":\"46.0\",\"currency_code\":\"USD\"},\"segment_idx\":[1],\"tax_name\":[\"Airport Tax (International)\"],\"tax_country_code\":[\"CO\"],\"origin_country\":[\"CO\"],\"destination_country\":[\"NL\"]}]}]}",
                    "amountsSummary": {
                        "baseFare": {
                            "amount": 908100.00,
                            "currencyCode": "COP"
                        },
                        "fareToRefund": {
                            "amount": 0,
                            "currencyCode": "COP"
                        },
                        "taxesPaid": {
                            "amount": 1323100.00,
                            "currencyCode": "COP"
                        },
                        "taxesToRefund": {
                            "amount": 393600,
                            "currencyCode": "COP"
                        },
                        "cancellationPenalty": {
                            "amount": 0,
                            "currencyCode": "COP"
                        },
                        "fixedCancellationFee": {
                            "amount": 0.00,
                            "currencyCode": "COP"
                        },
                        "adminFee": {
                            "amount": 0.00,
                            "currencyCode": "COP"
                        },
                        "agencyFee": null,
                        "cancellationFeeVat": {
                            "amount": 0,
                            "currencyCode": "COP"
                        },
                        "discountCode": null,
                        "discount": null,
                        "totalRefund": {
                            "amount": 393600,
                            "currencyCode": "COP"
                        },
                        "cashRefund": {
                            "amount": 0,
                            "currencyCode": "COP"
                        },
                        "cardRefund": {
                            "amount": 393600,
                            "currencyCode": "COP"
                        },
                        "additionalPenalty": null
                    },
                    "refundType": "TAX",
                    "isPerSegmentRefundable": false,
                    "clientData": {
                        "isVoluntaryFlagModifiable": false,
                        "isVoluntaryRefund": true,
                        "metadata": null
                    },
                    "overrideTaxCalculations": false,
                    "overrideBaseFareSegments": null,
                    "isGuaranteedRefund": false,
                    "shouldCancelItinerary": false,
                    "isQuotationOk": true
                },
                "coupons": [
                    {
                        "id": 155498511,
                        "idx": 1,
                        "number": 1,
                        "segmentIdx": 1,
                        "isOpen": true,
                        "status": "O",
                        "connectionType": "O",
                        "origin": "BOG",
                        "destination": "AMS",
                        "departedAt": "2023-10-27T15:15:00",
                        "fareClass": "G",
                        "brandCode": null,
                        "fareBasis": "GLC0BILB",
                        "marketingAirline": "KL",
                        "flightNum": "747"
                    },
                    {
                        "id": 155498512,
                        "idx": 2,
                        "number": 2,
                        "segmentIdx": 1,
                        "isOpen": true,
                        "status": "O",
                        "connectionType": "X",
                        "origin": "AMS",
                        "destination": "MAD",
                        "departedAt": "2023-10-28T13:50:00",
                        "fareClass": "L",
                        "brandCode": null,
                        "fareBasis": "GLC0BILB",
                        "marketingAirline": "KL",
                        "flightNum": "1703"
                    }
                ],
                "fareConstructionSummary": {
                    "fareCalculation": "BOG KL X/AMS KL MAD207.00NUC 207.00END ROE1.00 KL",
                    "eitherFareConstruction": {
                        "left": null,
                        "right": {
                            "segments": [
                                {
                                    "parts": [
                                        {
                                            "index": 1,
                                            "origin": "BOG",
                                            "airline": "KL",
                                            "destination": "AMS",
                                            "connectionType": "O",
                                            "qs": []
                                        },
                                        {
                                            "index": 2,
                                            "origin": "AMS",
                                            "airline": "KL",
                                            "destination": "MAD",
                                            "connectionType": "X",
                                            "qs": []
                                        }
                                    ],
                                    "extraQs": [],
                                    "fare": 207.00,
                                    "fareBasis": null
                                }
                            ],
                            "currencyCode": "NUC",
                            "gdsSurcharge": 0,
                            "total": 207.00,
                            "roe": 1.00,
                            "taxZP": null,
                            "combinedTaxes": [],
                            "facilityCharges": []
                        }
                    }
                },
                "badges": {
                    "ticketTypeBadge": {
                        "status": "Primary",
                        "message": "Ticket Type",
                        "label": null,
                        "value": "SIMPLE"
                    },
                    "usageBadge": {
                        "status": "Success",
                        "message": "Ticket Usage",
                        "label": null,
                        "value": "FULLY OPEN"
                    },
                    "historicPricingBadge": {
                        "status": "Success",
                        "message": "Ok, No HistoricPricing required since ticket is not partial refund.",
                        "label": "HP:",
                        "value": "OK"
                    },
                    "fareConstructionBadge": {
                        "status": "Success",
                        "message": "FareConstruction OK",
                        "label": "FC:",
                        "value": "OK"
                    },
                    "refundRouteBadge": {
                        "status": "Success",
                        "message": "FOP is CC and RefundRoute GDS",
                        "label": "Via:",
                        "value": "GDS"
                    },
                    "validFopBadge": {
                        "status": "Success",
                        "message": "FOP is CC and RefundRoute GDS",
                        "label": "FOP:",
                        "value": "CC"
                    },
                    "fareRefBadge": {
                        "status": "Primary",
                        "message": "Fare is NOT Refundable",
                        "label": "Fare:",
                        "value": "Ref✗"
                    },
                    "groupFareBadge": null,
                    "taxCalculationBadge": {
                        "status": "Success",
                        "message": "Tax Calculator OK",
                        "label": "Calc:",
                        "value": "OK"
                    },
                    "quoteExpiryBadge": {
                        "status": "Success",
                        "message": "Quote is up to date",
                        "label": "Up to date:",
                        "value": "YES"
                    },
                    "quoteSafetyBadge": {
                        "status": "Success",
                        "message": "Quote is safe to refund",
                        "label": "Safe:",
                        "value": "OK"
                    },
                    "guaranteedRefundBadge": null
                },
                "paidTaxes": [
                    {
                        "key": "DG",
                        "value": {
                            "amount": 110000.00,
                            "currencyCode": "COP"
                        }
                    },
                    {
                        "key": "CJ",
                        "value": {
                            "amount": 38100.00,
                            "currencyCode": "COP"
                        }
                    },
                    {
                        "key": "YS",
                        "value": {
                            "amount": 293400.00,
                            "currencyCode": "COP"
                        }
                    },
                    {
                        "key": "YQ",
                        "value": {
                            "amount": 100900.00,
                            "currencyCode": "COP"
                        }
                    },
                    {
                        "key": "YR",
                        "value": {
                            "amount": 535200.00,
                            "currencyCode": "COP"
                        }
                    },
                    {
                        "key": "RN",
                        "value": {
                            "amount": 43700.00,
                            "currencyCode": "COP"
                        }
                    },
                    {
                        "key": "CO",
                        "value": {
                            "amount": 201800.00,
                            "currencyCode": "COP"
                        }
                    }
                ],
                "eitherComputedTaxes": [
                    {
                        "key": "DG",
                        "value": {
                            "left": null,
                            "right": {
                                "taxCode": "DG",
                                "totalPaid": {
                                    "amount": 110000.0,
                                    "currencyCode": "COP"
                                },
                                "totalComputed": {
                                    "amount": 110019.3,
                                    "currencyCode": "COP"
                                },
                                "diffWithChargedInUsd": {
                                    "amount": 0.00,
                                    "currencyCode": "USD"
                                },
                                "safeRefundable": {
                                    "amount": 110000.0,
                                    "currencyCode": "COP"
                                },
                                "isPartialRefundable": null,
                                "appliedInSegments": [
                                    {
                                        "origin": "BOG",
                                        "destination": "AMS",
                                        "isTaxableSegmentOpen": true,
                                        "isFlightSegmentOpen": true,
                                        "taxCode": "DG",
                                        "taxSequence": 5216,
                                        "taxPoint": "DEPARTURE",
                                        "taxRemit": "USE",
                                        "taxAmount": 110000.0,
                                        "taxCurrency": "COP",
                                        "taxPercentFlat": "FLAT",
                                        "percentOverAmount": {
                                            "amount": 207.00,
                                            "currencyCode": "NUC"
                                        },
                                        "isPartRefundable": true,
                                        "computedTaxAmount": {
                                            "amount": 110000.0,
                                            "currencyCode": "COP"
                                        },
                                        "segmentIdx": 1,
                                        "taxName": "Resident Exit Tax (Timbre)",
                                        "taxCountryCode": "CO",
                                        "originCountry": "CO",
                                        "destinationCountry": "NL",
                                        "localPaid": null
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "key": "CJ",
                        "value": {
                            "left": null,
                            "right": {
                                "taxCode": "CJ",
                                "totalPaid": {
                                    "amount": 38100.0,
                                    "currencyCode": "COP"
                                },
                                "totalComputed": {
                                    "amount": 38296.19,
                                    "currencyCode": "COP"
                                },
                                "diffWithChargedInUsd": {
                                    "amount": 0.04,
                                    "currencyCode": "USD"
                                },
                                "safeRefundable": {
                                    "amount": 38100.0,
                                    "currencyCode": "COP"
                                },
                                "isPartialRefundable": null,
                                "appliedInSegments": [
                                    {
                                        "origin": "AMS",
                                        "destination": "MAD",
                                        "isTaxableSegmentOpen": true,
                                        "isFlightSegmentOpen": true,
                                        "taxCode": "CJ",
                                        "taxSequence": 7168,
                                        "taxPoint": "DEPARTURE",
                                        "taxRemit": "USE",
                                        "taxAmount": 8.29,
                                        "taxCurrency": "EUR",
                                        "taxPercentFlat": "FLAT",
                                        "percentOverAmount": {
                                            "amount": 207.00,
                                            "currencyCode": "NUC"
                                        },
                                        "isPartRefundable": true,
                                        "computedTaxAmount": {
                                            "amount": 8.29,
                                            "currencyCode": "EUR"
                                        },
                                        "segmentIdx": 1,
                                        "taxName": "Security Service Charge (International)",
                                        "taxCountryCode": "NL",
                                        "originCountry": "NL",
                                        "destinationCountry": "ES",
                                        "localPaid": null
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "key": "YS",
                        "value": {
                            "left": null,
                            "right": {
                                "taxCode": "YS",
                                "totalPaid": {
                                    "amount": 293400.0,
                                    "currencyCode": "COP"
                                },
                                "totalComputed": {
                                    "amount": 293400.0,
                                    "currencyCode": "COP"
                                },
                                "diffWithChargedInUsd": {
                                    "amount": 0.00,
                                    "currencyCode": "USD"
                                },
                                "safeRefundable": {
                                    "amount": 293400.0,
                                    "currencyCode": "COP"
                                },
                                "isPartialRefundable": null,
                                "appliedInSegments": [
                                    {
                                        "origin": "BOG",
                                        "destination": "AMS",
                                        "isTaxableSegmentOpen": true,
                                        "isFlightSegmentOpen": true,
                                        "taxCode": "YS",
                                        "taxSequence": 0,
                                        "taxPoint": "NA",
                                        "taxRemit": "SALE",
                                        "taxAmount": 293400.0,
                                        "taxCurrency": "COP",
                                        "taxPercentFlat": "FLAT",
                                        "percentOverAmount": {
                                            "amount": 207.00,
                                            "currencyCode": "NUC"
                                        },
                                        "isPartRefundable": true,
                                        "computedTaxAmount": {
                                            "amount": 293400.0,
                                            "currencyCode": "COP"
                                        },
                                        "segmentIdx": 1,
                                        "taxName": "Sales Tax (Domestic) = I.V.A.",
                                        "taxCountryCode": "CO",
                                        "originCountry": "CO",
                                        "destinationCountry": "NL",
                                        "localPaid": null
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "key": "RN",
                        "value": {
                            "left": null,
                            "right": {
                                "taxCode": "RN",
                                "totalPaid": {
                                    "amount": 43700.0,
                                    "currencyCode": "COP"
                                },
                                "totalComputed": {
                                    "amount": 43867.35,
                                    "currencyCode": "COP"
                                },
                                "diffWithChargedInUsd": {
                                    "amount": 0.04,
                                    "currencyCode": "USD"
                                },
                                "safeRefundable": {
                                    "amount": 43700.0,
                                    "currencyCode": "COP"
                                },
                                "isPartialRefundable": null,
                                "appliedInSegments": [
                                    {
                                        "origin": "AMS",
                                        "destination": "MAD",
                                        "isTaxableSegmentOpen": true,
                                        "isFlightSegmentOpen": true,
                                        "taxCode": "RN",
                                        "taxSequence": 5407,
                                        "taxPoint": "DEPARTURE",
                                        "taxRemit": "USE",
                                        "taxAmount": 9.5,
                                        "taxCurrency": "EUR",
                                        "taxPercentFlat": "FLAT",
                                        "percentOverAmount": {
                                            "amount": 207.00,
                                            "currencyCode": "NUC"
                                        },
                                        "isPartRefundable": true,
                                        "computedTaxAmount": {
                                            "amount": 9.5,
                                            "currencyCode": "EUR"
                                        },
                                        "segmentIdx": 1,
                                        "taxName": "Passenger Service Charge (International)",
                                        "taxCountryCode": "NL",
                                        "originCountry": "NL",
                                        "destinationCountry": "ES",
                                        "localPaid": null
                                    }
                                ]
                            }
                        }
                    },
                    {
                        "key": "CO",
                        "value": {
                            "left": null,
                            "right": {
                                "taxCode": "CO",
                                "totalPaid": {
                                    "amount": 201800.0,
                                    "currencyCode": "COP"
                                },
                                "totalComputed": {
                                    "amount": 201789.79,
                                    "currencyCode": "COP"
                                },
                                "diffWithChargedInUsd": {
                                    "amount": 0.0,
                                    "currencyCode": "USD"
                                },
                                "safeRefundable": {
                                    "amount": 201800.0,
                                    "currencyCode": "COP"
                                },
                                "isPartialRefundable": null,
                                "appliedInSegments": [
                                    {
                                        "origin": "BOG",
                                        "destination": "AMS",
                                        "isTaxableSegmentOpen": true,
                                        "isFlightSegmentOpen": true,
                                        "taxCode": "CO",
                                        "taxSequence": 7215,
                                        "taxPoint": "DEPARTURE",
                                        "taxRemit": "USE",
                                        "taxAmount": 46.0,
                                        "taxCurrency": "USD",
                                        "taxPercentFlat": "FLAT",
                                        "percentOverAmount": {
                                            "amount": 207.00,
                                            "currencyCode": "NUC"
                                        },
                                        "isPartRefundable": true,
                                        "computedTaxAmount": {
                                            "amount": 46.0,
                                            "currencyCode": "USD"
                                        },
                                        "segmentIdx": 1,
                                        "taxName": "Airport Tax (International)",
                                        "taxCountryCode": "CO",
                                        "originCountry": "CO",
                                        "destinationCountry": "NL",
                                        "localPaid": null
                                    }
                                ]
                            }
                        }
                    }
                ],
                "ticketFareRules": [
                    {
                        "fareBasis": "GLC0BILB",
                        "command": "4FBOGMAD09OCT2327OCT23-KL*GLC0BILB",
                        "content": "FARE RULES TEXT \n\n  UNLESS OTHERWISE SPECIFIED   NOTE - RULE USL4 IN IPRG100 \n  APPLIES \n\nGENERAL RULES TEXT \n\n  UNLESS OTHERWISE SPECIFIED \n\n    CHANGES \n      BEFORE DEPARTURE \n        CHARGE USD 200.00.\n        CHILD/INFANT DISCOUNTS APPLY.\n           NOTE - \n            A CHANGE IS A ROUTING / DATE / FLIGHT \n            MODIFICATION \n            WHEN MORE THAN ONE FARE COMPONENT IS BEING \n            CHANGED \n            THE HIGHEST PENALTY OF ALL CHANGED FARE \n            COMPONENTS \n            WILL APPLY \n                                  //// \n\n                      // BEFORE OUTBOUND DEPARTURE // \n                                  //// \n            NEW RESERVATION AND REISSUANCE MUST BE MADE AT \n            THE \n            SAME TIME PRIOR TO DEPARTURE OF THE ORIGINALLY \n            SCHEDULED FLIGHT. IF CHANGE DOES NOT OCCUR ON THE \n            FIRST FARE COMPONENT OF THE JOURNEY NEW FARE \n            WILL BE RECALCULATED USING FARES IN EFFECT ON THE \n            PREVIOUS TICKETING DATE AND UNDER FOLLOWING \n            CONDITIONS \n             - IF SAME BOOKING CLASS IS USED NEW FARE MAY BE \n               LOWER OR EQUAL OR HIGHER THAN PREVIOUS AND \n               A / MUST COMPLY WITH ALL PROVISIONS OF THE \n\n                   ORIGINALLY TICKETED FARE \n               B / OR MUST COMPLY WITH ALL PROVISIONS OF THE \n                   NEW FARE BEING APPLIED \n             - IF A DIFFERENT BOOKING CLASS IS USED NEW FARE \n               MAY BE EQUAL OR HIGHER THAN PREVIOUS AND \n               A / MUST COMPY WITH ALL PROVISIONS OF THE \n                   NEW FARE BEING APPLIED \n                          ----------------------- \n            REISSUE IS PERMITTED WITH ANY BRAND \n                          ----------------------- \n            NEW RESERVATION AND REISSUANCE MUST BE MADE AT \n            THE \n            SAME TIME PRIOR TO DEPARTURE OF THE ORIGINALLY \n\n            SCHEDULED FLIGHT. WHEN CHANGE OCCURS ON THE FIRST \n            FARE COMPONENT OF THE JOURNEY ONLY OR ON THE \n            FIRST FARE COMPONENT AND OTHER FARE COMPONENT OF \n            THE JOURNEY NEW FARE WILL BE RECALCULATED USING \n            FARES IN EFFECT ON DATE OF REISSUE AND UNDER \n            FOLLOWING CONDITIONS \n             - IF SAME BOOKING CLASS IS USED NEW FARE MAY BE \n               LOWER OR EQUAL OR HIGHER THAN PREVIOUS AND \n               A / MUST COMPLY WITH ALL PROVISIONS OF THE \n                   ORIGINALLY TICKETED FARE \n               B / OR MUST COMPLY WITH ALL PROVISIONS OF THE \n                   NEW FARE BEING APPLIED \n             - IF A DIFFERENT BOOKING CLASS IS USED NEW FARE \n\n               MAY BE EQUAL OR HIGHER THAN PREVIOUS AND \n               A / MUST COMPLY WITH ALL PROVISIONS OF THE \n                   NEW FARE BEING APPLIED \n                          ----------------------- \n            REISSUE IS PERMITTED WITH ANY BRAND \n                          ----------------------- \n      CHANGES NOT PERMITTED IN CASE OF NO-SHOW.\n           NOTE - \n                   //  BEFORE OUTBOUND DEPARTURE  // \n                            //  NO SHOW  // \n            IN THE EVENT OF NO SHOW - WHEN CHANGES ARE \n            REQUESTED AFTER DEPARTURE OF THE ORIGINALLY \n            SCHEDULED FLIGHT -  CHANGES ARE NOT PERMITTED AND \n\n            CANCELLATION RULES SHALL APPLY \n      AFTER DEPARTURE \n        CHARGE USD 200.00.\n        CHILD/INFANT DISCOUNTS APPLY.\n           NOTE - \n            ///// \n                      // AFTER OUTBOUND DEPARTURE // \n                                  //// \n            NEW RESERVATION / REISSUANCE AND PAYMENT \n            OF THE PENALTY MUST BE MADE AT THE SAME TIME \n                      ------------------------------- \n              NEW FARE WILL BE RECALCULATED USING \n            FARES IN EFFECT ON THE PREVIOUS TICKETING DATE \n\n            AND UNDER FOLLOWING CONDITIONS \n             - IF SAME BOOKING CLASS IS USED NEW FARE MAY BE \n               LOWER OR EQUAL OR HIGHER THAN PREVIOUS AND \n               A / MUST COMPLY WITH ALL PROVISIONS OF THE \n                   ORIGINALLY TICKETED FARE \n               B / OR MUST COMPLY WITH ALL PROVISIONS OF THE \n                   NEW FARE BEING APPLIED \n             - IF A DIFFERENT BOOKING CLASS IS USED NEW FARE \n               MAY BE EQUAL OR HIGHER THAN PREVIOUS AND \n            UNDER FOLLOWING CONDITIONS \n            A / MUST COMPLY WITH ALL PROVISIONS OF THE NEW \n                FARE BEING APPLIED \n                          ----------------------- \n\n            REISSUE IS PERMITTED WITH ANY BRAND \n                          ----------------------- \n    CANCELLATIONS \n      ANY TIME \n        TICKET IS NON-REFUNDABLE IN CASE OF CANCEL.\n        TICKET IS NON-REFUNDABLE IN CASE OF NO-SHOW.\n           NOTE - \n            ANY TIME \n            CANCELLATIONS RULES APPLY BY FARE COMPONENT \n            WHEN COMBINING A REFUNDABLE TICKET WITH A \n            NON REFUNDABLE TICKET PROVISIONS WILL APPLY \n            AS FOLLOWS \n               - THE AMOUNT PAID ON THE REFUNDABLE FARE \n\n                 COMPONENT WILL BE REFUNDED UPON PAYMENT \n                 OF THE PENALTY AMOUNT IF APPLICABLE \n               - THE AMOUNT PAID ON THE NON REFUNDABLE \n                 FARE COMPONENT WILL NOT BE REFUNDED \n            - FOR NON REFUNDABLE TICKETS THE YQ/YR CARRIER \n            IMPOSED SURCHARGE WILL NOT BE REFUNDED \n",
                        "isSafe": true,
                        "isFareRefundable": null,
                        "origin": "BOG",
                        "destination": "MAD",
                        "fareRuleSearchType": null,
                        "details": [
                            {
                                "id": 0,
                                "area": "",
                                "ticketingBefore": null,
                                "ticketingAfter": null,
                                "travelBefore": null,
                                "travelAfter": null,
                                "section": "CANCELLATIONS",
                                "isAllowed": false,
                                "timeOfEvent": "",
                                "reason": "",
                                "amountType": "NONE",
                                "currencyCode": null,
                                "amount": null,
                                "chargeType": null,
                                "specialEmergencyRules": false,
                                "fareType": null
                            },
                            {
                                "id": 44674134,
                                "area": "",
                                "ticketingBefore": null,
                                "ticketingAfter": null,
                                "travelBefore": null,
                                "travelAfter": null,
                                "section": "CANCELLATIONS",
                                "isAllowed": false,
                                "timeOfEvent": "AFTER DEPARTURE",
                                "reason": "NO-SHOW",
                                "amountType": "NONE",
                                "currencyCode": null,
                                "amount": null,
                                "chargeType": null,
                                "specialEmergencyRules": false,
                                "fareType": null
                            },
                            {
                                "id": 0,
                                "area": "",
                                "ticketingBefore": null,
                                "ticketingAfter": null,
                                "travelBefore": null,
                                "travelAfter": null,
                                "section": "CHANGES",
                                "isAllowed": false,
                                "timeOfEvent": "",
                                "reason": "",
                                "amountType": "NONE",
                                "currencyCode": null,
                                "amount": null,
                                "chargeType": null,
                                "specialEmergencyRules": false,
                                "fareType": null
                            },
                            {
                                "id": 0,
                                "area": "",
                                "ticketingBefore": null,
                                "ticketingAfter": null,
                                "travelBefore": null,
                                "travelAfter": null,
                                "section": "CHANGES",
                                "isAllowed": true,
                                "timeOfEvent": "BEFORE DEPARTURE",
                                "reason": "",
                                "amountType": "FIXED",
                                "currencyCode": "COP",
                                "amount": 812166.0000,
                                "chargeType": null,
                                "specialEmergencyRules": false,
                                "fareType": null
                            },
                            {
                                "id": 44674134,
                                "area": "",
                                "ticketingBefore": null,
                                "ticketingAfter": null,
                                "travelBefore": null,
                                "travelAfter": null,
                                "section": "CHANGES",
                                "isAllowed": false,
                                "timeOfEvent": "AFTER DEPARTURE",
                                "reason": "NO-SHOW",
                                "amountType": "NONE",
                                "currencyCode": null,
                                "amount": null,
                                "chargeType": null,
                                "specialEmergencyRules": false,
                                "fareType": null
                            },
                            {
                                "id": 0,
                                "area": "",
                                "ticketingBefore": null,
                                "ticketingAfter": null,
                                "travelBefore": null,
                                "travelAfter": null,
                                "section": "CHANGES",
                                "isAllowed": true,
                                "timeOfEvent": "AFTER DEPARTURE",
                                "reason": "",
                                "amountType": "FIXED",
                                "currencyCode": "COP",
                                "amount": 812166.0000,
                                "chargeType": null,
                                "specialEmergencyRules": false,
                                "fareType": null
                            },
                            {
                                "id": 0,
                                "area": "",
                                "ticketingBefore": null,
                                "ticketingAfter": null,
                                "travelBefore": null,
                                "travelAfter": null,
                                "section": "CANCELLATIONS",
                                "isAllowed": false,
                                "timeOfEvent": "ANY TIME",
                                "reason": "CANCEL",
                                "amountType": "NONE",
                                "currencyCode": null,
                                "amount": null,
                                "chargeType": null,
                                "specialEmergencyRules": false,
                                "fareType": null
                            }
                        ]
                    }
                ],
                "ticketStructuredFareRule": null,
                "taxes": [
                    {
                        "code": "CJ",
                        "amount": 38100.00,
                        "currencyCode": "COP",
                        "isRefundable": true,
                        "willRefund": true,
                        "taxRemit": "USE"
                    },
                    {
                        "code": "CO",
                        "amount": 201800.00,
                        "currencyCode": "COP",
                        "isRefundable": true,
                        "willRefund": true,
                        "taxRemit": "USE"
                    },
                    {
                        "code": "DG",
                        "amount": 110000.00,
                        "currencyCode": "COP",
                        "isRefundable": true,
                        "willRefund": true,
                        "taxRemit": "USE"
                    },
                    {
                        "code": "RN",
                        "amount": 43700.00,
                        "currencyCode": "COP",
                        "isRefundable": true,
                        "willRefund": true,
                        "taxRemit": "USE"
                    },
                    {
                        "code": "YQ",
                        "amount": 100900.00,
                        "currencyCode": "COP",
                        "isRefundable": false,
                        "willRefund": false,
                        "taxRemit": "FUEL"
                    },
                    {
                        "code": "YR",
                        "amount": 535200.00,
                        "currencyCode": "COP",
                        "isRefundable": false,
                        "willRefund": false,
                        "taxRemit": "FUEL"
                    },
                    {
                        "code": "YS",
                        "amount": 293400.00,
                        "currencyCode": "COP",
                        "isRefundable": true,
                        "willRefund": false,
                        "taxRemit": "SALE"
                    }
                ],
                "rules": [
                    {
                        "couponId": 155498511,
                        "segmentIdx": 1,
                        "penaltyType": "NONE",
                        "penaltyPercent": null,
                        "penaltyAmount": {
                            "amount": 0,
                            "currencyCode": "COP"
                        },
                        "originalCurrencyPenaltyAmount": null,
                        "ruleAllowsRefund": false,
                        "isWorthRefunding": true,
                        "cancellationFareRuleDetailId": 44674134,
                        "changeFareRuleDetailId": 44674134,
                        "isSecondPenalty": false
                    }
                ],
                "segments": [
                    {
                        "couponId": 155498511,
                        "segmentOrigin": "BOG",
                        "segmentDestination": "MAD",
                        "isOpen": true,
                        "baseFare": {
                            "amount": 908038.62,
                            "currencyCode": "COP"
                        },
                        "originalCurrencyBaseFare": {
                            "amount": 908038.62,
                            "currencyCode": "COP"
                        },
                        "segmentQ": {
                            "amount": 0.00,
                            "currencyCode": "COP"
                        },
                        "originalCurrencySegmentQ": {
                            "amount": 0.00,
                            "currencyCode": "COP"
                        }
                    }
                ],
                "historicalPricings": [],
                "parents": [],
                "attachments": [],
                "refundableNow": {
                    "isRefundableNow": false,
                    "isRefundingNow": false,
                    "isResubmit": false
                },
                "retryableNow": {
                    "isRetryableNow": false,
                    "isRefundableNow": false,
                    "isRefundingNow": false,
                    "isResubmit": false
                },
                "agencyAndAirlineReservationHistory": {
                    "agencyHistory": null,
                    "airlineHistory": null
                },
                "additionalPenaltyRules": [],
                "maybeRejectionReason": null,
                "travelAgencyId": 70,
                "requestAt": null,
                "clientData": {
                    "ticketNum": null,
                    "emailReservation": null,
                    "channel": null,
                    "subChannel": null,
                    "activeReserve": null,
                    "firstName": null,
                    "middleName": null,
                    "lastName": null,
                    "secondLastName": null,
                    "isSplitPnr": null,
                    "pnrNew": null,
                    "cancelPnrDateNew": null,
                    "cancelPnrDate": null,
                    "frequentFlyerNumber": null,
                    "saleCountry": null,
                    "coupons": [
                        {
                            "idx": null,
                            "cancelCouponDate": null
                        }
                    ],
                    "isOriginalSale": null,
                    "formOfPayment": [
                        {
                            "fop": null,
                            "franchise": null,
                            "cardNumber": null,
                            "expDate": null,
                            "approvalCode": null
                        }
                    ],
                    "statusRefund": null,
                    "refcalRefundReason": null,
                    "refcalRefundReject": null,
                    "agentRemark": null,
                    "feeEmd": null,
                    "feeIndicator": null,
                    "feeAmount": null,
                    "feeCurrency": null,
                    "feePaymentdate": null,
                    "extraParams": null
                }
            }
        }
    }
}