---
title: "Rateplan data model"
url: "https://docs.unified.to/property/rateplan/model"
description: "The Rateplan data model object in Unified's Rateplan API: 17 fields, including created_at, updated_at and listing_id, with types and enum values."
date: "2026-12-02T18:12:43.321Z"
updated: "2026-12-02T18:12:43.321Z"
---
# Rateplan data model

Updated: December 2, 2026

 View field support, webhooks, and list parameters for each integration on the [Supported Integrations](https://docs.unified.to/property/integrations.md) page. 

| Field                    | Type                 | Required | Description                                                                                                                                                  |
| ------------------------ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| id                       | string               | No       | unique identifier for the rate plan                                                                                                                          |
| created\_at              | string (date-time)   | No       | when the rate plan was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                      |
| updated\_at              | string (date-time)   | No       | when the rate plan was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)                                                                                 |
| listing\_id              | string               | No       | pointer to the Property Listing this rate plan belongs to                                                                                                    |
| unittype\_id             | string               | No       | pointer to the Property Unittype (room type) this rate plan sells                                                                                            |
| parent\_id               | string               | No       | pointer to the Property Rateplan this rate plan's price is derived from                                                                                      |
| name                     | string               | No       | the rate plan name, eg. Non-refundable                                                                                                                       |
| code                     | string               | No       | the rate plan code used by channels and booking engines                                                                                                      |
| description              | string               | No       | free-text description of the rate plan                                                                                                                       |
| is\_active               | boolean              | No       | whether the rate plan can be booked                                                                                                                          |
| currency                 | string               | No       | ISO 4217 currency code                                                                                                                                       |
| start\_price\_amount     | number               | No       | the lowest nightly price                                                                                                                                     |
| meal\_plan               | enum                 | No       | the meals included in the rate Values: ROOM\_ONLY, BREAKFAST, HALF\_BOARD, FULL\_BOARD, ALL\_INCLUSIVE, OTHER                                                |
| cancellation\_policy     | string               | No       | the cancellation policy                                                                                                                                      |
| min\_nights              | number               | No       | minimum length of stay, in nights                                                                                                                            |
| max\_nights              | number               | No       | maximum length of stay, in nights                                                                                                                            |
| metadata                 | PropertyMetadata\[\] | No       | custom field values                                                                                                                                          |
| metadata\[\].id          | string               | No       | the custom field identifier                                                                                                                                  |
| metadata\[\].slug        | string               | No       | the custom field key                                                                                                                                         |
| metadata\[\].value       | object               | No       | the custom field value                                                                                                                                       |
| metadata\[\].namespace   | string               | No       | the scope or origin of the custom field                                                                                                                      |
| metadata\[\].format      | enum                 | No       | the data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE\_SELECT, MULTIPLE\_SELECT, MEASUREMENT, PRICE, YES\_NO, CURRENCY, URL |
| metadata\[\].extra\_data | object               | No       | additional data about the custom field                                                                                                                       |

## TypeScript

```typescript
export type PropertyRateplan = {
	id?: string; // unique identifier for the rate plan
	created_at?: string-time; // when the rate plan was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	updated_at?: string-time; // when the rate plan was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
	listing_id?: string; // pointer to the Property Listing this rate plan belongs to
	unittype_id?: string; // pointer to the Property Unittype (room type) this rate plan sells
	parent_id?: string; // pointer to the Property Rateplan this rate plan's price is derived from
	name?: string; // the rate plan name, eg. Non-refundable
	code?: string; // the rate plan code used by channels and booking engines
	description?: string; // free-text description of the rate plan
	is_active?: boolean; // whether the rate plan can be booked
	currency?: string; // ISO 4217 currency code
	start_price_amount?: number; // the lowest nightly price
	meal_plan?: 'ROOM_ONLY' | 'BREAKFAST' | 'HALF_BOARD' | 'FULL_BOARD' | 'ALL_INCLUSIVE' | 'OTHER'; // the meals included in the rate
	cancellation_policy?: string; // the cancellation policy
	min_nights?: number; // minimum length of stay, in nights
	max_nights?: number; // maximum length of stay, in nights
	metadata?: []; // custom field values
	raw?: any; // raw data from the integration
} 
```

## Zod

```typescript
import { z } from 'zod';

export const ZodPropertyRateplan = z.object({
	id: z.string().optional().describe("unique identifier for the rate plan"),
	created_at: z.string-time().optional().describe("when the rate plan was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	updated_at: z.string-time().optional().describe("when the rate plan was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"),
	listing_id: z.string().optional().describe("pointer to the Property Listing this rate plan belongs to"),
	unittype_id: z.string().optional().describe("pointer to the Property Unittype (room type) this rate plan sells"),
	parent_id: z.string().optional().describe("pointer to the Property Rateplan this rate plan's price is derived from"),
	name: z.string().optional().describe("the rate plan name, eg. Non-refundable"),
	code: z.string().optional().describe("the rate plan code used by channels and booking engines"),
	description: z.string().optional().describe("free-text description of the rate plan"),
	is_active: z.boolean().optional().describe("whether the rate plan can be booked"),
	currency: z.string().optional().describe("ISO 4217 currency code"),
	start_price_amount: z.number().optional().describe("the lowest nightly price"),
	meal_plan: z.enum("ROOM_ONLY", "BREAKFAST", "HALF_BOARD", "FULL_BOARD", "ALL_INCLUSIVE", "OTHER").optional().describe("the meals included in the rate"),
	cancellation_policy: z.string().optional().describe("the cancellation policy"),
	min_nights: z.number().optional().describe("minimum length of stay, in nights"),
	max_nights: z.number().optional().describe("maximum length of stay, in nights"),
	metadata: z.array().optional().describe("custom field values"),

});
```

## Python

```python
import dataclasses

@dataclasses.dataclass
class PropertyRateplanMeal_plan(str, Enum):
	ROOM_ONLY = 'ROOM_ONLY'
	BREAKFAST = 'BREAKFAST'
	HALF_BOARD = 'HALF_BOARD'
	FULL_BOARD = 'FULL_BOARD'
	ALL_INCLUSIVE = 'ALL_INCLUSIVE'
	OTHER = 'OTHER'

@dataclasses.dataclass
class PropertyRateplan:
	"""unique identifier for the rate plan"""
	id: Optional[str]
	"""when the rate plan was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	created_at: Optional[str]
	"""when the rate plan was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)"""
	updated_at: Optional[str]
	"""pointer to the Property Listing this rate plan belongs to"""
	listing_id: Optional[str]
	"""pointer to the Property Unittype (room type) this rate plan sells"""
	unittype_id: Optional[str]
	"""pointer to the Property Rateplan this rate plan's price is derived from"""
	parent_id: Optional[str]
	"""the rate plan name, eg. Non-refundable"""
	name: Optional[str]
	"""the rate plan code used by channels and booking engines"""
	code: Optional[str]
	"""free-text description of the rate plan"""
	description: Optional[str]
	"""whether the rate plan can be booked"""
	is_active: Optional[bool]
	"""ISO 4217 currency code"""
	currency: Optional[str]
	"""the lowest nightly price"""
	start_price_amount: Optional[int]
	"""the meals included in the rate"""
	meal_plan: Optional[PropertyRateplanMeal_plan]
	"""the cancellation policy"""
	cancellation_policy: Optional[str]
	"""minimum length of stay, in nights"""
	min_nights: Optional[int]
	"""maximum length of stay, in nights"""
	max_nights: Optional[int]
	"""custom field values"""
	metadata: Optional[PropertyPropertyRateplanMetadata]

```
