Dates

In this section we will see how to push and pull data about seasons and periods of your properties.

Differences between seasons and periods

To better understand how to deal with the dates in the BookingBnb system, please, have a look at this response example from the function GetSeasons:


<seasons>
	<season>
		<id>1</id>
		<label>Low Season</label>
		<periods>
			<period>
				<id>1</id>
				<start>2019-02-01</start>
				<end>2019-02-28</end>
				<minimumStay>1</minimumStay>
			</period>
			<period>
				<id>3</id>
				<start>2019-11-01</start>
				<end>2019-12-20</end>
				<minimumStay>1</minimumStay>
			</period>
		</periods>
	</season>
	<season>
		<id>2</id>
		<label>High Season</label>
		<periods>
			<period>
				<id>2</id>
				<start>2019-06-01</start>
				<end>2019-08-31</end>
				<minimumStay>3</minimumStay>
			</period>
		</periods>
	</season>
<seasons>

As you can see, periods are organized in seasons, so seasons can have more periods.
Rates refer to seasons, not periods, so all the periods belonging to a season have the same rates.