Skip to content

Square: Bookings schemas

34 Square schemas with complete fields and constraints.

← Bookings operations · All schemas

Bulk Retrieve Bookings — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest payload for bulk retrieval of bookings.
booking_idsarrayRequired within parentA non-empty list of [Booking](entity:Booking) IDs specifying bookings to retrieve.
booking_ids[]stringEach item

Bulk Retrieve Bookings — response body

FieldTypePresenceDescription and constraints
$objectRootResponse payload for bulk retrieval of bookings.
bookingsobjectOptionalRequested bookings returned as a map containing `booking_id` as the key and `RetrieveBookingResponse` as the value.
Additional keys: see wildcard field
bookings.*ModelAdditional keysExpand Retrieve Booking — response body
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item, Retrieve Booking — response body

Bulk Retrieve Team Member Booking Profiles — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint.
team_member_idsarrayRequired within parentA non-empty list of IDs of team members whose booking profiles you want to retrieve.
team_member_ids[]stringEach item

Bulk Retrieve Team Member Booking Profiles — response body

FieldTypePresenceDescription and constraints
$objectRootResponse payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint.
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
team_member_booking_profilesobjectOptionalThe returned team members' booking profiles, as a map with `team_member_id` as the key and [TeamMemberBookingProfile](entity:TeamMemberBookingProfile) the value.
Additional keys: see wildcard field
team_member_booking_profiles.*ModelAdditional keysExpand Retrieve Team Member Booking Profile — response body

Referenced models: Get Shift — response body — errors item, Retrieve Team Member Booking Profile — response body

Cancel Booking — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
booking_versionJSONOptional
booking_version (anyOf 1)integerAlternativeThe revision number for the booking used for optimistic concurrency.
booking_version (anyOf 2)nullAlternative
idempotency_keyJSONOptional
idempotency_key (anyOf 1)stringAlternativeA unique key to make this request an idempotent operation.
Maximum length: 255
idempotency_key (anyOf 2)nullAlternative

Cancel Booking — response body

FieldTypePresenceDescription and constraints
$objectRoot
bookingModelOptionalExpand Cancel Booking — response body — booking
The booking that was cancelled.
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item

Cancel Booking — response body — booking

