Pre-paid Checked Baggage Fees

This feature can be enabled in the API request by including:

Copy
Copied
"control": {
  "features": [
    "pre_paid_checked_baggage"
  ]
}

The Pre-paid Checked Baggage Fees feature provides the ability to display Pre-paid Checked Baggage Charge policies more accurately and effectively by extending the Routehappy API's response with additional information.

Once the feature is enabled in the API request, the pre_paid_bags list will appear for all checked_bag items in the response. pre_paid_bags are represented using the same structure paid_bags to allow for easier integration and processing of the API's response.

attention

Pre-paid bags are considered an extension of the Checked baggage structure and do not affect the headline and description values in any way.

attention

It is important to note that when the feature is enabled but no Pre-paid Checked Baggage data is matched, the field will appear as an empty list.

This is an example response for a single baggage charge, which covers the first excess piece:

Copy
Copied
{
  "data": {
    ...
    "checked_bag": [
      {
        "id": "3890180809",
        "free_bags": {
            ...
        },
        "paid_bags": [
            ...
        ],
        "pre_paid_bags": [
          {
            "attributes": {
              "cxr": "LY",
              "seq_no": 144520,
              "service_type": "C",
              "sub_code": "0GO"
            },
            "display_text": "UPTO50LB 23KG AND62LI 158LCM",
            "excess_first": "1",
            "excess_last": "1",
            "fee": {
              "amount": 110.0,
              "currency": "USD"
            },
            "free": "0",
            "optional_service_id": "LYC0GO144520",
            "os_sequence": "144520",
            "size": {
              "application": "up to",
              "cm": "158",
              "in": "62"
            },
            "weight": {
              "application": "up to",
              "kg": "23",
              "lb": "50"
            }
          }
        ],

        ...
      }
    ],

    ...
  },
  "itineraries": [
      ...
  ],

  ...
}