Skip to content
gist.link ↗

clockPunch

Mutation Payroll API — POST https://payroll.api.gist.link/graphql

Toggle clock in/out by employee number (web or mobile). The caller must be the employee (token email match) or an org admin (kiosk mode).

payroll:mutation:clockPunch

The calling IAM key must hold this permission (or a wildcard that covers it: payroll:mutation:* or payroll:*) and the access token must have been minted with audience=payroll. See Permissions.

type Mutation {
clockPunch(employeeNumber: String!, source: String): TimeEntry!
}
Argument Type Required Description
employeeNumber String! Yes —
source String No —

TimeEntry! — see the Payroll types reference.

Terminal window
curl https://payroll.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ClockPunch($employeeNumber: String!, $source: String) { clockPunch(employeeNumber: $employeeNumber, source: $source) { id uuid clock_in_at clock_out_at duration_seconds open source } }",
"variables": {
"employeeNumber": "example",
"source": "example"
}
}
JSON