Square: Bookings schemas
34 Square schemas with complete fields and constraints.
← Bookings operations · All schemas
Bulk Retrieve Bookings — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request payload for bulk retrieval of bookings. |
booking_ids | array | Required within parent | A non-empty list of [Booking](entity:Booking) IDs specifying bookings to retrieve. |
booking_ids[] | string | Each item |
Bulk Retrieve Bookings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response payload for bulk retrieval of bookings. |
bookings | object | Optional | Requested bookings returned as a map containing `booking_id` as the key and `RetrieveBookingResponse` as the value. Additional keys: see wildcard field |
bookings.* | Model | Additional keys | Expand Retrieve Booking — response body |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint. |
team_member_ids | array | Required within parent | A non-empty list of IDs of team members whose booking profiles you want to retrieve. |
team_member_ids[] | string | Each item |
Bulk Retrieve Team Member Booking Profiles — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint. |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
team_member_booking_profiles | object | Optional | The 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.* | Model | Additional keys | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
booking_version | JSON | Optional | |
booking_version (anyOf 1) | integer | Alternative | The revision number for the booking used for optimistic concurrency. |
booking_version (anyOf 2) | null | Alternative | |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A unique key to make this request an idempotent operation. Maximum length: 255 |
idempotency_key (anyOf 2) | null | Alternative |
Cancel Booking — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
booking | Model | Optional | Expand Cancel Booking — response body — booking The booking that was cancelled. |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item
Cancel Booking — response body — booking
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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. |
address | JSON | Optional | |
address (anyOf 1) | Model | Alternative | Expand Get Payment — response body — payment billing address Stores a customer address if the location type is `CUSTOMER_LOCATION`. |
address (anyOf 2) | null | Alternative | |
all_day | boolean | Optional | Whether the booking is of a full business day. Read only: true |
appointment_segments | JSON | Optional | |
appointment_segments (anyOf 1) | array | Alternative | A list of appointment segments for this booking. |
appointment_segments (anyOf 1)[] | Model | Each item | Expand Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item |
appointment_segments (anyOf 2) | null | Alternative | |
created_at | string | Optional | The RFC 3339 timestamp specifying the creation time of this booking. Read only: true |
creator_details | Model | Optional | Expand Cancel Booking — response body — booking creator details Information about the booking creator. Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The ID of the [Customer](entity:Customer) object representing the customer receiving the booked service. Maximum length: 192 |
customer_id (anyOf 2) | null | Alternative | |
customer_note | JSON | Optional | |
customer_note (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
id | string | Optional | A unique ID of this object representing a booking. Maximum length: 36 Read only: true |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
location_type | JSON | Optional | |
location_type (anyOf 1) | string | Alternative | Supported 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) | null | Alternative | |
seller_note | JSON | Optional | |
seller_note (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
source | string | Optional | Supported 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_at | JSON | Optional | |
start_at (anyOf 1) | string | Alternative | The RFC 3339 timestamp specifying the starting time of this booking. |
start_at (anyOf 2) | null | Alternative | |
status | string | Optional | Supported 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_minutes | JSON | Optional | |
transition_time_minutes (anyOf 1) | integer | Alternative | Additional 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
updated_at | string | Optional | The RFC 3339 timestamp specifying the most recent update time of this booking. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The revision number for the booking used for optimistic concurrency. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines an appointment segment of a booking. |
any_team_member | boolean | Optional | Whether the customer accepts any team member, instead of a specific one, to serve this segment. Read only: true |
duration_minutes | JSON | Optional | |
duration_minutes (anyOf 1) | JSON | Alternative | |
duration_minutes (anyOf 1) (anyOf 1) | integer | Alternative | The time span in minutes of an appointment segment. Maximum: 1500 |
duration_minutes (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
duration_minutes (anyOf 2) | null | Alternative | |
intermission_minutes | JSON | Optional | |
intermission_minutes (anyOf 1) | integer | Alternative | Time between the end of this segment and the beginning of the subsequent segment. Read only: true |
intermission_minutes (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
resource_ids | array | Optional | The IDs of the seller-accessible resources used for this appointment segment. Read only: true |
resource_ids[] | string | Each item | |
service_variation_id | JSON | Optional | |
service_variation_id (anyOf 1) | string | Alternative | The ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment. Maximum length: 36 |
service_variation_id (anyOf 2) | null | Alternative | |
service_variation_version | JSON | Optional | |
service_variation_version (anyOf 1) | JSON | Alternative | |
service_variation_version (anyOf 1) (anyOf 1) | integer | Alternative | The current version of the item variation representing the service booked in this segment. Format: int64 |
service_variation_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
service_variation_version (anyOf 2) | null | Alternative | |
team_member_id | string | Required within parent | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Information about a booking creator. |
creator_type | string | Optional | Supported 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_id | string | Optional | The 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_id | string | Optional | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
booking | Model | Required within parent | Expand Create Booking — request body — body booking The details of the booking to be created. |
idempotency_key | string | Optional | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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. |
address | JSON | Optional | |
address (anyOf 1) | Model | Alternative | Expand Create Customer — request body — body address Stores a customer address if the location type is `CUSTOMER_LOCATION`. |
address (anyOf 2) | null | Alternative | |
all_day | boolean | Optional | Whether the booking is of a full business day. Read only: true |
appointment_segments | JSON | Optional | |
appointment_segments (anyOf 1) | array | Alternative | A list of appointment segments for this booking. |
appointment_segments (anyOf 1)[] | Model | Each item | Expand Create Booking — request body — body booking appointment segments A list of appointment segments for this booking item |
appointment_segments (anyOf 2) | null | Alternative | |
created_at | string | Optional | The RFC 3339 timestamp specifying the creation time of this booking. Read only: true |
creator_details | Model | Optional | Expand Create Booking — request body — body booking creator details Information about the booking creator. Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The ID of the [Customer](entity:Customer) object representing the customer receiving the booked service. Maximum length: 192 |
customer_id (anyOf 2) | null | Alternative | |
customer_note | JSON | Optional | |
customer_note (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
id | string | Optional | A unique ID of this object representing a booking. Maximum length: 36 Read only: true |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
location_type | JSON | Optional | |
location_type (anyOf 1) | string | Alternative | Supported 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) | null | Alternative | |
seller_note | JSON | Optional | |
seller_note (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
source | string | Optional | Supported 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_at | JSON | Optional | |
start_at (anyOf 1) | string | Alternative | The RFC 3339 timestamp specifying the starting time of this booking. |
start_at (anyOf 2) | null | Alternative | |
status | string | Optional | Supported 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_minutes | integer | Optional | Additional time at the end of a booking. Applications should not make this field visible to customers of a seller. Read only: true |
updated_at | string | Optional | The RFC 3339 timestamp specifying the most recent update time of this booking. Read only: true |
version | integer | Optional | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines an appointment segment of a booking. |
any_team_member | boolean | Optional | Whether the customer accepts any team member, instead of a specific one, to serve this segment. Read only: true |
duration_minutes | JSON | Optional | |
duration_minutes (anyOf 1) | integer | Alternative | The time span in minutes of an appointment segment. Maximum: 1500 |
duration_minutes (anyOf 2) | null | Alternative | |
intermission_minutes | integer | Optional | Time between the end of this segment and the beginning of the subsequent segment. Read only: true |
resource_ids | array | Optional | The IDs of the seller-accessible resources used for this appointment segment. Read only: true |
resource_ids[] | string | Each item | |
service_variation_id | JSON | Optional | |
service_variation_id (anyOf 1) | string | Alternative | The ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment. Maximum length: 36 |
service_variation_id (anyOf 2) | null | Alternative | |
service_variation_version | JSON | Optional | |
service_variation_version (anyOf 1) | JSON | Alternative | |
service_variation_version (anyOf 1) (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^(?:-(?: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) | null | Alternative | |
team_member_id | string | Required within parent | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Information about a booking creator. |
creator_type | string | Optional | Supported 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_id | string | Optional | The 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_id | string | Optional | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
booking | Model | Optional | Expand Cancel Booking — response body — booking The booking that was created. |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item
List Bookings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
bookings | array | Optional | The list of targeted bookings. |
bookings[] | Model | Each item | Expand Cancel Booking — response body — booking |
cursor | string | Optional | The 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 |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | The 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. |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location_booking_profiles | array | Optional | The list of a seller's location booking profiles. |
location_booking_profiles[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | The 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 |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
team_member_booking_profiles | array | Optional | The 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[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
booking | Model | Optional | Expand Cancel Booking — response body — booking The booking that was requested. |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
business_booking_profile | Model | Optional | Expand Retrieve Business Booking Profile — response body — business booking profile The seller's booking profile. |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A seller's business booking profile, including booking policy, appointment settings, etc. |
allow_user_cancel | JSON | Optional | |
allow_user_cancel (anyOf 1) | boolean | Alternative | Indicates whether customers can cancel or reschedule their own bookings (`true`) or not (`false`). |
allow_user_cancel (anyOf 2) | null | Alternative | |
booking_enabled | JSON | Optional | |
booking_enabled (anyOf 1) | boolean | Alternative | Indicates whether the seller is open for booking. |
booking_enabled (anyOf 2) | null | Alternative | |
booking_policy | JSON | Optional | |
booking_policy (anyOf 1) | string | Alternative | Policies 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) | null | Alternative | |
business_appointment_settings | JSON | Optional | |
business_appointment_settings (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
created_at | string | Optional | The RFC 3339 timestamp specifying the booking's creation time. Read only: true |
customer_timezone_choice | JSON | Optional | |
customer_timezone_choice (anyOf 1) | string | Alternative | Choices 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) | null | Alternative | |
seller_id | JSON | Optional | |
seller_id (anyOf 1) | string | Alternative | The ID of the seller, obtainable using the Merchants API. Maximum length: 32 |
seller_id (anyOf 2) | null | Alternative | |
support_seller_level_writes | JSON | Optional | |
support_seller_level_writes (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The service appointment settings, including where and how the service is provided. |
alignment_time | JSON | Optional | |
alignment_time (anyOf 1) | string | Alternative | Time 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) | null | Alternative | |
any_team_member_booking_enabled | JSON | Optional | |
any_team_member_booking_enabled (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
cancellation_fee_money | JSON | Optional | |
cancellation_fee_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The flat-fee amount charged for a no-show booking. |
cancellation_fee_money (anyOf 2) | null | Alternative | |
cancellation_policy | JSON | Optional | |
cancellation_policy (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
cancellation_policy_text | JSON | Optional | |
cancellation_policy_text (anyOf 1) | string | Alternative | The free-form text of the seller's cancellation policy. Maximum length: 65536 |
cancellation_policy_text (anyOf 2) | null | Alternative | |
cancellation_window_seconds | JSON | Optional | |
cancellation_window_seconds (anyOf 1) | JSON | Alternative | |
cancellation_window_seconds (anyOf 1) (anyOf 1) | integer | Alternative | The cut-off time in seconds for allowing clients to cancel or reschedule an appointment. |
cancellation_window_seconds (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
cancellation_window_seconds (anyOf 2) | null | Alternative | |
location_types | JSON | Optional | |
location_types (anyOf 1) | array | Alternative | Types of the location allowed for bookings. See [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values |
location_types (anyOf 1)[] | string | Each item | Supported types of location where service is provided. Known values: BUSINESS_LOCATION, CUSTOMER_LOCATION, PHONE |
location_types (anyOf 2) | null | Alternative | |
max_appointments_per_day_limit | JSON | Optional | |
max_appointments_per_day_limit (anyOf 1) | JSON | Alternative | |
max_appointments_per_day_limit (anyOf 1) (anyOf 1) | integer | Alternative | The maximum number of daily appointments per team member or per location. |
max_appointments_per_day_limit (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
max_appointments_per_day_limit (anyOf 2) | null | Alternative | |
max_appointments_per_day_limit_type | JSON | Optional | |
max_appointments_per_day_limit_type (anyOf 1) | string | Alternative | Types 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) | null | Alternative | |
max_booking_lead_time_seconds | JSON | Optional | |
max_booking_lead_time_seconds (anyOf 1) | JSON | Alternative | |
max_booking_lead_time_seconds (anyOf 1) (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
max_booking_lead_time_seconds (anyOf 2) | null | Alternative | |
min_booking_lead_time_seconds | JSON | Optional | |
min_booking_lead_time_seconds (anyOf 1) | JSON | Alternative | |
min_booking_lead_time_seconds (anyOf 1) (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
min_booking_lead_time_seconds (anyOf 2) | null | Alternative | |
multiple_service_booking_enabled | JSON | Optional | |
multiple_service_booking_enabled (anyOf 1) | boolean | Alternative | Indicates whether a customer can book multiple services in a single online booking. |
multiple_service_booking_enabled (anyOf 2) | null | Alternative | |
skip_booking_flow_staff_selection | JSON | Optional | |
skip_booking_flow_staff_selection (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Retrieve Location Booking Profile — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location_booking_profile | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The booking profile of a seller's location, including the location's ID and whether the location is enabled for online booking. |
booking_site_url | JSON | Optional | |
booking_site_url (anyOf 1) | string | Alternative | Url for the online booking site for this location. |
booking_site_url (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the [location](entity:Location). |
location_id (anyOf 2) | null | Alternative | |
online_booking_enabled | JSON | Optional | |
online_booking_enabled (anyOf 1) | boolean | Alternative | Indicates whether the location is enabled for online booking. |
online_booking_enabled (anyOf 2) | null | Alternative |
Retrieve Team Member Booking Profile — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
team_member_booking_profile | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The 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. |
description | string | Optional | The description of the team member. Maximum length: 65536 Read only: true |
display_name | string | Optional | The display name of the team member. Maximum length: 512 Read only: true |
is_bookable | JSON | Optional | |
is_bookable (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
profile_image_url | string | Optional | The URL of the team member's image for the bookings profile. Maximum length: 2048 Read only: true |
team_member_id | string | Optional | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
query | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The query used to search for buyer-accessible availabilities of bookings. |
filter | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A query filter to search for buyer-accessible availabilities by. |
booking_id | JSON | Optional | |
booking_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
segment_filters | JSON | Optional | |
segment_filters (anyOf 1) | array | Alternative | The 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)[] | Model | Each item | Expand Search Availability — request body — body query filter segment filters array item |
segment_filters (anyOf 2) | null | Alternative | |
start_at_range | Model | Required within parent | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A query filter to search for buyer-accessible appointment segments by. |
service_variation_id | string | Required within parent | The ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment. Maximum length: 36 Minimum length: 1 |
team_member_id_filter | JSON | Optional | |
team_member_id_filter (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative |
Search Availability — request body — body query filter start at range
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_at | JSON | Optional | |
end_at (anyOf 1) | string | Alternative | A datetime value in RFC 3339 format indicating when the time range ends. |
end_at (anyOf 2) | null | Alternative | |
start_at | JSON | Optional | |
start_at (anyOf 1) | string | Alternative | A datetime value in RFC 3339 format indicating when the time range starts. |
start_at (anyOf 2) | null | Alternative |
Search Availability — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
availabilities | array | Optional | List of appointment slots available for booking. |
availabilities[] | Model | Each item | Expand Search Availability — response body — availabilities item |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines an appointment slot that encapsulates the appointment segments, location and starting time available for booking. |
appointment_segments | JSON | Optional | |
appointment_segments (anyOf 1) | array | Alternative | The list of appointment segments available for booking |
appointment_segments (anyOf 1)[] | Model | Each item | Expand Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item |
appointment_segments (anyOf 2) | null | Alternative | |
location_id | string | Optional | The ID of the location available for booking. Maximum length: 32 Read only: true |
start_at | JSON | Optional | |
start_at (anyOf 1) | string | Alternative | The RFC 3339 timestamp specifying the beginning time of the slot available for booking. |
start_at (anyOf 2) | null | Alternative |
Referenced models: Cancel Booking — response body — booking appointment segments A list of appointment segments for this booking item
Update Booking — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
booking | Model | Required within parent | Expand 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_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A unique key to make this request an idempotent operation. Maximum length: 255 |
idempotency_key (anyOf 2) | null | Alternative |
Referenced models: Create Booking — request body — body booking
Update Booking — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
booking | Model | Optional | Expand Cancel Booking — response body — booking The booking that was updated. |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Cancel Booking — response body — booking, Get Shift — response body — errors item