FieldTypePresenceDescription and constraints
$objectRootRepresents a booking as a time-bound service contract for a seller's staff member to provide a specified service
at a given location to a requesting customer in one or more appointment segments.
addressJSONOptional
address (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment billing address
Stores a customer address if the location type is `CUSTOMER_LOCATION`.
address (anyOf 2)nullAlternative
all_daybooleanOptionalWhether the booking is of a full business day.
Read only: true
appointment_segmentsJSONOptional
appointment_segments (anyOf 1)arrayAlternativeA list of appointment segments for this booking.
appointment_segments (anyOf 1)[]ModelEach itemExpand Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item
appointment_segments (anyOf 2)nullAlternative
created_atstringOptionalThe RFC 3339 timestamp specifying the creation time of this booking.
Read only: true
creator_detailsModelOptionalExpand Cancel Booking — response body — booking creator details
Information about the booking creator.
Read only: true
customer_idJSONOptional
customer_id (anyOf 1)stringAlternativeThe ID of the [Customer](entity:Customer) object representing the customer receiving the booked service.
Maximum length: 192
customer_id (anyOf 2)nullAlternative
customer_noteJSONOptional
customer_note (anyOf 1)stringAlternativeThe free-text field for the customer to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a relevant [CatalogObject](entity:CatalogObject) instance.
Maximum length: 4096
customer_note (anyOf 2)nullAlternative
idstringOptionalA unique ID of this object representing a booking.
Maximum length: 36
Read only: true
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the [Location](entity:Location) object representing the location where the booked service is provided. Once set when the booking is created, its value cannot be changed.
Maximum length: 32
location_id (anyOf 2)nullAlternative
location_typeJSONOptional
location_type (anyOf 1)stringAlternativeSupported types of location where service is provided.
The type of location where the booking is held.
See [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values
Known values: BUSINESS_LOCATION, CUSTOMER_LOCATION, PHONE
location_type (anyOf 2)nullAlternative
seller_noteJSONOptional
seller_note (anyOf 1)stringAlternativeThe free-text field for the seller to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a specific [CatalogObject](entity:CatalogObject) instance.
This field should not be visible to customers.
Maximum length: 4096
seller_note (anyOf 2)nullAlternative
sourcestringOptionalSupported sources a booking was created from.
The source of the booking.
Access to this field requires seller-level permissions.
See [BookingBookingSource](#type-bookingbookingsource) for possible values
Known values: FIRST_PARTY_MERCHANT, FIRST_PARTY_BUYER, THIRD_PARTY_BUYER, API
Read only: true
start_atJSONOptional
start_at (anyOf 1)stringAlternativeThe RFC 3339 timestamp specifying the starting time of this booking.
start_at (anyOf 2)nullAlternative
statusstringOptionalSupported booking statuses.
The status of the booking, describing where the booking stands with respect to the booking state machine.
See [BookingStatus](#type-bookingstatus) for possible values
Known values: PENDING, CANCELLED_BY_CUSTOMER, CANCELLED_BY_SELLER, DECLINED, ACCEPTED, NO_SHOW
Read only: true
transition_time_minutesJSONOptional
transition_time_minutes (anyOf 1)integerAlternativeAdditional time at the end of a booking.
Applications should not make this field visible to customers of a seller.
Read only: true
transition_time_minutes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updated_atstringOptionalThe RFC 3339 timestamp specifying the most recent update time of this booking.
Read only: true
versionJSONOptional
version (anyOf 1)integerAlternativeThe revision number for the booking used for optimistic concurrency.
version (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Get Payment — response body — payment billing address, Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item, Cancel Booking — response body — booking creator details

Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item

FieldTypePresenceDescription and constraints
$objectRootDefines an appointment segment of a booking.
any_team_memberbooleanOptionalWhether the customer accepts any team member, instead of a specific one, to serve this segment.
Read only: true
duration_minutesJSONOptional
duration_minutes (anyOf 1)JSONAlternative
duration_minutes (anyOf 1) (anyOf 1)integerAlternativeThe time span in minutes of an appointment segment.
Maximum: 1500
duration_minutes (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
duration_minutes (anyOf 2)nullAlternative
intermission_minutesJSONOptional
intermission_minutes (anyOf 1)integerAlternativeTime between the end of this segment and the beginning of the subsequent segment.
Read only: true
intermission_minutes (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
resource_idsarrayOptionalThe IDs of the seller-accessible resources used for this appointment segment.
Read only: true
resource_ids[]stringEach item
service_variation_idJSONOptional
service_variation_id (anyOf 1)stringAlternativeThe ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment.
Maximum length: 36
service_variation_id (anyOf 2)nullAlternative
service_variation_versionJSONOptional
service_variation_version (anyOf 1)JSONAlternative
service_variation_version (anyOf 1) (anyOf 1)integerAlternativeThe current version of the item variation representing the service booked in this segment.
Format: int64
service_variation_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
service_variation_version (anyOf 2)nullAlternative
team_member_idstringRequired within parentThe ID of the [TeamMember](entity:TeamMember) object representing the team member booked in this segment.
Maximum length: 32
Minimum length: 1

Cancel Booking — response body — booking creator details

FieldTypePresenceDescription and constraints
$objectRootInformation about a booking creator.
creator_typestringOptionalSupported types of a booking creator.
The seller-accessible type of the creator of the booking.
See [BookingCreatorDetailsCreatorType](#type-bookingcreatordetailscreatortype) for possible values
Known values: TEAM_MEMBER, CUSTOMER
Read only: true
customer_idstringOptionalThe ID of the customer who created the booking, when the booking creator is of the `CUSTOMER` type.
Access to this field requires seller-level permissions.
Maximum length: 192
Read only: true
team_member_idstringOptionalThe ID of the team member who created the booking, when the booking creator is of the `TEAM_MEMBER` type.
Access to this field requires seller-level permissions.
Maximum length: 32
Read only: true

Create Booking — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
bookingModelRequired within parentExpand Create Booking — request body — body booking
The details of the booking to be created.
idempotency_keystringOptionalA unique key to make this request an idempotent operation.
Maximum length: 255

Referenced models: Create Booking — request body — body booking

Create Booking — request body — body booking

FieldTypePresenceDescription and constraints
$objectRootRepresents a booking as a time-bound service contract for a seller's staff member to provide a specified service
at a given location to a requesting customer in one or more appointment segments.
addressJSONOptional
address (anyOf 1)ModelAlternativeExpand Create Customer — request body — body address
Stores a customer address if the location type is `CUSTOMER_LOCATION`.
address (anyOf 2)nullAlternative
all_daybooleanOptionalWhether the booking is of a full business day.
Read only: true
appointment_segmentsJSONOptional
appointment_segments (anyOf 1)arrayAlternativeA list of appointment segments for this booking.
appointment_segments (anyOf 1)[]ModelEach itemExpand Create Booking — request body — body booking appointment segments A list of appointment segments for this booking item
appointment_segments (anyOf 2)nullAlternative
created_atstringOptionalThe RFC 3339 timestamp specifying the creation time of this booking.
Read only: true
creator_detailsModelOptionalExpand Create Booking — request body — body booking creator details
Information about the booking creator.
Read only: true
customer_idJSONOptional
customer_id (anyOf 1)stringAlternativeThe ID of the [Customer](entity:Customer) object representing the customer receiving the booked service.
Maximum length: 192
customer_id (anyOf 2)nullAlternative
customer_noteJSONOptional
customer_note (anyOf 1)stringAlternativeThe free-text field for the customer to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a relevant [CatalogObject](entity:CatalogObject) instance.
Maximum length: 4096
customer_note (anyOf 2)nullAlternative
idstringOptionalA unique ID of this object representing a booking.
Maximum length: 36
Read only: true
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the [Location](entity:Location) object representing the location where the booked service is provided. Once set when the booking is created, its value cannot be changed.
Maximum length: 32
location_id (anyOf 2)nullAlternative
location_typeJSONOptional
location_type (anyOf 1)stringAlternativeSupported types of location where service is provided.
The type of location where the booking is held.
See [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values
One of: BUSINESS_LOCATION, CUSTOMER_LOCATION, PHONE
location_type (anyOf 2)nullAlternative
seller_noteJSONOptional
seller_note (anyOf 1)stringAlternativeThe free-text field for the seller to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a specific [CatalogObject](entity:CatalogObject) instance.
This field should not be visible to customers.
Maximum length: 4096
seller_note (anyOf 2)nullAlternative
sourcestringOptionalSupported sources a booking was created from.
The source of the booking.
Access to this field requires seller-level permissions.
See [BookingBookingSource](#type-bookingbookingsource) for possible values
One of: FIRST_PARTY_MERCHANT, FIRST_PARTY_BUYER, THIRD_PARTY_BUYER, API
Read only: true
start_atJSONOptional
start_at (anyOf 1)stringAlternativeThe RFC 3339 timestamp specifying the starting time of this booking.
start_at (anyOf 2)nullAlternative
statusstringOptionalSupported booking statuses.
The status of the booking, describing where the booking stands with respect to the booking state machine.
See [BookingStatus](#type-bookingstatus) for possible values
One of: PENDING, CANCELLED_BY_CUSTOMER, CANCELLED_BY_SELLER, DECLINED, ACCEPTED, NO_SHOW
Read only: true
transition_time_minutesintegerOptionalAdditional time at the end of a booking.
Applications should not make this field visible to customers of a seller.
Read only: true
updated_atstringOptionalThe RFC 3339 timestamp specifying the most recent update time of this booking.
Read only: true
versionintegerOptionalThe revision number for the booking used for optimistic concurrency.

Referenced models: Create Customer — request body — body address, Create Booking — request body — body booking appointment segments A list of appointment segments for this booking item, Create Booking — request body — body booking creator details

Create Booking — request body — body booking appointment segments A list of appointment segments for this booking item

FieldTypePresenceDescription and constraints
$objectRootDefines an appointment segment of a booking.
any_team_memberbooleanOptionalWhether the customer accepts any team member, instead of a specific one, to serve this segment.
Read only: true
duration_minutesJSONOptional
duration_minutes (anyOf 1)integerAlternativeThe time span in minutes of an appointment segment.
Maximum: 1500
duration_minutes (anyOf 2)nullAlternative
intermission_minutesintegerOptionalTime between the end of this segment and the beginning of the subsequent segment.
Read only: true
resource_idsarrayOptionalThe IDs of the seller-accessible resources used for this appointment segment.
Read only: true
resource_ids[]stringEach item
service_variation_idJSONOptional
service_variation_id (anyOf 1)stringAlternativeThe ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment.
Maximum length: 36
service_variation_id (anyOf 2)nullAlternative
service_variation_versionJSONOptional
service_variation_version (anyOf 1)JSONAlternative
service_variation_version (anyOf 1) (anyOf 1)integerAlternativeThe current version of the item variation representing the service booked in this segment.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
service_variation_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n)
service_variation_version (anyOf 2)nullAlternative
team_member_idstringRequired within parentThe ID of the [TeamMember](entity:TeamMember) object representing the team member booked in this segment.
Maximum length: 32
Minimum length: 1

Create Booking — request body — body booking creator details

FieldTypePresenceDescription and constraints
$objectRootInformation about a booking creator.
creator_typestringOptionalSupported types of a booking creator.
The seller-accessible type of the creator of the booking.
See [BookingCreatorDetailsCreatorType](#type-bookingcreatordetailscreatortype) for possible values
One of: TEAM_MEMBER, CUSTOMER
Read only: true
customer_idstringOptionalThe ID of the customer who created the booking, when the booking creator is of the `CUSTOMER` type.
Access to this field requires seller-level permissions.
Maximum length: 192
Read only: true
team_member_idstringOptionalThe ID of the team member who created the booking, when the booking creator is of the `TEAM_MEMBER` type.
Access to this field requires seller-level permissions.
Maximum length: 32
Read only: true

Create Booking — response body

FieldTypePresenceDescription and constraints
$objectRoot
bookingModelOptionalExpand Cancel Booking — response body — booking
The booking that was created.
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item

List Bookings — response body

FieldTypePresenceDescription and constraints
$objectRoot
bookingsarrayOptionalThe list of targeted bookings.
bookings[]ModelEach itemExpand Cancel Booking — response body — booking
cursorstringOptionalThe pagination cursor to be used in the subsequent request to get the next page of the results. Stop retrieving the next page of the results when the cursor is not set.
Maximum length: 65536
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item

List Location Booking Profiles — response body

FieldTypePresenceDescription and constraints
$objectRoot
cursorstringOptionalThe pagination cursor to be used in the subsequent request to get the next page of the results. Stop retrieving the next page of the results when the cursor is not set.
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
location_booking_profilesarrayOptionalThe list of a seller's location booking profiles.
location_booking_profiles[]ModelEach itemExpand Retrieve Location Booking Profile — response body — location booking profile

Referenced models: Retrieve Location Booking Profile — response body — location booking profile, Get Shift — response body — errors item

List Team Member Booking Profiles — response body

FieldTypePresenceDescription and constraints
$objectRoot
cursorstringOptionalThe pagination cursor to be used in the subsequent request to get the next page of the results. Stop retrieving the next page of the results when the cursor is not set.
Maximum length: 65536
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
team_member_booking_profilesarrayOptionalThe list of team member booking profiles. The results are returned in the ascending order of the time
when the team member booking profiles were last updated. Multiple booking profiles updated at the same time
are further sorted in the ascending order of their IDs.
team_member_booking_profiles[]ModelEach itemExpand Retrieve Team Member Booking Profile — response body — team member booking profile

Referenced models: Get Shift — response body — errors item, Retrieve Team Member Booking Profile — response body — team member booking profile

Retrieve Booking — response body

FieldTypePresenceDescription and constraints
$objectRoot
bookingModelOptionalExpand Cancel Booking — response body — booking
The booking that was requested.
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item

Retrieve Business Booking Profile — response body

FieldTypePresenceDescription and constraints
$objectRoot
business_booking_profileModelOptionalExpand Retrieve Business Booking Profile — response body — business booking profile
The seller's booking profile.
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Retrieve Business Booking Profile — response body — business booking profile, Get Shift — response body — errors item

Retrieve Business Booking Profile — response body — business booking profile

FieldTypePresenceDescription and constraints
$objectRootA seller's business booking profile, including booking policy, appointment settings, etc.
allow_user_cancelJSONOptional
allow_user_cancel (anyOf 1)booleanAlternativeIndicates whether customers can cancel or reschedule their own bookings (`true`) or not (`false`).
allow_user_cancel (anyOf 2)nullAlternative
booking_enabledJSONOptional
booking_enabled (anyOf 1)booleanAlternativeIndicates whether the seller is open for booking.
booking_enabled (anyOf 2)nullAlternative
booking_policyJSONOptional
booking_policy (anyOf 1)stringAlternativePolicies for accepting bookings.
The policy for the seller to automatically accept booking requests (`ACCEPT_ALL`) or not (`REQUIRES_ACCEPTANCE`).
See [BusinessBookingProfileBookingPolicy](#type-businessbookingprofilebookingpolicy) for possible values
Known values: ACCEPT_ALL, REQUIRES_ACCEPTANCE
booking_policy (anyOf 2)nullAlternative
business_appointment_settingsJSONOptional
business_appointment_settings (anyOf 1)ModelAlternativeExpand Retrieve Business Booking Profile — response body — business booking profile business appointment settings alignment time, any team member booking enabled, cancellation fee money, cancellation policy, cancellation policy text, cancellation window seconds, location types, max appointments per day limit, max appointments per day limit type, max booking lead time seconds, min booking lead time seconds, multiple service booking enabled, skip booking flow staff selection
Settings for appointment-type bookings.
business_appointment_settings (anyOf 2)nullAlternative
created_atstringOptionalThe RFC 3339 timestamp specifying the booking's creation time.
Read only: true
customer_timezone_choiceJSONOptional
customer_timezone_choice (anyOf 1)stringAlternativeChoices of customer-facing time zone used for bookings.
The choice of customer's time zone information of a booking.
The Square online booking site and all notifications to customers uses either the seller location’s time zone
or the time zone the customer chooses at booking.
See [BusinessBookingProfileCustomerTimezoneChoice](#type-businessbookingprofilecustomertimezonechoice) for possible values
Known values: BUSINESS_LOCATION_TIMEZONE, CUSTOMER_CHOICE
customer_timezone_choice (anyOf 2)nullAlternative
seller_idJSONOptional
seller_id (anyOf 1)stringAlternativeThe ID of the seller, obtainable using the Merchants API.
Maximum length: 32
seller_id (anyOf 2)nullAlternative
support_seller_level_writesJSONOptional
support_seller_level_writes (anyOf 1)booleanAlternativeIndicates whether the seller's subscription to Square Appointments supports creating, updating or canceling an appointment through the API (`true`) or not (`false`) using seller permission.
support_seller_level_writes (anyOf 2)nullAlternative

Referenced models: Retrieve Business Booking Profile — response body — business booking profile business appointment settings alignment time, any team member booking enabled, cancellation fee money, cancellation policy, cancellation policy text, cancellation window seconds, location types, max appointments per day limit, max appointments per day limit type, max booking lead time seconds, min booking lead time seconds, multiple service booking enabled, skip booking flow staff selection

Retrieve Business Booking Profile — response body — business booking profile business appointment settings alignment time, any team member booking enabled, cancellation fee money, cancellation policy, cancellation policy text, cancellation window seconds, location types, max appointments per day limit, max appointments per day limit type, max booking lead time seconds, min booking lead time seconds, multiple service booking enabled, skip booking flow staff selection

FieldTypePresenceDescription and constraints
$objectRootThe service appointment settings, including where and how the service is provided.
alignment_timeJSONOptional
alignment_time (anyOf 1)stringAlternativeTime units of a service duration for bookings.
The time unit of the service duration for bookings.
See [BusinessAppointmentSettingsAlignmentTime](#type-businessappointmentsettingsalignmenttime) for possible values
Known values: SERVICE_DURATION, QUARTER_HOURLY, HALF_HOURLY, HOURLY
alignment_time (anyOf 2)nullAlternative
any_team_member_booking_enabledJSONOptional
any_team_member_booking_enabled (anyOf 1)booleanAlternativeIndicates whether a customer can choose from all available time slots and have a staff member assigned
automatically (`true`) or not (`false`).
any_team_member_booking_enabled (anyOf 2)nullAlternative
cancellation_fee_moneyJSONOptional
cancellation_fee_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The flat-fee amount charged for a no-show booking.
cancellation_fee_money (anyOf 2)nullAlternative
cancellation_policyJSONOptional
cancellation_policy (anyOf 1)stringAlternativeThe category of the seller’s cancellation policy.
The cancellation policy adopted by the seller.
See [BusinessAppointmentSettingsCancellationPolicy](#type-businessappointmentsettingscancellationpolicy) for possible values
Known values: CANCELLATION_TREATED_AS_NO_SHOW, CUSTOM_POLICY
cancellation_policy (anyOf 2)nullAlternative
cancellation_policy_textJSONOptional
cancellation_policy_text (anyOf 1)stringAlternativeThe free-form text of the seller's cancellation policy.
Maximum length: 65536
cancellation_policy_text (anyOf 2)nullAlternative
cancellation_window_secondsJSONOptional
cancellation_window_seconds (anyOf 1)JSONAlternative
cancellation_window_seconds (anyOf 1) (anyOf 1)integerAlternativeThe cut-off time in seconds for allowing clients to cancel or reschedule an appointment.
cancellation_window_seconds (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
cancellation_window_seconds (anyOf 2)nullAlternative
location_typesJSONOptional
location_types (anyOf 1)arrayAlternativeTypes of the location allowed for bookings.
See [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values
location_types (anyOf 1)[]stringEach itemSupported types of location where service is provided.
Known values: BUSINESS_LOCATION, CUSTOMER_LOCATION, PHONE
location_types (anyOf 2)nullAlternative
max_appointments_per_day_limitJSONOptional
max_appointments_per_day_limit (anyOf 1)JSONAlternative
max_appointments_per_day_limit (anyOf 1) (anyOf 1)integerAlternativeThe maximum number of daily appointments per team member or per location.
max_appointments_per_day_limit (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
max_appointments_per_day_limit (anyOf 2)nullAlternative
max_appointments_per_day_limit_typeJSONOptional
max_appointments_per_day_limit_type (anyOf 1)stringAlternativeTypes of daily appointment limits.
Indicates whether the daily appointment limit applies to team members or to
business locations.
See [BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType](#type-businessappointmentsettingsmaxappointmentsperdaylimittype) for possible values
Known values: PER_TEAM_MEMBER, PER_LOCATION
max_appointments_per_day_limit_type (anyOf 2)nullAlternative
max_booking_lead_time_secondsJSONOptional
max_booking_lead_time_seconds (anyOf 1)JSONAlternative
max_booking_lead_time_seconds (anyOf 1) (anyOf 1)integerAlternativeThe maximum lead time in seconds before a service can be booked. A booking must be created at most this amount of time before its starting time.
max_booking_lead_time_seconds (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
max_booking_lead_time_seconds (anyOf 2)nullAlternative
min_booking_lead_time_secondsJSONOptional
min_booking_lead_time_seconds (anyOf 1)JSONAlternative
min_booking_lead_time_seconds (anyOf 1) (anyOf 1)integerAlternativeThe minimum lead time in seconds before a service can be booked. A booking must be created at least this amount of time before its starting time.
min_booking_lead_time_seconds (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
min_booking_lead_time_seconds (anyOf 2)nullAlternative
multiple_service_booking_enabledJSONOptional
multiple_service_booking_enabled (anyOf 1)booleanAlternativeIndicates whether a customer can book multiple services in a single online booking.
multiple_service_booking_enabled (anyOf 2)nullAlternative
skip_booking_flow_staff_selectionJSONOptional
skip_booking_flow_staff_selection (anyOf 1)booleanAlternativeIndicates whether customers has an assigned staff member (`true`) or can select s staff member of their choice (`false`).
skip_booking_flow_staff_selection (anyOf 2)nullAlternative

Referenced models: Pay Order — response body — order total money

Retrieve Location Booking Profile — response body

FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
location_booking_profileModelOptionalExpand Retrieve Location Booking Profile — response body — location booking profile
The requested location booking profile.

Referenced models: Retrieve Location Booking Profile — response body — location booking profile, Get Shift — response body — errors item

Retrieve Location Booking Profile — response body — location booking profile

FieldTypePresenceDescription and constraints
$objectRootThe booking profile of a seller's location, including the location's ID and whether the location is enabled for online booking.
booking_site_urlJSONOptional
booking_site_url (anyOf 1)stringAlternativeUrl for the online booking site for this location.
booking_site_url (anyOf 2)nullAlternative
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the [location](entity:Location).
location_id (anyOf 2)nullAlternative
online_booking_enabledJSONOptional
online_booking_enabled (anyOf 1)booleanAlternativeIndicates whether the location is enabled for online booking.
online_booking_enabled (anyOf 2)nullAlternative

Retrieve Team Member Booking Profile — response body

FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
team_member_booking_profileModelOptionalExpand Retrieve Team Member Booking Profile — response body — team member booking profile
The returned team member booking profile.

Referenced models: Get Shift — response body — errors item, Retrieve Team Member Booking Profile — response body — team member booking profile

Retrieve Team Member Booking Profile — response body — team member booking profile

FieldTypePresenceDescription and constraints
$objectRootThe booking profile of a seller's team member, including the team member's ID, display name, description and whether the team member can be booked as a service provider.
descriptionstringOptionalThe description of the team member.
Maximum length: 65536
Read only: true
display_namestringOptionalThe display name of the team member.
Maximum length: 512
Read only: true
is_bookableJSONOptional
is_bookable (anyOf 1)booleanAlternativeIndicates whether the team member can be booked through the Bookings API or the seller's online booking channel or site (`true`) or not (`false`).
is_bookable (anyOf 2)nullAlternative
profile_image_urlstringOptionalThe URL of the team member's image for the bookings profile.
Maximum length: 2048
Read only: true
team_member_idstringOptionalThe ID of the [TeamMember](entity:TeamMember) object for the team member associated with the booking profile.
Maximum length: 32
Read only: true

Search Availability — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
queryModelRequired within parentExpand Search Availability — request body — body query
Query conditions used to filter buyer-accessible booking availabilities.

Referenced models: Search Availability — request body — body query

Search Availability — request body — body query

FieldTypePresenceDescription and constraints
$objectRootThe query used to search for buyer-accessible availabilities of bookings.
filterModelRequired within parentExpand Search Availability — request body — body query filter
The query filter to search for buyer-accessible availabilities of existing bookings.

Referenced models: Search Availability — request body — body query filter

Search Availability — request body — body query filter

FieldTypePresenceDescription and constraints
$objectRootA query filter to search for buyer-accessible availabilities by.
booking_idJSONOptional
booking_id (anyOf 1)stringAlternativeThe query expression to search for buyer-accessible availabilities for an existing booking by matching the specified `booking_id` value.
This is commonly used to reschedule an appointment.
If this expression is set, the `location_id` and `segment_filters` expressions cannot be set.
Maximum length: 36
booking_id (anyOf 2)nullAlternative
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe query expression to search for buyer-accessible availabilities with their location IDs matching the specified location ID.
This query expression cannot be set if `booking_id` is set.
Maximum length: 32
location_id (anyOf 2)nullAlternative
segment_filtersJSONOptional
segment_filters (anyOf 1)arrayAlternativeThe query expression to search for buyer-accessible availabilities matching the specified list of segment filters.
If the size of the `segment_filters` list is `n`, the search returns availabilities with `n` segments per availability.

This query expression cannot be set if `booking_id` is set.
segment_filters (anyOf 1)[]ModelEach itemExpand Search Availability — request body — body query filter segment filters array item
segment_filters (anyOf 2)nullAlternative
start_at_rangeModelRequired within parentExpand Search Availability — request body — body query filter start at range
The query expression to search for buy-accessible availabilities with their starting times falling within the specified time range.
The time range must be at least 24 hours and at most 32 days long.
For waitlist availabilities, the time range can be 0 or more up to 367 days long.

Referenced models: Search Availability — request body — body query filter segment filters array item, Search Availability — request body — body query filter start at range

Search Availability — request body — body query filter segment filters array item

FieldTypePresenceDescription and constraints
$objectRootA query filter to search for buyer-accessible appointment segments by.
service_variation_idstringRequired within parentThe ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment.
Maximum length: 36
Minimum length: 1
team_member_id_filterJSONOptional
team_member_id_filter (anyOf 1)ModelAlternativeExpand Search Customers — request body — body query filter created at, creation source, custom attribute, email address, group ids, phone number, reference id, segment ids, updated at group ids all, any, none
A query filter to search for buyer-accessible appointment segments with service-providing team members matching the specified list of team member IDs. Supported query expressions are
- `ANY`: return the appointment segments with team members whose IDs match any member in this list.
- `NONE`: return the appointment segments with team members whose IDs are not in this list.
- `ALL`: not supported.

When no expression is specified, any service-providing team member is eligible to fulfill the Booking.
team_member_id_filter (anyOf 2)nullAlternative

Referenced models: Search Customers — request body — body query filter created at, creation source, custom attribute, email address, group ids, phone number, reference id, segment ids, updated at group ids all, any, none

Search Availability — request body — body query filter start at range

FieldTypePresenceDescription and constraints
$objectRootRepresents a generic time range. The start and end values are
represented in RFC 3339 format. Time ranges are customized to be
inclusive or exclusive based on the needs of a particular endpoint.
Refer to the relevant endpoint-specific documentation to determine
how time ranges are handled.
end_atJSONOptional
end_at (anyOf 1)stringAlternativeA datetime value in RFC 3339 format indicating when the time range
ends.
end_at (anyOf 2)nullAlternative
start_atJSONOptional
start_at (anyOf 1)stringAlternativeA datetime value in RFC 3339 format indicating when the time range
starts.
start_at (anyOf 2)nullAlternative

Search Availability — response body

FieldTypePresenceDescription and constraints
$objectRoot
availabilitiesarrayOptionalList of appointment slots available for booking.
availabilities[]ModelEach itemExpand Search Availability — response body — availabilities item
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Search Availability — response body — availabilities item, Get Shift — response body — errors item

Search Availability — response body — availabilities item

FieldTypePresenceDescription and constraints
$objectRootDefines an appointment slot that encapsulates the appointment segments, location and starting time available for booking.
appointment_segmentsJSONOptional
appointment_segments (anyOf 1)arrayAlternativeThe list of appointment segments available for booking
appointment_segments (anyOf 1)[]ModelEach itemExpand Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item
appointment_segments (anyOf 2)nullAlternative
location_idstringOptionalThe ID of the location available for booking.
Maximum length: 32
Read only: true
start_atJSONOptional
start_at (anyOf 1)stringAlternativeThe RFC 3339 timestamp specifying the beginning time of the slot available for booking.
start_at (anyOf 2)nullAlternative

Referenced models: Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item

Update Booking — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
bookingModelRequired within parentExpand Create Booking — request body — body booking
The booking to be updated. Individual attributes explicitly specified here override the corresponding values of the existing booking.
idempotency_keyJSONOptional
idempotency_key (anyOf 1)stringAlternativeA unique key to make this request an idempotent operation.
Maximum length: 255
idempotency_key (anyOf 2)nullAlternative

Referenced models: Create Booking — request body — body booking

Update Booking — response body

FieldTypePresenceDescription and constraints
$objectRoot
bookingModelOptionalExpand Cancel Booking — response body — booking
The booking that was updated.
errorsarrayOptionalErrors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.