Create completion
POST/api/v1/shifts/:shiftId/completions
Create a shift completion, creating a timecard for the shift.
Request
Path Parameters
shiftId stringrequired
Header Parameters
idempotency-key string
- application/json
Body
required
- Array [
- ]
data objectrequired
attributes objectrequired
externalFacilityId stringrequired
totalCost number
hourlyRate number
fees number
punches object[]required
type TimecardPunchActionrequired
Possible values: [START_BREAK
, END_BREAK
, SKIP_BREAK
, CLOCK_IN
, CLOCK_OUT
, SUBMIT_SIGNATURE
, START_SIGNATURE
, AUTO_CLOCK_OUT
]
punchTime date-timerequired
presenceVerificationId string
type stringrequired
Responses
- 200
- 4XX
- 5XX
- application/json
- Schema
- Example (from schema)
Schema
data objectrequired
id stringrequired
type stringrequired
{
"data": {
"id": "string",
"type": "string"
}
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]required
code stringrequired
id stringrequired
status stringrequired
title stringrequired
{
"errors": [
{
"code": "string",
"id": "string",
"status": "string",
"title": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
errors object[]required
code stringrequired
id stringrequired
status stringrequired
title stringrequired
{
"errors": [
{
"code": "string",
"id": "string",
"status": "string",
"title": "string"
}
]
}
Loading...