Method to retrieve cumulative statistics for requests, bookings & allotment per day

Table of Contents
  1. URL Endpoint
  2. Method Parameters
  3. Example JSON Response

URL Endpoint

GET /statistics/performance_per_day/{propertycode}

Terms

This method should be called only for user-initiated actions.

Scheduled ( automated ) calls on this method are only allowed if they happen a few times per day.

This method should NOT be used to feed 3rd party systems without our consent.

API usage is closely monitored and improper usage will result in a ban without further warning.

Warning

This method is only accessible using a Hotelier or Operator API account.


Method parameters

NAME TYPE RANGE / SET REQUIRED DEFAULT EXAMPLE NOTES
from date (ISO 8601) * YES &from=2017-01-15  
to date (ISO 8601) from + 12 months YES &to=2017-02-15  

Example JSON Response

{
	"method": "http://rest.reserve-online.net/statistics/performance_per_day/DEMO"
	"http_method": "GET",
	"http_code": 200,
	"error_code": "OK",
	"error_msg": "",
	"params": [
		{
			type: "URL"
			name: "from"
			value: "2017-01-15"
		},
		{
			type: "URL"
			name: "to"
			value: "2017-02-15"
		}
	],
	"data":{
		"stats":[
			{
				"date":ISO 8601, // Date
				"requests":INTEGER, // Total count of requests that stay period incuded this date
				"allotment":INTEGER, // Total count of currently available rooms
				"bookings":INTEGER // Total count of bookings that their stay period includes this date
			}
		]
	}
}