This API method can be used to modify the Pricing Scheme Plan.

Table of Contents
  1. URL Endpoint
  2. Request Body
  3. Examples
  4. Scheme Codes

URL Endpoint

/update/schemes/plan

Request Body

Provide an update object with the following structure:

[
	{"from":ISO 8601,"to":ISO 8601,"scheme":"SCHEMECODE"}, // Date period update
	{"date":ISO 8601,"scheme":"SCHEMECODE"} // Single-day updates
]

Warning

This method is only accessible using a Hotelier API account.

This method is only accessible using a POST request.

Request body must be in valid JSON format.

Updates are made only if the entire request body is successfully parsed and validated.

Example Update Object

[
	{"from":"2013-05-10","to":"2013-05-20","scheme":"BAR1"},
	{"date":"2013-05-22","scheme":"BAR2"},
	{"date":"2013-05-23","scheme":"BAR3"},
	{"from":"2013-05-24","to":"2013-05-28","scheme":"BAR1"}
]

Example Request

curl -k -s -S http://rest.reserve-online.net/update/schemes/plan \
-H 'Accept:application/json' \
-u username:password \
-d '[{"date":"2013-05-06","scheme":"BAR1"}]'

Scheme Codes

We provide a method to retrieve available scheme codes set up by the property. Only scheme codes returned by this method are accepted in /update/schemes/plan.

To retrieve the list of scheme codes issue a GET request to the following endpoint:

/schemes/list