This method returns a list of reservations not marked as synced.

After the user calls this method and takes appropriate action then they must use the Sync Reservation API method to mark each reservation as synced.

The body of each reservation can be retrieved using the Reservation API method.

The reservation list is unique per Hotelier API Account. This means that each API account, even for the same property, have independent sync state.

URL Endpoint

/reservation/new

Reservation PUSH / PING

WebHotelier supports real-time reservation notifications.

If possible, use PING instead of calling this method on schedule or just use PUSH instead.

Warning

This method is only accessible using a Hotelier API account.

Warning

You MUST not call this method more often than every 5 minutes.

Warning

This method MUST not be called simultaneusly by more that one thread or process for the same property, to avoid unexpected results. WebHotelier does not enforce this requirement.

Multiple threads reading the same list of pending reservations may result in duplicate reservations in your system.

Warning

WebHotelier confirmation numbers are globally unique.

Your system should never accept a "new" reservation with a previously imported confirmation number (id).

Caution

Repeated failure of marking reservations as synced may result in a ban of your API account or your IP address.

Example JSON Response

{
	"method": "https://rest.reserve-online.net/reservation/new"
	"http_method": "GET",
	"http_code": 200,
	"error_code": "OK",
	"error_msg": "",
	"data":{
		"records": INTEGER, // Count of records in the reservations array
		"reservations":[
			{
				"id":INTEGER, // Reservation id
				"timestamp":ISO 8601, // When the reservation was added to the sync-queue (ISO 8601 UTC format)
				"syncType":STRING // Why the reservation was added to the sync-queue. Enumerated value: NEW, MOD, CL
			}
		]
	}
}