Skip to main content
Service BookingsVersion: v3

Create Service Booking

POST/calendars/services/bookings

Create a new service booking

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:calendars/events.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Query Parameters

overrideAvailabilityboolean

If true the time slot validation would be avoided for any booking creation/update (even the skipSchedulingNotice)

Default:false
Example:false
skipSchedulingNoticeboolean

If set to true, the minimum scheduling notice and date range would be ignored

Default:false
Example:false

Body

locationIdstringrequired

Location ID

Example:0007BWpSzSwfiuSl0tR2
contactIdstringrequired

Contact ID

Example:9NkT25Vor1v4aQatFsv2
startTimestringrequired

Start Time

Example:2021-06-23T03:30:00+05:30
endTimestringrequired

End Time

Example:2023-09-25T16:30:00+05:30
timezonestringrequired

Timezone

Example:America/New_York
servicesobject[]required

Services

Example
[
  {
    "id": "a3b4c5d6e7f8901234567890",
    "staffId": "8MkU36Wps2w5bRbuGtw3"
  }
]
serviceLocationIdstring

Service Location ID (If not provided, then the default service location will be used)

Example:65e5f6dfacf123513228d384
meetingLocationstring

Meeting Location (If service location is an ask the booker, then the meeting location is required)

Example:123 Main St, Anytown, USA
titlestring

Service Booking Title

Example:Service Appointment
statusstring

Status. (If not provided, the status configured in Service Global Settings will be used.)

Available optionsconfirmednew
Example:confirmed

Response

Booking created successfully

bookingIdstringrequired

Booking ID

Example:7NkT25Vor1v4aQatFsv2
locationIdstringrequired

Location ID

Example:0007BWpSzSwfiuSl0tR2
contactIdstringrequired

Contact ID

Example:9NkT25Vor1v4aQatFsv2
serviceLocationIdstringrequired

Service Location ID

Example:65e5f6dfacf123513228d384
titlestringrequired

Service Booking Title

Example:John Doe - Hair Styling
startTimestringrequired

Start Time

Example:2023-09-25T16:00:00+05:30
endTimestringrequired

End Time

Example:2023-09-25T16:30:00+05:30
servicesobject[]required

Services

timezonestringrequired

Timezone

Example:America/New_York
statusstringrequired

Status

Example:confirmed
deletedbooleanrequired

Tells if the booking is deleted

Example:false
dateAddedstringrequired

Date Added

Example:2023-09-25T16:00:00+05:30
dateUpdatedstringrequired

Date Updated

Example:2023-09-25T16:00:00+05:30
createdByobjectrequired

Booking booked by metadata

meetingLocationstring

Meeting Location (If service location is an ask the booker, then the meeting location is used for the booking)

Example:123 Main St, Anytown, USA
messagesarray[]

Optional informative or warning messages (e.g. meeting location ignored for non-ask-booker locations)

Example:["Meeting location is not supported for the selected service location and has been ignored."]