Skip to content
gist.link ↗

Payroll API

Employee payroll operations: employees, pay runs, remittances, and tax records.

Endpoint POST https://payroll.api.gist.link/graphql
Token audience audience=payroll
Permission prefix payroll:

Mint an access token for this API with your IAM key and audience=payroll — see Authentication.

Operation Required permission Description
employeeInvites payroll:query:employeeInvites Invites issued for an employee. ROLE_ADMIN.
health payroll:query:health —
myPayroll payroll:query:myPayroll Employee self-service (‘My payroll’ view): the caller’s own employee record and paystubs from completed pay runs. Any authenticated user; scoped strictly to the caller.
myPayrollStatus payroll:query:myPayrollStatus Is the calling user set up for payroll? Powers the dashboard clock widget and mobile apps.
payItems payroll:query:payItems Tracked pay items (bonuses, overtime, vacation, regular…), optionally per employee.
payrollCompliance payroll:query:payrollCompliance Tax compliance readiness: which registrations (legal name, CRA payroll account, US EIN, EU tax id) still need to be configured in the settings app before payroll can remit and file, based on where employees are.
payrollEmployees payroll:query:payrollEmployees —
payrollInvite payroll:query:payrollInvite PUBLIC (invite-token authenticated): minimal invite context for the invite page.
payrollOverview payroll:query:payrollOverview —
payrollSettings payroll:query:payrollSettings Org payroll schedule settings (auto-created with defaults on first read).
payRun payroll:query:payRun A single pay run with its per-employee lines.
payRuns payroll:query:payRuns Pay runs, newest pay date first.
payTypes payroll:query:payTypes Org-configurable pay types.
suiteUsers payroll:query:suiteUsers Searchable directory of the org’s actual user accounts (employee picker). ROLE_ADMIN.
taxDocuments payroll:query:taxDocuments Official tax records: year-end forms (T4 / W-2 / EU annual) and remittance receipts.
taxReminders payroll:query:taxReminders Scheduled tax deadline reminders (created daily by the reminder cron and emailed to org admins): remittances due soon or overdue, and year-end forms not yet generated. Soonest deadline first.
taxRemittances payroll:query:taxRemittances Statutory remittances to the CRA / IRS / EU authorities, newest due date first.
timeEntries payroll:query:timeEntries Recent time entries. Non-admins only see their own.
Operation Required permission Description
approvePayRun payroll:mutation:approvePayRun draft → approved. ROLE_ADMIN.
assignEmployeeNumber payroll:mutation:assignEmployeeNumber Assign the org-unique clock in/out employee number. ROLE_ADMIN.
bootstrapPayroll payroll:mutation:bootstrapPayroll —
cancelPayRun payroll:mutation:cancelPayRun Cancel a draft/approved run. ROLE_ADMIN.
clockPunch payroll:mutation:clockPunch 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).
createEmployeeInvite payroll:mutation:createEmployeeInvite Mint a single-use, 7-day public invite URL for an employee. ROLE_ADMIN.
createPayItem payroll:mutation:createPayItem Track a pay amount (bonus, overtime, vacation…). Integer minor units. ROLE_ADMIN.
createPayrollEmployee payroll:mutation:createPayrollEmployee —
createPayRun payroll:mutation:createPayRun 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.
createPayType payroll:mutation:createPayType —
deletePayProfile payroll:mutation:deletePayProfile GDPR/PIPEDA erasure: delete an employee’s sealed pay profile wholesale. ROLE_ADMIN.
generateTaxForms payroll:mutation:generateTaxForms Generate year-end forms for every employee paid in the year: T4 (Canada), W-2 (United States), or an annual employment income statement (EU). Regenerating a year replaces its prior forms; remittance receipts are never touched. ROLE_ADMIN.
processPayRun payroll:mutation:processPayRun Pay every line: direct deposit via the pay app where the employee has bank details, otherwise a cheque number is assigned for printing. ROLE_ADMIN.
sendDirectDeposit payroll:mutation:sendDirectDeposit Send a direct deposit through the pay app and track it as a paid PayItem. ROLE_ADMIN.
submitPayrollInvite payroll:mutation:submitPayrollInvite PUBLIC (invite-token authenticated): employee submits direct deposit + tax details with explicit consent. Details are ENCRYPTED AT REST (libsodium) and write-only — only bank_name / account_last4 / tax_id_last4 (kept in separate, also-encrypted columns) are readable afterwards.
syncEmployeeToPay payroll:mutation:syncEmployeeToPay Retry mirroring an employee’s direct deposit as a pay supplier. ROLE_ADMIN.
updateMyPayrollDetails payroll:mutation:updateMyPayrollDetails Employee self-service: update your own direct deposit + tax details with explicit consent. Same sealed-at-rest treatment as the invite flow.
updatePayrollEmployee payroll:mutation:updatePayrollEmployee Update employee details, employee number, and compensation. ROLE_ADMIN.
updatePayrollSettings payroll:mutation:updatePayrollSettings Configure pay frequency, anchor pay date, and overtime threshold. ROLE_ADMIN.
updatePayType payroll:mutation:updatePayType —