Square: Labor schemas
75 Square schemas with complete fields and constraints.
← Labor operations · All schemas
Bulk Publish Scheduled Shifts — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) request. |
scheduled_shift_notification_audience | JSON | Optional | |
scheduled_shift_notification_audience (anyOf 1) | string | Alternative | Indicates whether Square sends an email notification to team members when a scheduled shift is published and which team members receive the notification. Indicates whether Square should send email notifications to team members and which team members should receive the notifications. This setting applies to all shifts specified in the bulk operation. The default value is `AFFECTED`. See [ScheduledShiftNotificationAudience](#type-scheduledshiftnotificationaudience) for possible values One of: ALL, AFFECTED, NONE |
scheduled_shift_notification_audience (anyOf 2) | null | Alternative | |
scheduled_shifts | object | Required within parent | A map of 1 to 100 key-value pairs that represent individual publish requests. - Each key is the ID of a scheduled shift you want to publish. - Each value is a `BulkPublishScheduledShiftsData` object that contains the `version` field or is an empty object. Additional keys: see wildcard field |
scheduled_shifts.* | Model | Additional keys | Expand Bulk Publish Scheduled Shifts — request body — body scheduled shifts value |
Referenced models: Bulk Publish Scheduled Shifts — request body — body scheduled shifts value
Bulk Publish Scheduled Shifts — request body — body scheduled shifts value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents options for an individual publish request in a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) operation, provided as the value in a key-value pair. |
version | integer | Optional | The current version of the scheduled shift, used to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control. If the provided version doesn't match the server version, the request fails. If omitted, Square executes a blind write, potentially overwriting data from another publish request. |
Bulk Publish Scheduled Shifts — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) response. Either `scheduled_shifts` or `errors` is present in the response. |
errors | array | Optional | Any top-level errors that prevented the bulk operation from succeeding. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
responses | object | Optional | A map of key-value pairs that represent responses for individual publish requests. The order of responses might differ from the order in which the requests were provided. - Each key is the scheduled shift ID that was specified for a publish request. - Each value is the corresponding response. If the request succeeds, the value is the published scheduled shift. If the request fails, the value is an `errors` array containing any errors that occurred while processing the request. Additional keys: see wildcard field |
responses.* | Model | Additional keys | Expand Publish Scheduled Shift — response body |
Referenced models: Get Shift — response body — errors item, Publish Scheduled Shift — response body
Create Break Type — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request to create a new `BreakType`. |
break_type | Model | Required within parent | Expand Create Break Type — request body — body break type The `BreakType` to be created. |
idempotency_key | string | Optional | A unique string value to ensure the idempotency of the operation. Maximum length: 128 |
Referenced models: Create Break Type — request body — body break type
Create Break Type — request body — body break type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A template for a type of [break](entity:Break) that can be added to a [timecard](entity:Timecard), including the expected duration and paid status. |
break_name | string | Required within parent | A human-readable name for this type of break. The name is displayed to team members in Square products. Minimum length: 1 |
created_at | string | Optional | A read-only timestamp in RFC 3339 format. Read only: true |
expected_duration | string | Required within parent | Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of this break. Precision less than minutes is truncated. Example for break expected duration of 15 minutes: PT15M Minimum length: 1 |
id | string | Optional | The UUID for this object. Maximum length: 255 |
is_paid | boolean | Required within parent | Whether this break counts towards time worked for compensation purposes. |
location_id | string | Required within parent | The ID of the business location this type of break applies to. Minimum length: 1 |
updated_at | string | Optional | A read-only timestamp in RFC 3339 format. Read only: true |
version | integer | Optional | Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If a value is not provided, Square's servers execute a "blind" write; potentially overwriting another writer's data. |
Create Break Type — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to the request to create a `BreakType`. The response contains the created `BreakType` object and might contain a set of `Error` objects if the request resulted in errors. |
break_type | Model | Optional | Expand Get Break Type — response body — break type The `BreakType` that was created by the request. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Break Type — response body — break type, Get Shift — response body — errors item
Create Scheduled Shift — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [CreateScheduledShift](api-endpoint:Labor-CreateScheduledShift) request. |
idempotency_key | string | Optional | A unique identifier for the `CreateScheduledShift` request, used to ensure the [idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) of the operation. Maximum length: 128 |
scheduled_shift | Model | Required within parent | Expand Create Scheduled Shift — request body — body scheduled shift The scheduled shift with `draft_shift_details`. If needed, call [ListLocations](api-endpoint:Locations-ListLocations) to get location IDs, [ListJobs](api-endpoint:Team-ListJobs) to get job IDs, and [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers) to get team member IDs and current job assignments. The `start_at` and `end_at` timestamps must be provided in the time zone + offset of the shift location specified in `location_id`. Example for Pacific Standard Time: 2024-10-31T12:30:00-08:00 |
Referenced models: Create Scheduled Shift — request body — body scheduled shift
Create Scheduled Shift — request body — body scheduled shift
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a specific time slot in a work schedule. This object is used to manage the lifecycle of a scheduled shift from the draft to published state. A scheduled shift contains the latest draft shift details and current published shift details. |
created_at | string | Optional | The timestamp of when the scheduled shift was created, in RFC 3339 format presented as UTC. Read only: true |
draft_shift_details | JSON | Optional | |
draft_shift_details (anyOf 1) | Model | Alternative | Expand Create Scheduled Shift — response body — scheduled shift published shift details The latest draft shift details for the scheduled shift. Draft shift details are used to stage and manage shifts before publishing. This field is always present. |
draft_shift_details (anyOf 2) | null | Alternative | |
id | string | Optional | **Read only** The Square-issued ID of the scheduled shift. Maximum length: 255 |
published_shift_details | Model | Optional | Expand Create Scheduled Shift — response body — scheduled shift published shift details The current published (public) shift details for the scheduled shift. This field is present only if the shift was published. Read only: true |
updated_at | string | Optional | The timestamp of when the scheduled shift was last updated, in RFC 3339 format presented as UTC. Read only: true |
version | integer | Optional | **Read only** The current version of the scheduled shift, which is incremented with each update. This field is used for [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control to ensure that requests don't overwrite data from another request. |
Referenced models: Create Scheduled Shift — response body — scheduled shift published shift details
Create Scheduled Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [CreateScheduledShift](api-endpoint:Labor-CreateScheduledShift) response. Either `scheduled_shift` or `errors` is present in the response. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
scheduled_shift | Model | Optional | Expand Create Scheduled Shift — response body — scheduled shift The new scheduled shift. To make the shift public, call [PublishScheduledShift](api-endpoint:Labor-PublishScheduledShift) or [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts). |
Referenced models: Get Shift — response body — errors item, Create Scheduled Shift — response body — scheduled shift
Create Scheduled Shift — response body — scheduled shift
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a specific time slot in a work schedule. This object is used to manage the lifecycle of a scheduled shift from the draft to published state. A scheduled shift contains the latest draft shift details and current published shift details. |
created_at | string | Optional | The timestamp of when the scheduled shift was created, in RFC 3339 format presented as UTC. Read only: true |
draft_shift_details | JSON | Optional | |
draft_shift_details (anyOf 1) | Model | Alternative | Expand Create Scheduled Shift — response body — scheduled shift published shift details The latest draft shift details for the scheduled shift. Draft shift details are used to stage and manage shifts before publishing. This field is always present. |
draft_shift_details (anyOf 2) | null | Alternative | |
id | string | Optional | **Read only** The Square-issued ID of the scheduled shift. Maximum length: 255 |
published_shift_details | Model | Optional | Expand Create Scheduled Shift — response body — scheduled shift published shift details The current published (public) shift details for the scheduled shift. This field is present only if the shift was published. Read only: true |
updated_at | string | Optional | The timestamp of when the scheduled shift was last updated, in RFC 3339 format presented as UTC. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | **Read only** The current version of the scheduled shift, which is incremented with each update. This field is used for [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control to ensure that requests don't overwrite data from another request. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Create Scheduled Shift — response body — scheduled shift published shift details
Create Scheduled Shift — response body — scheduled shift published shift details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents shift details for draft and published versions of a [scheduled shift](entity:ScheduledShift), such as job ID, team member assignment, and start and end times. |
end_at | JSON | Optional | |
end_at (anyOf 1) | string | Alternative | The end time for the shift, in RFC 3339 format in the time zone + offset of the shift location specified in `location_id`. Precision up to the minute is respected; seconds are truncated. |
end_at (anyOf 2) | null | Alternative | |
is_deleted | JSON | Optional | |
is_deleted (anyOf 1) | boolean | Alternative | Indicates whether the draft shift version is deleted. If set to `true` when the shift is published, the entire scheduled shift (including the published shift) is deleted and cannot be accessed using any endpoint. |
is_deleted (anyOf 2) | null | Alternative | |
job_id | JSON | Optional | |
job_id (anyOf 1) | string | Alternative | The ID of the [job](entity:Job) the shift is scheduled for. |
job_id (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the [location](entity:Location) the shift is scheduled for. Maximum length: 255 |
location_id (anyOf 2) | null | Alternative | |
notes | JSON | Optional | |
notes (anyOf 1) | string | Alternative | Optional notes for the shift. Maximum length: 1000 |
notes (anyOf 2) | null | Alternative | |
start_at | JSON | Optional | |
start_at (anyOf 1) | string | Alternative | The start time of the shift, in RFC 3339 format in the time zone + offset of the shift location specified in `location_id`. Precision up to the minute is respected; seconds are truncated. |
start_at (anyOf 2) | null | Alternative | |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The ID of the [team member](entity:TeamMember) scheduled for the shift. Maximum length: 255 |
team_member_id (anyOf 2) | null | Alternative | |
timezone | string | Optional | The time zone of the shift location, calculated based on the `location_id`. This field is provided for convenience. Read only: true |
Create Shift — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a request to create a `Shift`. |
idempotency_key | string | Optional | A unique string value to ensure the idempotency of the operation. Maximum length: 128 |
shift | Model | Required within parent | Expand Create Shift — request body — body shift The `Shift` to be created. |
Referenced models: Create Shift — request body — body shift
Create Shift — request body — body shift
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A record of the hourly rate, start, and end times for a single work shift for an employee. This might include a record of the start and end times for breaks taken during the shift. Deprecated at Square API version 2025-05-21. Replaced by [Timecard](entity:Timecard). See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
breaks | JSON | Optional | |
breaks (anyOf 1) | array | Alternative | A list of all the paid or unpaid breaks that were taken during this shift. |
breaks (anyOf 1)[] | Model | Each item | Expand Get Shift — response body — shift breaks array item |
breaks (anyOf 2) | null | Alternative | |
created_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
declared_cash_tip_money | JSON | Optional | |
declared_cash_tip_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The tips declared by the team member for the shift. |
declared_cash_tip_money (anyOf 2) | null | Alternative | |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The ID of the employee this shift belongs to. DEPRECATED at version 2020-08-26. Use `team_member_id` instead. |
employee_id (anyOf 2) | null | Alternative | |
end_at | JSON | Optional | |
end_at (anyOf 1) | string | Alternative | RFC 3339; shifted to the timezone + offset. Precision up to the minute is respected; seconds are truncated. |
end_at (anyOf 2) | null | Alternative | |
id | string | Optional | The UUID for this object. Maximum length: 255 |
location_id | string | Required within parent | The ID of the location this shift occurred at. The location should be based on where the employee clocked in. Minimum length: 1 |
start_at | string | Required within parent | RFC 3339; shifted to the location timezone + offset. Precision up to the minute is respected; seconds are truncated. Minimum length: 1 |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Enumerates the possible status of a `Shift`. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). Describes the working state of the current `Shift`. See [ShiftStatus](#type-shiftstatus) for possible values One of: OPEN, CLOSED |
status (anyOf 2) | null | Alternative | |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The ID of the team member this shift belongs to. Replaced `employee_id` at version "2020-08-26". |
team_member_id (anyOf 2) | null | Alternative | |
timezone | JSON | Optional | |
timezone (anyOf 1) | string | Alternative | The read-only convenience value that is calculated from the location based on the `location_id`. Format: the IANA timezone database identifier for the location timezone. |
timezone (anyOf 2) | null | Alternative | |
updated_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
version | integer | Optional | Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If not provided, Square executes a blind write; potentially overwriting data from another write. |
wage | JSON | Optional | |
wage (anyOf 1) | Model | Alternative | Expand Create Shift — request body — body shift wage hourly rate, job id, tip eligible, title Job and pay related information. If the wage is not set on create, it defaults to a wage of zero. If the title is not set on create, it defaults to the name of the role the employee is assigned to, if any. |
wage (anyOf 2) | null | Alternative |
Referenced models: Get Shift — response body — shift breaks array item, Create Payment — request body — body tip money, Create Shift — request body — body shift wage hourly rate, job id, tip eligible, title
Create Shift — request body — body shift wage hourly rate, job id, tip eligible, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The hourly wage rate used to compensate an employee for this shift. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
hourly_rate | JSON | Optional | |
hourly_rate (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money Can be a custom-set hourly wage or the calculated effective hourly wage based on the annual wage and hours worked per week. |
hourly_rate (anyOf 2) | null | Alternative | |
job_id | string | Optional | The id of the job performed during this shift. Square labor-reporting UIs might group shifts together by id. Read only: true |
tip_eligible | JSON | Optional | |
tip_eligible (anyOf 1) | boolean | Alternative | Whether team members are eligible for tips when working this job. |
tip_eligible (anyOf 2) | null | Alternative | |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The name of the job performed during this shift. |
title (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to create a `Shift`. The response contains the created `Shift` object and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
shift | Model | Optional | Expand Get Shift — response body — shift The `Shift` that was created on the request. |
Referenced models: Get Shift — response body — errors item, Get Shift — response body — shift
Create Timecard — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a request to create a `Timecard`. |
idempotency_key | string | Optional | A unique string value to ensure the idempotency of the operation. Maximum length: 128 |
timecard | Model | Required within parent | Expand Create Timecard — request body — body timecard The `Timecard` to be created. |
Referenced models: Create Timecard — request body — body timecard
Create Timecard — request body — body timecard
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A record of the hourly rate, start time, and end time of a single timecard (shift) for a team member. This might include a record of the start and end times of breaks taken during the shift. |
breaks | JSON | Optional | |
breaks (anyOf 1) | array | Alternative | A list of all the paid or unpaid breaks that were taken during this timecard. |
breaks (anyOf 1)[] | Model | Each item | Expand Get Shift — response body — shift breaks array item |
breaks (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp of when the timecard was created, in RFC 3339 format presented as UTC. Read only: true |
declared_cash_tip_money | JSON | Optional | |
declared_cash_tip_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The cash tips declared by the team member for this timecard. |
declared_cash_tip_money (anyOf 2) | null | Alternative | |
end_at | JSON | Optional | |
end_at (anyOf 1) | string | Alternative | The end time of the timecard, in RFC 3339 format and shifted to the location timezone + offset. Precision up to the minute is respected; seconds are truncated. |
end_at (anyOf 2) | null | Alternative | |
id | string | Optional | **Read only** The Square-issued UUID for this object. Maximum length: 255 |
location_id | string | Required within parent | The ID of the [location](entity:Location) for this timecard. The location should be based on where the team member clocked in. Minimum length: 1 |
start_at | string | Required within parent | The start time of the timecard, in RFC 3339 format and shifted to the location timezone + offset. Precision up to the minute is respected; seconds are truncated. Minimum length: 1 |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | **Read only** Enumerates the possible status of a [timecard](entity:Timecard). Describes the working state of the timecard. See [TimecardStatus](#type-timecardstatus) for possible values One of: OPEN, CLOSED |
status (anyOf 2) | null | Alternative | |
team_member_id | string | Required within parent | The ID of the [team member](entity:TeamMember) this timecard belongs to. Minimum length: 1 |
timezone | JSON | Optional | |
timezone (anyOf 1) | string | Alternative | **Read only** The time zone calculated from the location based on the `location_id`, provided as a convenience value. Format: the IANA time zone database identifier for the location time zone. |
timezone (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp of when the timecard was last updated, in RFC 3339 format presented as UTC. Read only: true |
version | integer | Optional | **Read only** The current version of the timecard, which is incremented with each update. This field is used for [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control to ensure that requests don't overwrite data from another request. |
wage | JSON | Optional | |
wage (anyOf 1) | Model | Alternative | Expand Create Timecard — request body — body timecard wage hourly rate, job id, tip eligible, title Job and pay related information. If the wage is not set on create, it defaults to a wage of zero. If the title is not set on create, it defaults to the name of the role the team member is assigned to, if any. |
wage (anyOf 2) | null | Alternative |
Referenced models: Get Shift — response body — shift breaks array item, Create Payment — request body — body tip money, Create Timecard — request body — body timecard wage hourly rate, job id, tip eligible, title
Create Timecard — request body — body timecard wage hourly rate, job id, tip eligible, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The hourly wage rate used to compensate a team member for a [timecard](entity:Timecard). |
hourly_rate | JSON | Optional | |
hourly_rate (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money Can be a custom-set hourly wage or the calculated effective hourly wage based on the annual wage and hours worked per week. |
hourly_rate (anyOf 2) | null | Alternative | |
job_id | string | Optional | The ID of the [job](entity:Job) performed for this timecard. Square labor-reporting UIs might group timecards together by ID. Read only: true |
tip_eligible | JSON | Optional | |
tip_eligible (anyOf 1) | boolean | Alternative | Whether team members are eligible for tips when working this job. |
tip_eligible (anyOf 2) | null | Alternative | |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The name of the job performed during this timecard. |
title (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Timecard — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to create a `Timecard`. The response contains the created `Timecard` object and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
timecard | Model | Optional | Expand Create Timecard — response body — timecard The `Timecard` that was created on the request. |
Referenced models: Get Shift — response body — errors item, Create Timecard — response body — timecard
Create Timecard — response body — timecard
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A record of the hourly rate, start time, and end time of a single timecard (shift) for a team member. This might include a record of the start and end times of breaks taken during the shift. |
breaks | JSON | Optional | |
breaks (anyOf 1) | array | Alternative | A list of all the paid or unpaid breaks that were taken during this timecard. |
breaks (anyOf 1)[] | Model | Each item | Expand Get Shift — response body — shift breaks array item |
breaks (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp of when the timecard was created, in RFC 3339 format presented as UTC. Read only: true |
declared_cash_tip_money | JSON | Optional | |
declared_cash_tip_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The cash tips declared by the team member for this timecard. |
declared_cash_tip_money (anyOf 2) | null | Alternative | |
end_at | JSON | Optional | |
end_at (anyOf 1) | string | Alternative | The end time of the timecard, in RFC 3339 format and shifted to the location timezone + offset. Precision up to the minute is respected; seconds are truncated. |
end_at (anyOf 2) | null | Alternative | |
id | string | Optional | **Read only** The Square-issued UUID for this object. Maximum length: 255 |
location_id | string | Required within parent | The ID of the [location](entity:Location) for this timecard. The location should be based on where the team member clocked in. Minimum length: 1 |
start_at | string | Required within parent | The start time of the timecard, in RFC 3339 format and shifted to the location timezone + offset. Precision up to the minute is respected; seconds are truncated. Minimum length: 1 |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | **Read only** Enumerates the possible status of a [timecard](entity:Timecard). Describes the working state of the timecard. See [TimecardStatus](#type-timecardstatus) for possible values Known values: OPEN, CLOSED |
status (anyOf 2) | null | Alternative | |
team_member_id | string | Required within parent | The ID of the [team member](entity:TeamMember) this timecard belongs to. Minimum length: 1 |
timezone | JSON | Optional | |
timezone (anyOf 1) | string | Alternative | **Read only** The time zone calculated from the location based on the `location_id`, provided as a convenience value. Format: the IANA time zone database identifier for the location time zone. |
timezone (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp of when the timecard was last updated, in RFC 3339 format presented as UTC. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | **Read only** The current version of the timecard, which is incremented with each update. This field is used for [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control to ensure that requests don't overwrite data from another request. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
wage | JSON | Optional | |
wage (anyOf 1) | Model | Alternative | Expand Create Timecard — response body — timecard wage hourly rate, job id, tip eligible, title Job and pay related information. If the wage is not set on create, it defaults to a wage of zero. If the title is not set on create, it defaults to the name of the role the team member is assigned to, if any. |
wage (anyOf 2) | null | Alternative |
Referenced models: Get Shift — response body — shift breaks array item, Pay Order — response body — order total money, Create Timecard — response body — timecard wage hourly rate, job id, tip eligible, title
Create Timecard — response body — timecard wage hourly rate, job id, tip eligible, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The hourly wage rate used to compensate a team member for a [timecard](entity:Timecard). |
hourly_rate | JSON | Optional | |
hourly_rate (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money Can be a custom-set hourly wage or the calculated effective hourly wage based on the annual wage and hours worked per week. |
hourly_rate (anyOf 2) | null | Alternative | |
job_id | string | Optional | The ID of the [job](entity:Job) performed for this timecard. Square labor-reporting UIs might group timecards together by ID. Read only: true |
tip_eligible | JSON | Optional | |
tip_eligible (anyOf 1) | boolean | Alternative | Whether team members are eligible for tips when working this job. |
tip_eligible (anyOf 2) | null | Alternative | |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The name of the job performed during this timecard. |
title (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Delete Break Type — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to delete a `BreakType`. The response might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any 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
Delete Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to delete a `Shift`. The response might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any 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
Delete Timecard — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to delete a `Timecard`. The response might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any 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
Get Break Type — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to get a `BreakType`. The response contains the requested `BreakType` objects and might contain a set of `Error` objects if the request resulted in errors. |
break_type | Model | Optional | Expand Get Break Type — response body — break type The response object. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Break Type — response body — break type, Get Shift — response body — errors item
Get Break Type — response body — break type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A template for a type of [break](entity:Break) that can be added to a [timecard](entity:Timecard), including the expected duration and paid status. |
break_name | string | Required within parent | A human-readable name for this type of break. The name is displayed to team members in Square products. Minimum length: 1 |
created_at | string | Optional | A read-only timestamp in RFC 3339 format. Read only: true |
expected_duration | string | Required within parent | Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of this break. Precision less than minutes is truncated. Example for break expected duration of 15 minutes: PT15M Minimum length: 1 |
id | string | Optional | The UUID for this object. Maximum length: 255 |
is_paid | boolean | Required within parent | Whether this break counts towards time worked for compensation purposes. |
location_id | string | Required within parent | The ID of the business location this type of break applies to. Minimum length: 1 |
updated_at | string | Optional | A read-only timestamp in RFC 3339 format. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If a value is not provided, Square's servers execute a "blind" write; potentially overwriting another writer's data. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Get Employee Wage — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A response to a request to get an `EmployeeWage`. The response contains the requested `EmployeeWage` objects and might contain a set of `Error` objects if the request resulted in errors. |
employee_wage | Model | Optional | Expand Get Employee Wage — response body — employee wage The requested `EmployeeWage` object. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Employee Wage — response body — employee wage, Get Shift — response body — errors item
Get Employee Wage — response body — employee wage
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The hourly wage rate that an employee earns on a `Shift` for doing the job specified by the `title` property of this object. Deprecated at version 2020-08-26. Use [TeamMemberWage](entity:TeamMemberWage). |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The `Employee` that this wage is assigned to. |
employee_id (anyOf 2) | null | Alternative | |
hourly_rate | JSON | Optional | |
hourly_rate (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money Can be a custom-set hourly wage or the calculated effective hourly wage based on the annual wage and hours worked per week. |
hourly_rate (anyOf 2) | null | Alternative | |
id | string | Optional | The UUID for this object. |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The job title that this wage relates to. |
title (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Get Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A response to a request to get a `Shift`. The response contains the requested `Shift` object and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
shift | Model | Optional | Expand Get Shift — response body — shift The requested `Shift`. |
Referenced models: Get Shift — response body — errors item, Get Shift — response body — shift
Get Shift — response body — errors item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an error encountered during a request to the Connect API. See [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information. |
category | string | Required within parent | Indicates which high-level category of error has occurred during a request to the Connect API. The high-level category for the error. See [ErrorCategory](#type-errorcategory) for possible values Known values: API_ERROR, AUTHENTICATION_ERROR, INVALID_REQUEST_ERROR, RATE_LIMIT_ERROR, PAYMENT_METHOD_ERROR, REFUND_ERROR, MERCHANT_SUBSCRIPTION_ERROR, EXTERNAL_VENDOR_ERROR |
code | Model | Required within parent | Expand Get Shift — response body — errors item code The specific code of the error. See [ErrorCode](#type-errorcode) for possible values |
detail | string | Optional | A human-readable description of the error for debugging purposes. |
field | string | Optional | The name of the field provided in the original request (if any) that the error pertains to. |
Referenced models: Get Shift — response body — errors item code
Get Shift — response body — errors item code
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Indicates the specific error that occurred during a request to a Square API. Known values: INTERNAL_SERVER_ERROR, UNAUTHORIZED, ACCESS_TOKEN_EXPIRED, ACCESS_TOKEN_REVOKED, CLIENT_DISABLED, FORBIDDEN, INSUFFICIENT_SCOPES, APPLICATION_DISABLED, V1_APPLICATION, V1_ACCESS_TOKEN, CARD_PROCESSING_NOT_ENABLED, MERCHANT_SUBSCRIPTION_NOT_FOUND, BAD_REQUEST, MISSING_REQUIRED_PARAMETER, INCORRECT_TYPE, INVALID_TIME, INVALID_TIME_RANGE, INVALID_VALUE, INVALID_CURSOR, UNKNOWN_QUERY_PARAMETER, CONFLICTING_PARAMETERS, EXPECTED_JSON_BODY, INVALID_SORT_ORDER, VALUE_REGEX_MISMATCH, VALUE_TOO_SHORT, VALUE_TOO_LONG, VALUE_TOO_LOW, VALUE_TOO_HIGH, VALUE_EMPTY, ARRAY_LENGTH_TOO_LONG, ARRAY_LENGTH_TOO_SHORT, ARRAY_EMPTY, EXPECTED_BOOLEAN, EXPECTED_INTEGER, EXPECTED_FLOAT, EXPECTED_STRING, EXPECTED_OBJECT, EXPECTED_ARRAY, EXPECTED_MAP, EXPECTED_BASE64_ENCODED_BYTE_ARRAY, INVALID_ARRAY_VALUE, INVALID_ENUM_VALUE, INVALID_CONTENT_TYPE, INVALID_FORM_VALUE, CUSTOMER_NOT_FOUND, ONE_INSTRUMENT_EXPECTED, NO_FIELDS_SET, TOO_MANY_MAP_ENTRIES, MAP_KEY_LENGTH_TOO_SHORT, MAP_KEY_LENGTH_TOO_LONG, CUSTOMER_MISSING_NAME, CUSTOMER_MISSING_EMAIL, INVALID_PAUSE_LENGTH, INVALID_DATE, UNSUPPORTED_COUNTRY, UNSUPPORTED_CURRENCY, APPLE_TTP_PIN_TOKEN, CARD_EXPIRED, INVALID_EXPIRATION, INVALID_EXPIRATION_YEAR, INVALID_EXPIRATION_DATE, UNSUPPORTED_CARD_BRAND, UNSUPPORTED_ENTRY_METHOD, INVALID_ENCRYPTED_CARD, INVALID_CARD, PAYMENT_AMOUNT_MISMATCH, GENERIC_DECLINE, CVV_FAILURE, ADDRESS_VERIFICATION_FAILURE, INVALID_ACCOUNT, CURRENCY_MISMATCH, INSUFFICIENT_FUNDS, INSUFFICIENT_PERMISSIONS, CARDHOLDER_INSUFFICIENT_PERMISSIONS, INVALID_LOCATION, TRANSACTION_LIMIT, VOICE_FAILURE, PAN_FAILURE, EXPIRATION_FAILURE, CARD_NOT_SUPPORTED, READER_DECLINED, INVALID_PIN, MISSING_PIN, MISSING_ACCOUNT_TYPE, INVALID_POSTAL_CODE, INVALID_FEES, MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED, PAYMENT_LIMIT_EXCEEDED, GIFT_CARD_AVAILABLE_AMOUNT, ACCOUNT_UNUSABLE, BUYER_REFUSED_PAYMENT, DELAYED_TRANSACTION_EXPIRED, DELAYED_TRANSACTION_CANCELED, DELAYED_TRANSACTION_CAPTURED, DELAYED_TRANSACTION_FAILED, CARD_TOKEN_EXPIRED, CARD_TOKEN_USED, AMOUNT_TOO_HIGH, AMOUNT_TOO_LOW, UNSUPPORTED_INSTRUMENT_TYPE, REFUND_AMOUNT_INVALID, REFUND_ALREADY_PENDING, PAYMENT_NOT_REFUNDABLE, PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE, REFUND_ERROR_PAYMENT_NEEDS_COMPLETION, REFUND_DECLINED, INSUFFICIENT_PERMISSIONS_FOR_REFUND, INVALID_CARD_DATA, SOURCE_USED, SOURCE_EXPIRED, UNSUPPORTED_LOYALTY_REWARD_TIER, LOCATION_MISMATCH, ORDER_UNPAID_NOT_RETURNABLE, PARTIAL_PAYMENT_DELAY_CAPTURE_NOT_SUPPORTED, IDEMPOTENCY_KEY_REUSED, UNEXPECTED_VALUE, SANDBOX_NOT_SUPPORTED, INVALID_EMAIL_ADDRESS, INVALID_PHONE_NUMBER, CHECKOUT_EXPIRED, BAD_CERTIFICATE, INVALID_SQUARE_VERSION_FORMAT, API_VERSION_INCOMPATIBLE, CARD_PRESENCE_REQUIRED, UNSUPPORTED_SOURCE_TYPE, CARD_MISMATCH, PLAID_ERROR, PLAID_ERROR_ITEM_LOGIN_REQUIRED, PLAID_ERROR_RATE_LIMIT, PLAID_ERROR_INVALID_ACCESS_TOKEN, PLAID_ERROR_INVALID_ACCOUNT_ID, PLAID_ERROR_NO_ACCOUNTS, PLAID_ERROR_ITEM_NOT_FOUND, PLAID_ERROR_INSUFFICIENT_CREDENTIALS, PLAID_ERROR_ITEM_NOT_SUPPORTED, PLAID_ERROR_PRODUCT_NOT_READY, PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET, CARD_DECLINED, VERIFY_CVV_FAILURE, VERIFY_AVS_FAILURE, CARD_DECLINED_CALL_ISSUER, CARD_DECLINED_VERIFICATION_REQUIRED, BAD_EXPIRATION, CHIP_INSERTION_REQUIRED, ALLOWABLE_PIN_TRIES_EXCEEDED, RESERVATION_DECLINED, UNKNOWN_BODY_PARAMETER, CART_INELIGIBLE_FOR_EBT, NOT_FOUND, APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND, METHOD_NOT_ALLOWED, NOT_ACCEPTABLE, REQUEST_TIMEOUT, CONFLICT, GONE, REQUEST_ENTITY_TOO_LARGE, UNSUPPORTED_MEDIA_TYPE, UNPROCESSABLE_ENTITY, RATE_LIMITED, NOT_IMPLEMENTED, BAD_GATEWAY, SERVICE_UNAVAILABLE, TEMPORARY_ERROR, GATEWAY_TIMEOUT |
Get Shift — response body — shift
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A record of the hourly rate, start, and end times for a single work shift for an employee. This might include a record of the start and end times for breaks taken during the shift. Deprecated at Square API version 2025-05-21. Replaced by [Timecard](entity:Timecard). See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
breaks | JSON | Optional | |
breaks (anyOf 1) | array | Alternative | A list of all the paid or unpaid breaks that were taken during this shift. |
breaks (anyOf 1)[] | Model | Each item | Expand Get Shift — response body — shift breaks array item |
breaks (anyOf 2) | null | Alternative | |
created_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
declared_cash_tip_money | JSON | Optional | |
declared_cash_tip_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The tips declared by the team member for the shift. |
declared_cash_tip_money (anyOf 2) | null | Alternative | |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The ID of the employee this shift belongs to. DEPRECATED at version 2020-08-26. Use `team_member_id` instead. |
employee_id (anyOf 2) | null | Alternative | |
end_at | JSON | Optional | |
end_at (anyOf 1) | string | Alternative | RFC 3339; shifted to the timezone + offset. Precision up to the minute is respected; seconds are truncated. |
end_at (anyOf 2) | null | Alternative | |
id | string | Optional | The UUID for this object. Maximum length: 255 |
location_id | string | Required within parent | The ID of the location this shift occurred at. The location should be based on where the employee clocked in. Minimum length: 1 |
start_at | string | Required within parent | RFC 3339; shifted to the location timezone + offset. Precision up to the minute is respected; seconds are truncated. Minimum length: 1 |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Enumerates the possible status of a `Shift`. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). Describes the working state of the current `Shift`. See [ShiftStatus](#type-shiftstatus) for possible values Known values: OPEN, CLOSED |
status (anyOf 2) | null | Alternative | |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The ID of the team member this shift belongs to. Replaced `employee_id` at version "2020-08-26". |
team_member_id (anyOf 2) | null | Alternative | |
timezone | JSON | Optional | |
timezone (anyOf 1) | string | Alternative | The read-only convenience value that is calculated from the location based on the `location_id`. Format: the IANA timezone database identifier for the location timezone. |
timezone (anyOf 2) | null | Alternative | |
updated_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If not provided, Square executes a blind write; potentially overwriting data from another write. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
wage | JSON | Optional | |
wage (anyOf 1) | Model | Alternative | Expand Get Shift — response body — shift wage hourly rate, job id, tip eligible, title Job and pay related information. If the wage is not set on create, it defaults to a wage of zero. If the title is not set on create, it defaults to the name of the role the employee is assigned to, if any. |
wage (anyOf 2) | null | Alternative |
Referenced models: Get Shift — response body — shift breaks array item, Pay Order — response body — order total money, Get Shift — response body — shift wage hourly rate, job id, tip eligible, title
Get Shift — response body — shift breaks array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A record of a team member's break on a [timecard](entity:Timecard). |
break_type_id | string | Required within parent | The [BreakType](entity:BreakType) that this break was templated on. Minimum length: 1 |
end_at | JSON | Optional | |
end_at (anyOf 1) | string | Alternative | RFC 3339; follows the same timezone information as the [timecard](entity:Timecard). Precision up to the minute is respected; seconds are truncated. |
end_at (anyOf 2) | null | Alternative | |
expected_duration | string | Required within parent | Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of the break. Example for break expected duration of 15 minutes: PT15M Minimum length: 1 |
id | string | Optional | The UUID for this object. |
is_paid | boolean | Required within parent | Whether this break counts towards time worked for compensation purposes. |
name | string | Required within parent | A human-readable name. Minimum length: 1 |
start_at | string | Required within parent | RFC 3339; follows the same timezone information as the [timecard](entity:Timecard). Precision up to the minute is respected; seconds are truncated. Minimum length: 1 |
Get Shift — response body — shift wage hourly rate, job id, tip eligible, title
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The hourly wage rate used to compensate an employee for this shift. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
hourly_rate | JSON | Optional | |
hourly_rate (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money Can be a custom-set hourly wage or the calculated effective hourly wage based on the annual wage and hours worked per week. |
hourly_rate (anyOf 2) | null | Alternative | |
job_id | string | Optional | The id of the job performed during this shift. Square labor-reporting UIs might group shifts together by id. Read only: true |
tip_eligible | JSON | Optional | |
tip_eligible (anyOf 1) | boolean | Alternative | Whether team members are eligible for tips when working this job. |
tip_eligible (anyOf 2) | null | Alternative | |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The name of the job performed during this shift. |
title (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Get Team Member Wage — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A response to a request to get a `TeamMemberWage`. The response contains the requested `TeamMemberWage` objects and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
team_member_wage | Model | Optional | Expand Get Team Member Wage — response body — team member wage The requested `TeamMemberWage` object. |
Referenced models: Get Shift — response body — errors item, Get Team Member Wage — response body — team member wage
Get Team Member Wage — response body — team member wage
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Job and wage information for a [team member](entity:TeamMember). This convenience object provides details needed to specify the `wage` field for a [timecard](entity:Timecard). |
hourly_rate | JSON | Optional | |
hourly_rate (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money Can be a custom-set hourly wage or the calculated effective hourly wage based on the annual wage and hours worked per week. |
hourly_rate (anyOf 2) | null | Alternative | |
id | string | Optional | The UUID for this object. |
job_id | JSON | Optional | |
job_id (anyOf 1) | string | Alternative | An identifier for the [job](entity:Job) that this wage relates to. |
job_id (anyOf 2) | null | Alternative | |
team_member_id | JSON | Optional | |
team_member_id (anyOf 1) | string | Alternative | The `TeamMember` that this wage is assigned to. |
team_member_id (anyOf 2) | null | Alternative | |
tip_eligible | JSON | Optional | |
tip_eligible (anyOf 1) | boolean | Alternative | Whether team members are eligible for tips when working this job. |
tip_eligible (anyOf 2) | null | Alternative | |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The job title that this wage relates to. |
title (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
List Break Types — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request for a set of `BreakType` objects. The response contains the requested `BreakType` objects and might contain a set of `Error` objects if the request resulted in errors. |
break_types | array | Optional | A page of `BreakType` results. |
break_types[] | Model | Each item | Expand Get Break Type — response body — break type |
cursor | string | Optional | The value supplied in the subsequent request to fetch the next page of `BreakType` results. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Break Type — response body — break type, Get Shift — response body — errors item
List Employee Wages — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request for a set of `EmployeeWage` objects. The response contains a set of `EmployeeWage` objects. |
cursor | string | Optional | The value supplied in the subsequent request to fetch the next page of `EmployeeWage` results. |
employee_wages | array | Optional | A page of `EmployeeWage` results. |
employee_wages[] | Model | Each item | Expand Get Employee Wage — response body — employee wage |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Employee Wage — response body — employee wage, Get Shift — response body — errors item
List Team Member Wages — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request for a set of `TeamMemberWage` objects. The response contains a set of `TeamMemberWage` objects. |
cursor | string | Optional | The value supplied in the subsequent request to fetch the next page of `TeamMemberWage` results. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
team_member_wages | array | Optional | A page of `TeamMemberWage` results. |
team_member_wages[] | Model | Each item | Expand Get Team Member Wage — response body — team member wage |
Referenced models: Get Shift — response body — errors item, Get Team Member Wage — response body — team member wage
List Workweek Configs — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request for a set of `WorkweekConfig` objects. The response contains the requested `WorkweekConfig` objects and might contain a set of `Error` objects if the request resulted in errors. |
cursor | string | Optional | The value supplied in the subsequent request to fetch the next page of `WorkweekConfig` results. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
workweek_configs | array | Optional | A page of `WorkweekConfig` results. |
workweek_configs[] | Model | Each item | Expand Update Workweek Config — response body — workweek config |
Referenced models: Get Shift — response body — errors item, Update Workweek Config — response body — workweek config
Publish Scheduled Shift — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [PublishScheduledShift](api-endpoint:Labor-PublishScheduledShift) request. |
idempotency_key | string | Required within parent | A unique identifier for the `PublishScheduledShift` request, used to ensure the [idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) of the operation. Maximum length: 128 Minimum length: 1 |
scheduled_shift_notification_audience | JSON | Optional | |
scheduled_shift_notification_audience (anyOf 1) | string | Alternative | Indicates whether Square sends an email notification to team members when a scheduled shift is published and which team members receive the notification. Indicates whether Square should send an email notification to team members and which team members should receive the notification. The default value is `AFFECTED`. See [ScheduledShiftNotificationAudience](#type-scheduledshiftnotificationaudience) for possible values One of: ALL, AFFECTED, NONE |
scheduled_shift_notification_audience (anyOf 2) | null | Alternative | |
version | integer | Optional | The current version of the scheduled shift, used to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control. If the provided version doesn't match the server version, the request fails. If omitted, Square executes a blind write, potentially overwriting data from another publish request. |
Publish Scheduled Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [PublishScheduledShift](api-endpoint:Labor-PublishScheduledShift) response. Either `scheduled_shift` or `errors` is present in the response. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
scheduled_shift | Model | Optional | Expand Create Scheduled Shift — response body — scheduled shift The published scheduled shift. |
Referenced models: Get Shift — response body — errors item, Create Scheduled Shift — response body — scheduled shift
Retrieve Scheduled Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [RetrieveScheduledShift](api-endpoint:Labor-RetrieveScheduledShift) response. Either `scheduled_shift` or `errors` is present in the response. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
scheduled_shift | Model | Optional | Expand Create Scheduled Shift — response body — scheduled shift The requested scheduled shift. |
Referenced models: Get Shift — response body — errors item, Create Scheduled Shift — response body — scheduled shift
Retrieve Timecard — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A response to a request to get a `Timecard`. The response contains the requested `Timecard` object and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
timecard | Model | Optional | Expand Create Timecard — response body — timecard The requested `Timecard`. |
Referenced models: Get Shift — response body — errors item, Create Timecard — response body — timecard
Search Scheduled Shifts — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [SearchScheduledShift](api-endpoint:Labor-SearchScheduledShift) request. |
cursor | string | Optional | The pagination cursor returned by the previous call to this endpoint. Provide this cursor to retrieve the next page of results for your original request. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
limit | integer | Optional | The maximum number of results to return in a single response page. The default value is 50. Maximum: 50 Minimum: 1 |
query | Model | Optional | Expand Search Scheduled Shifts — request body — body query Query conditions used to filter and sort the results. |
Referenced models: Search Scheduled Shifts — request body — body query
Search Scheduled Shifts — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents filter and sort criteria for the `query` field in a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) request. |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Scheduled Shifts — request body — body query filter assignment status, end, location ids, scheduled shift statuses, start, team member ids, workday Filtering options for the query. |
filter (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand Search Scheduled Shifts — request body — body query sort field, order Sorting options for the query. |
sort (anyOf 2) | null | Alternative |
Referenced models: Search Scheduled Shifts — request body — body query filter assignment status, end, location ids, scheduled shift statuses, start, team member ids, workday, Search Scheduled Shifts — request body — body query sort field, order
Search Scheduled Shifts — request body — body query filter assignment status, end, location ids, scheduled shift statuses, start, team member ids, workday
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines filter criteria for a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) request. Multiple filters in a query are combined as an `AND` operation. |
assignment_status | JSON | Optional | |
assignment_status (anyOf 1) | string | Alternative | Defines valid values for the `assignment_status` filter in a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) request. Assignment status is based on the `draft_shift_details.team_member_id` and `published_shift_details.team_member_id` fields of the scheduled shift. Return shifts based on whether a team member is assigned. A shift is assigned if the `team_member_id` field is populated in the `draft_shift_details` or `published_shift details` field of the shift. To return only draft or published shifts, include the `scheduled_shift_statuses` filter in the query. See [ScheduledShiftFilterAssignmentStatus](#type-scheduledshiftfilterassignmentstatus) for possible values One of: ASSIGNED, UNASSIGNED |
assignment_status (anyOf 2) | null | Alternative | |
end | JSON | Optional | |
end (anyOf 1) | Model | Alternative | Expand Search Availability — request body — body query filter start at range Return shifts whose `end_at` time is within the specified time range (inclusive). |
end (anyOf 2) | null | Alternative | |
location_ids | JSON | Optional | |
location_ids (anyOf 1) | array | Alternative | Return shifts for the specified locations. When omitted, shifts for all locations are returned. If needed, call [ListLocations](api-endpoint:Locations-ListLocations) to get location IDs. |
location_ids (anyOf 1)[] | string | Each item | |
location_ids (anyOf 2) | null | Alternative | |
scheduled_shift_statuses | JSON | Optional | |
scheduled_shift_statuses (anyOf 1) | array | Alternative | Return shifts based on the draft or published status of the shift. A shift is published if the `published_shift_details` field is present. Note that shifts with `draft_shift_details.is_deleted` set to `true` are ignored with the `DRAFT` filter. See [ScheduledShiftFilterScheduledShiftStatus](#type-scheduledshiftfilterscheduledshiftstatus) for possible values |
scheduled_shift_statuses (anyOf 1)[] | string | Each item | Defines valid values for the `scheduled_shift_statuses` filter in a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) request. One of: DRAFT, PUBLISHED |
scheduled_shift_statuses (anyOf 2) | null | Alternative | |
start | JSON | Optional | |
start (anyOf 1) | Model | Alternative | Expand Search Availability — request body — body query filter start at range Return shifts whose `start_at` time is within the specified time range (inclusive). |
start (anyOf 2) | null | Alternative | |
team_member_ids | JSON | Optional | |
team_member_ids (anyOf 1) | array | Alternative | Return shifts assigned to specified team members. If needed, call [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers) to get team member IDs. To return only the shifts assigned to the specified team members, include the `assignment_status` filter in the query. Otherwise, all unassigned shifts are returned along with shifts assigned to the specified team members. |
team_member_ids (anyOf 1)[] | string | Each item | |
team_member_ids (anyOf 2) | null | Alternative | |
workday | JSON | Optional | |
workday (anyOf 1) | Model | Alternative | Expand Search Scheduled Shifts — request body — body query filter assignment status, end, location ids, scheduled shift statuses, start, team member ids, workday workday date range, default timezone, match scheduled shifts by Return shifts based on a workday date range. |
workday (anyOf 2) | null | Alternative |
Referenced models: Search Scheduled Shifts — request body — body query filter assignment status, end, location ids, scheduled shift statuses, start, team member ids, workday workday date range, default timezone, match scheduled shifts by, Search Availability — request body — body query filter start at range
Search Scheduled Shifts — request body — body query filter assignment status, end, location ids, scheduled shift statuses, start, team member ids, workday workday date range, default timezone, match scheduled shifts by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A `ScheduledShift` search query filter parameter that sets a range of days that a `Shift` must start or end in before passing the filter condition. |
date_range | JSON | Optional | |
date_range (anyOf 1) | Model | Alternative | Expand Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday workday date range, default timezone, match timecards by date range end date, start date Dates for fetching the scheduled shifts. |
date_range (anyOf 2) | null | Alternative | |
default_timezone | JSON | Optional | |
default_timezone (anyOf 1) | string | Alternative | Location-specific timezones convert workdays to datetime filters. Every location included in the query must have a timezone or this field must be provided as a fallback. Format: the IANA timezone database identifier for the relevant timezone. |
default_timezone (anyOf 2) | null | Alternative | |
match_scheduled_shifts_by | JSON | Optional | |
match_scheduled_shifts_by (anyOf 1) | string | Alternative | Defines the logic used to apply a workday filter. The strategy on which the dates are applied. See [ScheduledShiftWorkdayMatcher](#type-scheduledshiftworkdaymatcher) for possible values One of: START_AT, END_AT, INTERSECTION |
match_scheduled_shifts_by (anyOf 2) | null | Alternative |
Search Scheduled Shifts — request body — body query sort field, order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines sort criteria for a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) request. |
field | JSON | Optional | |
field (anyOf 1) | string | Alternative | Defines valid values for the `field` sort setting in a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) request. The field to sort on. The default value is `START_AT`. See [ScheduledShiftSortField](#type-scheduledshiftsortfield) for possible values One of: START_AT, END_AT, CREATED_AT, UPDATED_AT |
field (anyOf 2) | null | Alternative | |
order | JSON | Optional | |
order (anyOf 1) | string | Alternative | The order (e.g., chronological or alphabetical) in which results from a request are returned. The order in which results are returned. The default value is `ASC`. See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
order (anyOf 2) | null | Alternative |
Search Scheduled Shifts — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [SearchScheduledShifts](api-endpoint:Labor-SearchScheduledShifts) response. Either `scheduled_shifts` or `errors` is present in the response. |
cursor | string | Optional | The pagination cursor used to retrieve the next page of results. This field is present only if additional results are available. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
scheduled_shifts | array | Optional | A paginated list of scheduled shifts that match the query conditions. |
scheduled_shifts[] | Model | Each item | Expand Create Scheduled Shift — response body — scheduled shift |
Referenced models: Get Shift — response body — errors item, Create Scheduled Shift — response body — scheduled shift
Search Shifts — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request for a filtered and sorted set of `Shift` objects. |
cursor | string | Optional | An opaque cursor for fetching the next page. |
limit | integer | Optional | The number of resources in a page (200 by default). Maximum: 200 Minimum: 1 |
query | Model | Optional | Expand Search Shifts — request body — body query Query filters. |
Referenced models: Search Shifts — request body — body query
Search Shifts — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The parameters of a `Shift` search query, which includes filter and sort options. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Shifts — request body — body query filter employee ids, end, location ids, start, status, team member ids, workday Query filter options. |
filter (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand Search Shifts — request body — body query sort Sets the sort order of search results Sort order details. |
sort (anyOf 2) | null | Alternative |
Referenced models: Search Shifts — request body — body query filter employee ids, end, location ids, start, status, team member ids, workday, Search Shifts — request body — body query sort Sets the sort order of search results
Search Shifts — request body — body query filter employee ids, end, location ids, start, status, team member ids, workday
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines a filter used in a search for `Shift` records. `AND` logic is used by Square's servers to apply each filter property specified. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
employee_ids | JSON | Optional | |
employee_ids (anyOf 1) | array | Alternative | Fetch shifts for the specified employees. DEPRECATED at version 2020-08-26. Use `team_member_ids` instead. |
employee_ids (anyOf 1)[] | string | Each item | |
employee_ids (anyOf 2) | null | Alternative | |
end | JSON | Optional | |
end (anyOf 1) | Model | Alternative | Expand Search Availability — request body — body query filter start at range Fetch the `Shift` instances that end in the time range - Inclusive. |
end (anyOf 2) | null | Alternative | |
location_ids | JSON | Optional | |
location_ids (anyOf 1) | array | Alternative | Fetch shifts for the specified location. |
location_ids (anyOf 1)[] | string | Each item | |
location_ids (anyOf 2) | null | Alternative | |
start | JSON | Optional | |
start (anyOf 1) | Model | Alternative | Expand Search Availability — request body — body query filter start at range Fetch `Shift` instances that start in the time range - Inclusive. |
start (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Specifies the `status` of `Shift` records to be returned. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). Fetch a `Shift` instance by `Shift.status`. See [ShiftFilterStatus](#type-shiftfilterstatus) for possible values One of: OPEN, CLOSED |
status (anyOf 2) | null | Alternative | |
team_member_ids | JSON | Optional | |
team_member_ids (anyOf 1) | array | Alternative | Fetch shifts for the specified team members. Replaced `employee_ids` at version "2020-08-26". |
team_member_ids (anyOf 1)[] | string | Each item | |
team_member_ids (anyOf 2) | null | Alternative | |
workday | JSON | Optional | |
workday (anyOf 1) | Model | Alternative | Expand Search Shifts — request body — body query filter employee ids, end, location ids, start, status, team member ids, workday workday date range, default timezone, match shifts by Fetch the `Shift` instances based on the workday date range. |
workday (anyOf 2) | null | Alternative |
Referenced models: Search Shifts — request body — body query filter employee ids, end, location ids, start, status, team member ids, workday workday date range, default timezone, match shifts by, Search Availability — request body — body query filter start at range
Search Shifts — request body — body query filter employee ids, end, location ids, start, status, team member ids, workday workday date range, default timezone, match shifts by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A `Shift` search query filter parameter that sets a range of days that a `Shift` must start or end in before passing the filter condition. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
date_range | JSON | Optional | |
date_range (anyOf 1) | Model | Alternative | Expand Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday workday date range, default timezone, match timecards by date range end date, start date Dates for fetching the shifts. |
date_range (anyOf 2) | null | Alternative | |
default_timezone | JSON | Optional | |
default_timezone (anyOf 1) | string | Alternative | Location-specific timezones convert workdays to datetime filters. Every location included in the query must have a timezone or this field must be provided as a fallback. Format: the IANA timezone database identifier for the relevant timezone. |
default_timezone (anyOf 2) | null | Alternative | |
match_shifts_by | JSON | Optional | |
match_shifts_by (anyOf 1) | string | Alternative | Defines the logic used to apply a workday filter. The strategy on which the dates are applied. See [ShiftWorkdayMatcher](#type-shiftworkdaymatcher) for possible values One of: START_AT, END_AT, INTERSECTION |
match_shifts_by (anyOf 2) | null | Alternative |
Search Shifts — request body — body query sort Sets the sort order of search results
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Sets the sort order of search results. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). |
field | JSON | Optional | |
field (anyOf 1) | string | Alternative | Enumerates the `Shift` fields to sort on. Deprecated at Square API version 2025-05-21. See the [migration notes](https://developer.squareup.com/docs/labor-api/what-it-does#migration-notes). The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values One of: START_AT, END_AT, CREATED_AT, UPDATED_AT |
field (anyOf 2) | null | Alternative | |
order | JSON | Optional | |
order (anyOf 1) | string | Alternative | The order (e.g., chronological or alphabetical) in which results from a request are returned. The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
order (anyOf 2) | null | Alternative |
Search Shifts — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request for `Shift` objects. The response contains the requested `Shift` objects and might contain a set of `Error` objects if the request resulted in errors. |
cursor | string | Optional | An opaque cursor for fetching the next page. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
shifts | array | Optional | Shifts. |
shifts[] | Model | Each item | Expand Get Shift — response body — shift |
Referenced models: Get Shift — response body — errors item, Get Shift — response body — shift
Search Timecards — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request for a filtered and sorted set of `Timecard` objects. |
cursor | string | Optional | An opaque cursor for fetching the next page. |
limit | integer | Optional | The number of resources in a page (200 by default). Maximum: 200 Minimum: 1 |
query | Model | Optional | Expand Search Timecards — request body — body query Query filters. |
Referenced models: Search Timecards — request body — body query
Search Timecards — request body — body query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The parameters of a `Timecard` search query, which includes filter and sort options. |
filter | JSON | Optional | |
filter (anyOf 1) | Model | Alternative | Expand Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday Query filter options. |
filter (anyOf 2) | null | Alternative | |
sort | JSON | Optional | |
sort (anyOf 1) | Model | Alternative | Expand Search Timecards — request body — body query sort Sets the sort order of search results Sort order details. |
sort (anyOf 2) | null | Alternative |
Referenced models: Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday, Search Timecards — request body — body query sort Sets the sort order of search results
Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines a filter used in a search for `Timecard` records. `AND` logic is used by Square's servers to apply each filter property specified. |
end | JSON | Optional | |
end (anyOf 1) | Model | Alternative | Expand Search Availability — request body — body query filter start at range Fetch the `Timecard` instances that end in the time range - Inclusive. |
end (anyOf 2) | null | Alternative | |
location_ids | JSON | Optional | |
location_ids (anyOf 1) | array | Alternative | Fetch timecards for the specified location. |
location_ids (anyOf 1)[] | string | Each item | |
location_ids (anyOf 2) | null | Alternative | |
start | JSON | Optional | |
start (anyOf 1) | Model | Alternative | Expand Search Availability — request body — body query filter start at range Fetch `Timecard` instances that start in the time range - Inclusive. |
start (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Specifies the `status` of `Timecard` records to be returned. Fetch a `Timecard` instance by `Timecard.status`. See [TimecardFilterStatus](#type-timecardfilterstatus) for possible values One of: OPEN, CLOSED |
status (anyOf 2) | null | Alternative | |
team_member_ids | JSON | Optional | |
team_member_ids (anyOf 1) | array | Alternative | Fetch timecards for the specified team members. |
team_member_ids (anyOf 1)[] | string | Each item | |
team_member_ids (anyOf 2) | null | Alternative | |
workday | JSON | Optional | |
workday (anyOf 1) | Model | Alternative | Expand Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday workday date range, default timezone, match timecards by Fetch the `Timecard` instances based on the workday date range. |
workday (anyOf 2) | null | Alternative |
Referenced models: Search Availability — request body — body query filter start at range, Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday workday date range, default timezone, match timecards by
Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday workday date range, default timezone, match timecards by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A `Timecard` search query filter parameter that sets a range of days that a `Timecard` must start or end in before passing the filter condition. |
date_range | JSON | Optional | |
date_range (anyOf 1) | Model | Alternative | Expand Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday workday date range, default timezone, match timecards by date range end date, start date Dates for fetching the timecards. |
date_range (anyOf 2) | null | Alternative | |
default_timezone | JSON | Optional | |
default_timezone (anyOf 1) | string | Alternative | Location-specific timezones convert workdays to datetime filters. Every location included in the query must have a timezone or this field must be provided as a fallback. Format: the IANA timezone database identifier for the relevant timezone. |
default_timezone (anyOf 2) | null | Alternative | |
match_timecards_by | JSON | Optional | |
match_timecards_by (anyOf 1) | string | Alternative | Defines the logic used to apply a workday filter. The strategy on which the dates are applied. See [TimecardWorkdayMatcher](#type-timecardworkdaymatcher) for possible values One of: START_AT, END_AT, INTERSECTION |
match_timecards_by (anyOf 2) | null | Alternative |
Search Timecards — request body — body query filter end, location ids, start, status, team member ids, workday workday date range, default timezone, match timecards by date range end date, start date
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A range defined by two dates. Used for filtering a query for Connect v2 objects that have date properties. |
end_date | JSON | Optional | |
end_date (anyOf 1) | string | Alternative | A string in `YYYY-MM-DD` format, such as `2017-10-31`, per the ISO 8601 extended format for calendar dates. The end of a date range (inclusive). |
end_date (anyOf 2) | null | Alternative | |
start_date | JSON | Optional | |
start_date (anyOf 1) | string | Alternative | A string in `YYYY-MM-DD` format, such as `2017-10-31`, per the ISO 8601 extended format for calendar dates. The beginning of a date range (inclusive). |
start_date (anyOf 2) | null | Alternative |
Search Timecards — request body — body query sort Sets the sort order of search results
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Sets the sort order of search results. |
field | JSON | Optional | |
field (anyOf 1) | string | Alternative | Enumerates the `Timecard` fields to sort on. The field to sort on. See [TimecardSortField](#type-timecardsortfield) for possible values One of: START_AT, END_AT, CREATED_AT, UPDATED_AT |
field (anyOf 2) | null | Alternative | |
order | JSON | Optional | |
order (anyOf 1) | string | Alternative | The order (e.g., chronological or alphabetical) in which results from a request are returned. The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values One of: DESC, ASC |
order (anyOf 2) | null | Alternative |
Search Timecards — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request for `Timecard` objects. The response contains the requested `Timecard` objects and might contain a set of `Error` objects if the request resulted in errors. |
cursor | string | Optional | An opaque cursor for fetching the next page. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
timecards | array | Optional | Timecards. |
timecards[] | Model | Each item | Expand Create Timecard — response body — timecard |
Referenced models: Get Shift — response body — errors item, Create Timecard — response body — timecard
Update Break Type — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request to update a `BreakType`. |
break_type | Model | Required within parent | Expand Create Break Type — request body — body break type The updated `BreakType`. |
Referenced models: Create Break Type — request body — body break type
Update Break Type — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A response to a request to update a `BreakType`. The response contains the requested `BreakType` objects and might contain a set of `Error` objects if the request resulted in errors. |
break_type | Model | Optional | Expand Get Break Type — response body — break type The response object. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Break Type — response body — break type, Get Shift — response body — errors item
Update Scheduled Shift — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
scheduled_shift | Model | Required within parent | Expand Create Scheduled Shift — request body — body scheduled shift The scheduled shift with any updates in the `draft_shift_details` field. If needed, call [ListLocations](api-endpoint:Locations-ListLocations) to get location IDs, [ListJobs](api-endpoint:Team-ListJobs) to get job IDs, and [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers) to get team member IDs and current job assignments. Updates made to `published_shift_details` are ignored. If provided, the `start_at` and `end_at` timestamps must be in the time zone + offset of the shift location specified in `location_id`. Example for Pacific Standard Time: 2024-10-31T12:30:00-08:00 To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control for the request, provide the current version of the shift in the `version` field. If the provided version doesn't match the server version, the request fails. If `version` is omitted, Square executes a blind write, potentially overwriting data from another publish request. |
Referenced models: Create Scheduled Shift — request body — body scheduled shift
Update Scheduled Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an [UpdateScheduledShift](api-endpoint:Labor-UpdateScheduledShift) response. Either `scheduled_shift` or `errors` is present in the response. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
scheduled_shift | Model | Optional | Expand Create Scheduled Shift — response body — scheduled shift The updated scheduled shift. To make the changes public, call [PublishScheduledShift](api-endpoint:Labor-PublishScheduledShift) or [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts). |
Referenced models: Get Shift — response body — errors item, Create Scheduled Shift — response body — scheduled shift
Update Shift — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request to update a `Shift` object. |
shift | Model | Required within parent | Expand Create Shift — request body — body shift The updated `Shift` object. |
Referenced models: Create Shift — request body — body shift
Update Shift — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to update a `Shift`. The response contains the updated `Shift` object and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
shift | Model | Optional | Expand Get Shift — response body — shift The updated `Shift`. |
Referenced models: Get Shift — response body — errors item, Get Shift — response body — shift
Update Timecard — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request to update a `Timecard` object. |
timecard | Model | Required within parent | Expand Create Timecard — request body — body timecard The updated `Timecard` object. |
Referenced models: Create Timecard — request body — body timecard
Update Timecard — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to update a `Timecard`. The response contains the updated `Timecard` object and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
timecard | Model | Optional | Expand Create Timecard — response body — timecard The updated `Timecard`. |
Referenced models: Get Shift — response body — errors item, Create Timecard — response body — timecard
Update Workweek Config — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A request to update a `WorkweekConfig` object. |
workweek_config | Model | Required within parent | Expand Update Workweek Config — request body — body workweek config The updated `WorkweekConfig` object. |
Referenced models: Update Workweek Config — request body — body workweek config
Update Workweek Config — request body — body workweek config
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Sets the day of the week and hour of the day that a business starts a workweek. This is used to calculate overtime pay. |
created_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
id | string | Optional | The UUID for this object. |
start_of_day_local_time | string | Required within parent | The local time at which a business week starts. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated). Minimum length: 1 |
start_of_week | string | Required within parent | The days of the week. The day of the week on which a business week starts for compensation purposes. See [Weekday](#type-weekday) for possible values One of: MON, TUE, WED, THU, FRI, SAT, SUN |
updated_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
version | integer | Optional | Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If not provided, Square executes a blind write; potentially overwriting data from another write. |
Update Workweek Config — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response to a request to update a `WorkweekConfig` object. The response contains the updated `WorkweekConfig` object and might contain a set of `Error` objects if the request resulted in errors. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
workweek_config | Model | Optional | Expand Update Workweek Config — response body — workweek config The response object. |
Referenced models: Get Shift — response body — errors item, Update Workweek Config — response body — workweek config
Update Workweek Config — response body — workweek config
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Sets the day of the week and hour of the day that a business starts a workweek. This is used to calculate overtime pay. |
created_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
id | string | Optional | The UUID for this object. |
start_of_day_local_time | string | Required within parent | The local time at which a business week starts. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated). Minimum length: 1 |
start_of_week | string | Required within parent | The days of the week. The day of the week on which a business week starts for compensation purposes. See [Weekday](#type-weekday) for possible values Known values: MON, TUE, WED, THU, FRI, SAT, SUN |
updated_at | string | Optional | A read-only timestamp in RFC 3339 format; presented in UTC. Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If not provided, Square executes a blind write; potentially overwriting data from another write. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |