Call to perform an administrative action (such as confirmation or cancellation) on a reservation
reservation_id int optional
ID of the reservation. Required unless reservation_ids
reservation_ids string optional
You can optionally pass multiple comma-separated reservation IDs (max 50) in this parameter. In such case the same action will be applied to all the reservation IDs passed using the same parameters. If this parameter is passed, you may NOT pass any value in the parameter reservation_id
. Note that the JSON data returned by an API call with this parameter will be different. The 'data' key will be an array with reservation IDs as keys and the values corresponding to the standard output of this function (see the Output
section below) for given reservation ID.
action string required
One of: Reserve (period is marked as occupied), Verify (email address verified), Confirm, Preapprove (automatically confirm this and all future reservations of this user), Fraud (cancel this reservation and prevent this customer from making future reservations), Cancel (reservation cancelled by the administrator), User_cancel (reservation cancelled by the customer), Checkin (customer is checking in), Checkout (customer is checking out), Unconfirm (remove the confirmed status), Uncancel (remove the canceled status), Make_not_completed (remove both the reserved and confirmed statuses)
custom_data string optional
If action is verify, this is the verification code (required). In other cases this is ignored
comment string optional
Optional comment for the action
is_quiet bool optional
Set this to true if you don't want any emails to be sent out as a result of this action. By default the emails will be sent as configured by you in notification settings.
language string optional
by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned
api_key string required
your API key - Click here to get your key
. If your API key uses a hash key, you must also include the parameters hash_key and hash_timestamp
New (updated) status of the reservation
Text to be displayed to the user with the status of their reservation
Click here to test this function in the API playground.