Creates a new Timecard
.
POST
/v2/labor/timecards
Creates a new Timecard
.
A Timecard
represents a complete workday for a single team member. You must provide the following values in your request to this endpoint:
location_id
team_member_id
start_at
An attempt to create a new Timecard
can result in a BAD_REQUEST
error when:
status
of the new Timecard
is OPEN
and the team member has another timecard with an OPEN
status.start_at
date is in the future.start_at
or end_at
date overlaps another timecard for the same team member.Break
instances are set in the request and a break start_at
is before the Timecard.start_at
, a break end_at
is after the Timecard.end_at
, or both.