Skip to content
gist.link ↗

createPayRun

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

Compute a draft pay run for the next (or given) pay date: prorated salaries, hourly wages from closed time entries with weekly overtime, plus pending pay items. ROLE_ADMIN.

payroll:mutation:createPayRun

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 {
createPayRun(input: CreatePayRunInput): PayRun!
}
Argument Type Required Description
input CreatePayRunInput No —

PayRun! — 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 CreatePayRun($input: CreatePayRunInput) { createPayRun(input: $input) { uuid status currency created_at } }",
"variables": {
"input": {
"pay_date": "example"
}
}
}
JSON