Skip to main content
POST

Create a booking

Scope:crm:booking-services.write
https://api.holded.com/api/v2/bookings

**Workflow**: Always call `GET /api/v2/booking-locations/{locationId}/slots` first to retrieve available time slots. Use the exact `from` value of a slot as `date_time`. Collect any fields from the `form` array before calling this endpoint. Creates a new booking for a specific service at a location. Requires a valid location, service, date/time, timezone and language.

Request body

object
location_idstringrequired

Location identifier

service_idstringrequired

Service identifier

date_timestring<date-time>required

Booking start time as ISO 8601 datetime. Use the exact `from` value returned by the slots endpoint (e.g. 2024-01-15T10:30:00+01:00). The timezone offset must match the slot timezone — do not convert to UTC.

languagestringrequired

ISO 639-1 language code

custom_fields[]object[]optional

Custom field values

keystring

Custom field key

valuestring | null

Custom field value

Request

python
import requests

url = "https://api.holded.com/api/v2/bookings"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "location_id": "507f1f77bcf86cd799439011",
    "service_id": "507f1f77bcf86cd799439012",
    "date_time": "2024-01-15T10:30:00+01:00",
    "language": "es",
    "custom_fields": [
        {
            "key": "string",
            "value": "string"
        }
    ]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201Booking createdapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Location not foundapplication/json
409Conflictapplication/json
object
typestring
titlestring
statusinteger
detailstring
422Validation errorapplication/json
429Rate limit exceededapplication/json