Skip to content
gist.link ↗

createPayItem

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

Track a pay amount (bonus, overtime, vacation…). Integer minor units. ROLE_ADMIN.

payroll:mutation:createPayItem

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 {
createPayItem(input: CreatePayItemInput!): PayItem!
}
Argument Type Required Description
input CreatePayItemInput! Yes —

PayItem! — 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 CreatePayItem($input: CreatePayItemInput!) { createPayItem(input: $input) { id uuid currency status created_at } }",
"variables": {
"input": {
"employee_uuid": "example",
"amount_minor": 10
}
}
}
JSON