OnSeasonChannel API

Reservation object

The reservation returned by Create a reservation and Get a reservation.

Create a reservation shows a full example.

Fields

FieldTypeDescription
idUUIDOnSeason reservation ID. Use it to read and cancel the reservation.
listingIDUUIDOnSeason listing ID.
unitIDUUID or nullUnit booked, when the listing has units.
integrationAccountIDUUIDThe property's connected PMS account.
providerReservationIDstringBooking reference in the PMS. Store it for support and reconciliation.
providerIDstringListing ID in the PMS.
parentPropertyIDstring or nullParent property in the PMS, when there is one.
checkInDate, checkOutDatestringStay dates.
guestsnumberTotal guests.
guestobjectLead guest. email and phone can each be a string or an array of strings.
adults, children, infants, petsnumberParty breakdown, when available.
statusenumCurrent status. See below.
sourcestringThe source sent at booking.
notesstringNotes for the host.
currencystringCurrency of the amounts.
originalCurrencystringCurrency the reservation was first stored in.
totalPricenumberBooked total in currency.
componentsobjectbasePrice, fees, taxes, discounts, and the optional commission, as price components.
salesChannelstringThe sales channel the stay was sold on: your channel name in lowercase.
cancellationPolicyobjectThe cancellation terms the stay was booked under. They don't change after booking.
cancelledByenum or nullCHANNEL when you cancelled it through the API. null when it is not cancelled or was cancelled outside the API.
cancellationChargeobject or nullThe charge under the booked terms when you cancelled it through the API. See Cancel a reservation.
createdAt, updatedAtdate-timeWhen OnSeason created and last changed the reservation.
confirmedAtdate-time or nullWhen the booking was confirmed.
cancelledAtdate-time or nullWhen the booking was cancelled.

Statuses

A reservation you create starts as CONFIRMED. These statuses come from the API itself:

StatusMeaning
CONFIRMEDBooked. The only status you can cancel from.
CANCELLATION_PENDINGYou cancelled it, and the booking is being cancelled by hand in a PMS that has no cancellation API. Treat it as cancelled. It moves to CANCELLED once the PMS confirms.
CANCELLEDCancelled, through the API or in the PMS.

OnSeason keeps reservations in sync with the PMS, so a reservation can also move to a status the PMS reports: STAYING, POST_STAY, NO_SHOW, MODIFIED, MOVED, PENDING, INQUIRY, EXPIRED, BLOCKED, or UNKNOWN. Route any status you don't handle to your support team.

On this page