Skip to content
gist.link ↗

cancelPayRun

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

Cancel a draft/approved run. ROLE_ADMIN.

payroll:mutation:cancelPayRun

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 {
cancelPayRun(uuid: String!): PayRun!
}
Argument Type Required Description
uuid String! Yes —

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 CancelPayRun($uuid: String!) { cancelPayRun(uuid: $uuid) { uuid status currency created_at } }",
"variables": {
"uuid": "example"
}
}
JSON