Rateplan data model

Updated:

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNounique identifier for the rate plan
created_atstring (date-time)Nowhen the rate plan was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atstring (date-time)Nowhen the rate plan was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
listing_idstringNopointer to the Property Listing this rate plan belongs to
unittype_idstringNopointer to the Property Unittype (room type) this rate plan sells
parent_idstringNopointer to the Property Rateplan this rate plan's price is derived from
namestringNothe rate plan name, eg. Non-refundable
codestringNothe rate plan code used by channels and booking engines
descriptionstringNofree-text description of the rate plan
is_activebooleanNowhether the rate plan can be booked
currencystringNoISO 4217 currency code
start_price_amountnumberNothe lowest nightly price
meal_planenumNothe meals included in the rate Values: ROOM_ONLY, BREAKFAST, HALF_BOARD, FULL_BOARD, ALL_INCLUSIVE, OTHER
cancellation_policystringNothe cancellation policy
min_nightsnumberNominimum length of stay, in nights
max_nightsnumberNomaximum length of stay, in nights
metadataPropertyMetadata[]Nocustom field values
metadata[].idstringNothe custom field identifier
metadata[].slugstringNothe custom field key
metadata[].valueobjectNothe custom field value
metadata[].namespacestringNothe scope or origin of the custom field
metadata[].formatenumNothe data type of the value Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL
metadata[].extra_dataobjectNoadditional 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

Zod
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]
Are we missing anything? Let us know
Was this page helpful?