GraphQL Query
query PayRun($payRunId: ID!) {
payRun(id: $payRunId) {
id
name
description
startDate
endDate
status
createdAt
finalisedAt
finalisedBy {
fullName
}
errors {
message
employee {
id
fullName
}
}
payItems {
employee {
id
fullName
}
payType {
id
name
}
startTime
endTime
unitAmount
quantity
amount
}
timesheets {
id
status
startTime
endTime
hours
employee {
id
text
}
}
modifiedAt
modifiedBy {
fullName
}
}
}
Example Variables
{
"payRunId": "38"
}
Example Response
{
"data": {
"payRun": {
"id": "38",
"name": "May 2024 - Fortnight 2",
"description": null,
"startDate": "2024-05-20",
"endDate": "2024-06-02",
"status": "Finalised",
"createdAt": "2024-06-06T04:53:26.177Z",
"finalisedAt": "2024-06-06T05:00:17.747Z",
"finalisedBy": {
"fullName": "Roubler Support"
},
"errors": [],
"payItems": [
{
"employee": {
"id": "72908",
"fullName": "Craig Bussell"
},
"payType": {
"id": "790",
"name": "Ordinary - Standard - Standard"
},
"startTime": "2024-05-19T23:00:00.000Z",
"endTime": "2024-05-20T05:00:00.000Z",
"unitAmount": 14423,
"quantity": 33,
"amount": 475959
},
{
"employee": {
"id": "72909",
"fullName": "Nicolas Chan"
},
"payType": {
"id": "788",
"name": "Overtime - Standard - Standard"
},
"startTime": "2024-06-01T06:00:00.000Z",
"endTime": "2024-06-01T07:00:00.000Z",
"unitAmount": 2200,
"quantity": 1,
"amount": 2200
}
],
"timesheets": [
{
"id": "4518861",
"status": "payrolled",
"startTime": "2024-05-29T21:00:00.000Z",
"endTime": "2024-05-30T01:00:00.000Z",
"hours": 4,
"employee": {
"id": "72908",
"text": "Craig Bussell"
}
},
{
"id": "4518849",
"status": "payrolled",
"startTime": "2024-05-19T22:00:00.000Z",
"endTime": "2024-05-20T05:00:00.000Z",
"hours": 7,
"employee": {
"id": "72909",
"text": "Nicolas Chan"
}
}
],
"modifiedAt": "2024-06-06T04:53:26.177Z",
"modifiedBy": {
"fullName": "Roubler Support"
}
}
}
}