Get a booking by ID
crm:booking-services.readhttps://api.holded.com/api/v2/bookings/{bookingId}Returns a single booking identified by its unique ID.
Parameters
Path parameters
stringrequiredBooking ID (24-char hex ObjectId)
Request
import requests
url = "https://api.holded.com/api/v2/bookings/{bookingId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{
"id": "507f1f77bcf86cd799439011",
"start_time": "2024-01-15T10:30:00+00:00",
"end_time": "2024-01-15T11:30:00+00:00",
"duration": 3600,
"created_at": "2024-01-15T10:30:00+00:00",
"updated_at": "2024-01-15T10:30:00Z",
"status": "confirmed",
"service": {
"id": "507f1f77bcf86cd799439011",
"name": "string",
"description": "string",
"duration": 3600,
"subtotal": {
"amount": "50.00",
"currency": "EUR"
},
"total": {
"amount": "60.50",
"currency": "EUR"
}
},
"space": {
"id": "507f1f77bcf86cd799439011",
"name": "string"
},
"outcome": {
"document_id": "string",
"type": "string",
"exported_at": "2024-01-15T10:30:00Z"
},
"custom_fields": [
{
"key": "string",
"label": "string",
"type": "string",
"value": "string"
}
]
}Success responses
200Booking foundapplication/jsonUnique identifier of the booking
Start time in ISO 8601 format
End time in ISO 8601 format
Duration in seconds
Creation timestamp in ISO 8601 format
Last update timestamp in ISO 8601 format
Booking status
confirmedcancelledService associated with this booking
Unique identifier of the service
Name of the service
Description of the service
Duration in seconds
Price before taxes
Price including taxes
Space where the booking takes place
Unique identifier of the space
Name of the space
Exported document linked to this booking
Identifier of the exported document
Document type
Export timestamp in ISO 8601 format
Custom field values associated with the booking
Custom field key
Custom field label
Custom field type
Custom field value
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Booking not foundapplication/json429Rate limit exceededapplication/json