Skip to content
gist.link ↗

submitPayrollInvite

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

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.

payroll:mutation:submitPayrollInvite

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 {
submitPayrollInvite(token: String!, input: SubmitPayrollInviteInput!): SubmitResult!
}
Argument Type Required Description
token String! Yes —
input SubmitPayrollInviteInput! Yes —

SubmitResult! — 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 SubmitPayrollInvite($token: String!, $input: SubmitPayrollInviteInput!) { submitPayrollInvite(token: $token, input: $input) { success message } }",
"variables": {
"token": "example",
"input": {
"consent": true,
"direct_deposit": {
"account_holder": "example"
}
}
}
}
JSON