Documentation

GET booking/{id}

Used for

Retrieve information about a specific reservation.

Authentication

User must be logged in at administrator level.

Parameters

Parameter Description Required Example
id Reservation ID Yes 33973
enriched Extensive information, including customer details No 1
lang The language in which the results needs to be displayed. "english" and "en" are both allowed. No en
expand Use the value "status" for status expansion. This shows the statusses the booking can be set to. No status

Example

Request reservation 33973.

GET api/rest/booking/33973
Response:
{
"booking_id": 33973, 
"object": "LUNCH_COMBI", 
"object_desc": "Lunch*", 
"object_long_desc": "Lunch", 
"status": "Reserved", 
"textcolor": "#000000", 
"bgcolor": "#00ffff", 
"fromdate": "Thu Jan 16, 2025", 
"tilldate": "Thu Jan 16, 2025", 
"fromtime": "13:00", 
"tilltime": "14:00", 
"number": "12", 
"remarks": "", 
"created": "Sun Dec 01, 2024", 
"updated": "Sun Dec 01, 2024", 
"from_iso": "2025-01-16T13:00:00+01:00", 
"till_iso": "2025-01-16T14:00:00+01:00", 
"fromdate_raw": "2025-01-16", 
"tilldate_raw": "2025-01-16", 
"fromtime_raw": "46800", 
"tilltime_raw": "50400", 
"image": "front?mod=downloadfile&task=showimage&document_id=121472262", 
"count_gifts": 0
}

Example

Request reservation 34294 with enriched.

GET api/rest/booking/34294?enriched=1
Response:
{
"booking_id": 34294,
"object": "SEGWAY",
"object_desc": "Segway Tour",
"object_long_desc": "Tours in the category 'Segway Tour'.",
"status": "Closed",
"textcolor": "#000000",
"bgcolor": "#d7d8da",
"fromdate": "Sun Oct 05, 2024",
"tilldate": "Sun Oct 05, 2024",
"fromtime": "1:00 PM",
"tilltime": "3:00 PM",
"number": "1",
"remarks": "",
"created": "Fri Oct 03, 2024", 
"updated": "Sun Oct 05, 2024", 
"from_iso": "2024-10-05T13:00:00+02:00", 
"till_iso": "2024-10-05T15:00:00+02:00", 
"fromdate_raw": "2024-10-05", 
"tilldate_raw": "2024-10-05", 
"fromtime_raw": "46800", 
"tilltime_raw": "54000", 
"image": "front?mod=downloadfile&task=showimage&document_id=121470355", 
"count_gifts": 0, 
"status_code": "90", 
"location_id": 35, 
"location": "Amsterdam", 
"location_desc": null, 
"event_id": "2024-10-05_1", 
"external_id": null, 
"price": "39.95", 
"currency": "EUR", 
"pay_price": "0", 
"pay_currency": "", 
"open_price": "39.95", 
"open_currency": "EUR", 
"customer_id": 32504, 
"customer_email": "teqawebdiensten@gmail.com", 
"customer_firstname": "Theo", 
"customer_lastname": "Ester", 
"customer_emaillist": "0", 
"customer_status_code": "0", 
"customer_status": "active", 
"customer_shortname": "Theo Ester", 
"customer_fullname": "Theo Ester", 
"customer_informalname": "Theo Ester"
}
The following right may be necessary in order to use this functionality.