This is an auto-generated translation

度假租賃單位配置

2026 年 1 月即將推出:度假租賃單位配置架構更新


針對度假租賃,內容 API () 會返回名為unit_configurations 的物件,其中包含客房的相關資訊,以及每個旅宿的床位選項。使用此物件可讓您視覺化顯示客房及床位選項。

bed type configurations

我們將在未來數月內對 API 進行若干更新,因此 API 目前使用的某些屬性將被廢棄。

Warning

重要提示

此更新適用於所有使用/properties/content 的度假租屋服務,包括透過核心 API 及 Vrbo 供應管道進行的預訂。**若您正在使用此度假租賃單位配置來展示度假租賃房源,則需要進行更新。**若您未使用此裝置配置,則無需採取任何行動。

請注意:此變更僅涉及數據呈現方式的調整。這並不構成破壞性架構變更。

單元配置更新

在新版本的架構中,unit_configurations 物件現已包含更詳細的描述:

  • 在「multi-unit」情境中,您將獲得更精確的單位資訊。例如,與其使用當前的物件鍵值1Other1,新方法會在每個單元的鍵值前附加客房識別碼,如下所示:231607625123_Bedroom1

  • 床型值的格式正從全大寫字母轉換為更緊湊的結構。例如TWIN_SINGLE_BED 將轉為TwinBed

  • 可用床位的描述正在進行簡化。例如,Twin/Single bed(s) - 現在只會讀取Twin Bed(s) -

映射遺留單元配置

legacy_typelegacy_descriptionnew_typenew_description
BUNK_BEDBunk bed(s) -BunkBedBunk Bed(s) -
CHILD_BEDChild bed(s) -ChildBedChild Bed(s) -
DOUBLE_BEDDouble bed(s) -FullBedDouble Bed(s) -
KING_BEDKing bed(s) -KingBedKing Bed(s) -
MURPHY_BEDMurphy bed(s) -MurphyBedMurphy Bed(s) -
無資料無資料CribCrib(s) -
無資料無資料CribFixedCrib(s) -
無資料無資料DayBedDay Bed(s) -
無資料無資料FutonFuton(s) -
無資料無資料TwinXLBedLarge Twin Bed(s) -
無資料無資料SofaBedExtraSofa Bed(s) -
無資料無資料TrundleBedTrundle Bed(s) -
無資料無資料WaterBedWater Bed(s) -
QUEEN_BEDQueen bed(s) -QueenBedQueen Bed(s) -
SLEEP_SOFA_FUTONSleep sofa/futon(s) -SofaBedSofa Bed(s) -
TWIN_SINGLE_BEDTwin/Single bed(s) -TwinBedTwin Bed(s) -

模式變更範例

Multi-unit 度假租賃

此範例展示一間位於 multi-unit 的度假租屋旅宿,由三個獨立單元組成,每間均設有一間臥室。

舊架構

{
      "property_id": "49154578123",
      "vacation_rental": {
            "unit_configurations": {
                  "1": [
                        {
                              "quantity": 1,
                              "description": "King bed(s) - ",
                              "type": "KING_BED"
                        }
                  ],
                  "2": [
                        {
                              "quantity": 2,
                              "description": "Queen bed(s) - ",
                              "type": "QUEEN_BED"
                        },
                        {
                              "quantity": 1,
                              "description": "Sleep sofa/futon(s) - ",
                              "type": "SLEEP_SOFA_FUTON"
                        }
                  ],
                  "3": [
                        {
                              "quantity": 1,
                              "description": "Sleep sofa/futon(s) - ",
                              "type": "SLEEP_SOFA_FUTON"
                        }
                  ]
            }
      }
}

新架構

{
      "property_id": "491545781237",
      "vacation_rental": {
            "unit_configurations": {
                  "831607625124_Bedroom1": [
                        {
                              "quantity": 1,
                              "description": "King Bed(s) - ",
                              "type": "KingBed"
                        }
                  ],
                  "831607648123_Bedroom1": [
                        {
                              "quantity": 2,
                              "description": "Queen Bed(s) - ",
                              "type": "QueenBed"
                        },
                        {
                              "quantity": 1,
                              "description": "Futon(s) - ",
                              "type": "Futon"
                        }
                  ],
                  "231607641239123_Bedroom1": [
                        {
                              "quantity": 1,
                              "description": "Futon(s) - ",
                              "type": "Futon"
                        }
                  ]
            }
      }
}

Two-bedroom Vrbo 旅宿

此範例展示一間擁有兩間臥室的 Vrbo 房源旅宿。

舊架構

{
      "property_id": "721545781234",
      "vacation_rental": {
            "unit_configurations": {
                  "1": [
                        {
                              "quantity": 1,
                              "description": "King bed(s) - ",
                              "type": "KING_BED"
                        }
                  ],
                  "2": [
                        {
                              "quantity": 2,
                              "description": "Queen bed(s) - ",
                              "type": "QUEEN_BED"
                        },
                        {
                              "quantity": 1,
                              "description": "Sleep sofa/futon(s) - ",
                              "type": "SLEEP_SOFA_FUTON"
                        }
                  ]
            }
      }
}

新架構

{
      "property_id": "721545781234",
      "vacation_rental": {
            "unit_configurations": {
                  "6516076251239_Bedroom1": [
                        {
                              "quantity": 1,
                              "description": "King Bed(s) - ",
                              "type": "KingBed"
                        }
                  ],
                  "6516076251239_Bedroom2": [
                        {
                              "quantity": 2,
                              "description": "Queen Bed(s) - ",
                              "type": "QueenBed"
                        },
                        {
                              "quantity": 1,
                              "description": "Futon(s) - ",
                              "type": "Futon"
                        }
                  ]
            }
      }
}

若您對這些變更或其對 Rapid 實作的影響有任何疑問,請透過聯絡支援團隊

這個頁面有幫助嗎?
我們能如何改善內容?
感謝您協助我們進行改善!