Skip to main content
GET

Get a booking by ID

Scope:crm:booking-services.read
https://api.holded.com/api/v2/bookings/{bookingId}

Returns a single booking identified by its unique ID.

Parameters

Path parameters

bookingIdstringrequired

Booking ID (24-char hex ObjectId)

Request

python
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

json
{
  "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/json
object
idstring

Unique identifier of the booking

start_timestring<date-time>

Start time in ISO 8601 format

end_timestring<date-time>

End time in ISO 8601 format

durationinteger

Duration in seconds

created_atstring<date-time>

Creation timestamp in ISO 8601 format

updated_atstring<date-time> | null

Last update timestamp in ISO 8601 format

statusstring

Booking status

Enum:confirmedcancelled
serviceobject

Service associated with this booking

idstring

Unique identifier of the service

namestring

Name of the service

descriptionstring | null

Description of the service

durationinteger

Duration in seconds

subtotalobject | null

Price before taxes

totalobject | null

Price including taxes

spaceobject

Space where the booking takes place

idstring

Unique identifier of the space

namestring

Name of the space

outcomeobject | null

Exported document linked to this booking

document_idstring

Identifier of the exported document

typestring | null

Document type

exported_atstring<date-time>

Export timestamp in ISO 8601 format

custom_fields[]object[]

Custom field values associated with the booking

keystring

Custom field key

labelstring

Custom field label

typestring

Custom field type

valuestring | null

Custom field value

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Booking not foundapplication/json
429Rate limit exceededapplication/json