This is an auto-generated translation

度假租赁的单元配置

2026 年 1 月:度假租赁单元配置方案更新


对于度假租赁,Content API 返回一个名为 unit_configurations的对象,其中包含有关每个房产的房间和床位选项的信息。使用此对象可以让您直观地显示房间和床的选项。

bed type configurations

我们将在未来几个月内对 API 进行一些更新,因此,API 当前使用的某些属性将被弃用。

Warning

重要提示

此更新适用于所有使用 /properties/content的度假租赁,包括通过核心 API 和 Vrbo 供应进行的租赁。**如果您使用此度假租赁单元配置来展示度假租赁,则需要进行更新。**如果您不使用此单位配置,则无需采取任何行动。

请注意:此更改是数据呈现方式的修改。它并不构成破坏性的架构变化。

单元配置更新

在新版本的架构中,unit_configurations 对象现在包含更详细的描述:

  • 在 multi-unit 场景中,您将收到更精确的单位信息。例如,新方法不再使用当前对象键 1Other1,而是将房间 ID 添加到每个单元的键前面,如下所示:231607625123_Bedroom1

  • 床型值正在从全部大写变为更紧凑的结构。例如 TWIN_SINGLE_BED变为 TwinBed

  • 可用床位的描述正在简化。例如,Twin/Single bed(s) - 现在将只读为 Twin 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"
                        }
                  ]
            }
      }
}

如果您对这些变化有任何疑问,或者它们将如何影响您的快速实施,请联系支持

您觉得这个页面有用吗?
我们该如何改进这些内容?
感谢您帮助我们改进!