Download OpenAPI specification:Download
API with services related to workers
, timesheets
, shifts
, users
and sites
.
Gets timesheets for the default week
lastModifiedSince | stringyyyy-MM-dd'T'HH:mm:ss'Z' Return only the timesheets that have been modified since that date |
{- "isoWeek": "string",
- "maxLastModifiedDate": "2019-08-24T14:15:22Z",
- "sites": [
- {
- "id": 0,
- "name": "string",
- "refId": "string",
- "orgId": 0,
- "accountNumber": "string",
- "shiftTemplates": [
- {
- "id": 0,
- "name": "string",
- "awrRole": "string",
- "consultant": "string",
- "branch": "string"
}
]
}
], - "workers": [
- {
- "id": 0,
- "firstName": "string",
- "surname": "string",
- "email": "string",
- "refId": "string",
- "workerType": "LTD",
- "dateOfBirth": "2019-08-24",
- "company": {
- "name": "string"
}, - "consultant": "string"
}
], - "timesheets": [
- {
- "id": 0,
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "shiftTemplateId": 0,
- "workerId": 0,
- "awrType": "PRE_PARITY",
- "poNumber": "string",
- "weekEndingDate": "2019-08-24T14:15:22Z",
- "rolledUpHoliday": true,
- "valueElements": [
- {
- "date": "2019-08-24",
- "type": "SHIFT",
- "shiftId": 0,
- "shiftDurationType": "DAILY_DAY",
- "shiftSegmentStart": "2019-08-24T14:15:22Z",
- "shiftSegmentEnd": "2019-08-24T14:15:22Z",
- "historicTimesheetId": 0,
- "historicWeekEndingDate": "2019-08-24",
- "chargeAmount": 0,
- "payAmount": 0,
- "rateType": "string",
- "isOvertime": true,
- "offPayrollRules": true,
- "durationMins": 0,
- "chargeRate": 0,
- "payRate": 0,
- "apprenticeshipLevy": 0,
- "pension": 0,
- "approvedBy": "string",
- "approvedDate": "2019-08-24"
}
]
}
]
}
Gets timesheets for the specified ISO week
isoWeek required | string ISO week (e.g. 07-2020) |
lastModifiedSince | stringyyyy-MM-dd'T'HH:mm:ss'Z' Return only the timesheets that have been modified since that date |
{- "isoWeek": "string",
- "maxLastModifiedDate": "2019-08-24T14:15:22Z",
- "sites": [
- {
- "id": 0,
- "name": "string",
- "refId": "string",
- "orgId": 0,
- "accountNumber": "string",
- "shiftTemplates": [
- {
- "id": 0,
- "name": "string",
- "awrRole": "string",
- "consultant": "string",
- "branch": "string"
}
]
}
], - "workers": [
- {
- "id": 0,
- "firstName": "string",
- "surname": "string",
- "email": "string",
- "refId": "string",
- "workerType": "LTD",
- "dateOfBirth": "2019-08-24",
- "company": {
- "name": "string"
}, - "consultant": "string"
}
], - "timesheets": [
- {
- "id": 0,
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "shiftTemplateId": 0,
- "workerId": 0,
- "awrType": "PRE_PARITY",
- "poNumber": "string",
- "weekEndingDate": "2019-08-24T14:15:22Z",
- "rolledUpHoliday": true,
- "valueElements": [
- {
- "date": "2019-08-24",
- "type": "SHIFT",
- "shiftId": 0,
- "shiftDurationType": "DAILY_DAY",
- "shiftSegmentStart": "2019-08-24T14:15:22Z",
- "shiftSegmentEnd": "2019-08-24T14:15:22Z",
- "historicTimesheetId": 0,
- "historicWeekEndingDate": "2019-08-24",
- "chargeAmount": 0,
- "payAmount": 0,
- "rateType": "string",
- "isOvertime": true,
- "offPayrollRules": true,
- "durationMins": 0,
- "chargeRate": 0,
- "payRate": 0,
- "apprenticeshipLevy": 0,
- "pension": 0,
- "approvedBy": "string",
- "approvedDate": "2019-08-24"
}
]
}
]
}
Triggers manual timesheet amalgamation for a given week or for the default week (new version)
orgId required | integer org id to be added or removed |
isoWeek required | string trigger amalgamation for the week (new version) |
{- "id": 0,
- "refId": "string",
- "statusCode": 0,
- "message": "string"
}
Add org id retrieved from Api key to the shouldAmalgamateDataTable DynamoDB table
orgId | integer |
amalgamationStrategy | string |
{- "orgId": 0,
- "amalgamationStrategy": "string"
}
{- "id": 0,
- "refId": "string",
- "statusCode": 0,
- "message": "string"
}
Remove org id retrieved from Api key from the shouldAmalgamateDataTable DynamoDB table
orgId required | integer org id to be added or removed |
{- "id": 0,
- "refId": "string",
- "statusCode": 0,
- "message": "string"
}
Gets a worker by JoinedUp Id
id required | integer JoinedUp Id of worker |
{- "Id": "string",
- "refId": "string",
- "title": "string",
- "firstname": "string",
- "middlename": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "mobileCountryCode": "string",
- "mobileNumber": "string",
- "nationalInsuranceNumber": "string",
- "gender": "male",
- "nationality": "string",
- "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "townCity": "string",
- "county": "string",
- "postCode": "string",
- "country": "string"
}, - "employmentType": "PAYE",
- "company": {
- "name": "string"
}, - "drivingLicenceStatus": "string",
- "clientRef": "string",
- "linkedBranches": [
- {
- "name": "string",
- "isOwningBranch": true
}
], - "owningBranch": "string",
- "customFields": {
- "property1": "string",
- "property2": "string"
}, - "skipRegistrationChecksUntil": "2019-08-24",
- "skipEmailConfirmationUntil": "2019-08-24"
}
Update worker details, a non-existent worker will be rejected. Only included fields will be updated.
id required | integer JoinedUp Id of worker |
Id | string |
refId | string |
title | string |
firstname required | string |
middlename | string |
surname required | string |
dateOfBirth | string <date> |
email required | string |
mobileCountryCode | string |
mobileNumber | string |
nationalInsuranceNumber | string |
gender | string Enum: "male" "female" "not_set" |
nationality | string |
object (Address) | |
employmentType | string Enum: "PAYE" "PARTNER_AGENCY" "LTD" "UMBRELLA" |
object (Company) | |
drivingLicenceStatus | string |
clientRef | string |
Array of objects (Linked branch) | |
owningBranch | string |
object | |
skipRegistrationChecksUntil | string <date> |
skipEmailConfirmationUntil | string <date> |
{- "Id": "string",
- "refId": "string",
- "title": "string",
- "firstname": "string",
- "middlename": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "mobileCountryCode": "string",
- "mobileNumber": "string",
- "nationalInsuranceNumber": "string",
- "gender": "male",
- "nationality": "string",
- "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "townCity": "string",
- "county": "string",
- "postCode": "string",
- "country": "string"
}, - "employmentType": "PAYE",
- "company": {
- "name": "string"
}, - "drivingLicenceStatus": "string",
- "clientRef": "string",
- "linkedBranches": [
- {
- "name": "string",
- "isOwningBranch": true
}
], - "owningBranch": "string",
- "customFields": {
- "property1": "string",
- "property2": "string"
}, - "skipRegistrationChecksUntil": "2019-08-24",
- "skipEmailConfirmationUntil": "2019-08-24"
}
{- "id": 0,
- "refId": "string",
- "statusCode": 0,
- "message": "string"
}
Gets a worker by agency Id
refId required | string agency Id of worker |
{- "Id": "string",
- "refId": "string",
- "title": "string",
- "firstname": "string",
- "middlename": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "mobileCountryCode": "string",
- "mobileNumber": "string",
- "nationalInsuranceNumber": "string",
- "gender": "male",
- "nationality": "string",
- "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "townCity": "string",
- "county": "string",
- "postCode": "string",
- "country": "string"
}, - "employmentType": "PAYE",
- "company": {
- "name": "string"
}, - "drivingLicenceStatus": "string",
- "clientRef": "string",
- "linkedBranches": [
- {
- "name": "string",
- "isOwningBranch": true
}
], - "owningBranch": "string",
- "customFields": {
- "property1": "string",
- "property2": "string"
}, - "skipRegistrationChecksUntil": "2019-08-24",
- "skipEmailConfirmationUntil": "2019-08-24"
}
Update worker details, a non-existent worker will be rejected. Only included fields will be updated.
refId required | string agency Id of worker |
Id | string |
refId | string |
title | string |
firstname required | string |
middlename | string |
surname required | string |
dateOfBirth | string <date> |
email required | string |
mobileCountryCode | string |
mobileNumber | string |
nationalInsuranceNumber | string |
gender | string Enum: "male" "female" "not_set" |
nationality | string |
object (Address) | |
employmentType | string Enum: "PAYE" "PARTNER_AGENCY" "LTD" "UMBRELLA" |
object (Company) | |
drivingLicenceStatus | string |
clientRef | string |
Array of objects (Linked branch) | |
owningBranch | string |
object | |
skipRegistrationChecksUntil | string <date> |
skipEmailConfirmationUntil | string <date> |
{- "Id": "string",
- "refId": "string",
- "title": "string",
- "firstname": "string",
- "middlename": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "mobileCountryCode": "string",
- "mobileNumber": "string",
- "nationalInsuranceNumber": "string",
- "gender": "male",
- "nationality": "string",
- "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "townCity": "string",
- "county": "string",
- "postCode": "string",
- "country": "string"
}, - "employmentType": "PAYE",
- "company": {
- "name": "string"
}, - "drivingLicenceStatus": "string",
- "clientRef": "string",
- "linkedBranches": [
- {
- "name": "string",
- "isOwningBranch": true
}
], - "owningBranch": "string",
- "customFields": {
- "property1": "string",
- "property2": "string"
}, - "skipRegistrationChecksUntil": "2019-08-24",
- "skipEmailConfirmationUntil": "2019-08-24"
}
{- "id": 0,
- "refId": "string",
- "statusCode": 0,
- "message": "string"
}
Create new worker, A duplicate worker will be rejected
Id | string |
refId | string |
title | string |
firstname required | string |
middlename | string |
surname required | string |
dateOfBirth | string <date> |
email required | string |
mobileCountryCode | string |
mobileNumber | string |
nationalInsuranceNumber | string |
gender | string Enum: "male" "female" "not_set" |
nationality | string |
object (Address) | |
employmentType | string Enum: "PAYE" "PARTNER_AGENCY" "LTD" "UMBRELLA" |
object (Company) | |
drivingLicenceStatus | string |
clientRef | string |
Array of objects (Linked branch) | |
owningBranch | string |
object | |
skipRegistrationChecksUntil | string <date> |
skipEmailConfirmationUntil | string <date> |
{- "Id": "string",
- "refId": "string",
- "title": "string",
- "firstname": "string",
- "middlename": "string",
- "surname": "string",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "mobileCountryCode": "string",
- "mobileNumber": "string",
- "nationalInsuranceNumber": "string",
- "gender": "male",
- "nationality": "string",
- "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "townCity": "string",
- "county": "string",
- "postCode": "string",
- "country": "string"
}, - "employmentType": "PAYE",
- "company": {
- "name": "string"
}, - "drivingLicenceStatus": "string",
- "clientRef": "string",
- "linkedBranches": [
- {
- "name": "string",
- "isOwningBranch": true
}
], - "owningBranch": "string",
- "customFields": {
- "property1": "string",
- "property2": "string"
}, - "skipRegistrationChecksUntil": "2019-08-24",
- "skipEmailConfirmationUntil": "2019-08-24"
}
{- "id": 0,
- "refId": "string",
- "statusCode": 0,
- "message": "string"
}
Validates the inclusion of workers
Array of objects (WorkersShiftsImporterRow) |
{- "rows": [
- {
- "firstName": "string",
- "surname": "string",
- "email": "string",
- "gender": "string",
- "dateOfBirth": "string",
- "nationality": "string",
- "postCode": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "cityTown": "string",
- "county": "string",
- "countryIsoCode": "string",
- "stateIsoCode": "string",
- "licenceNumber": "string",
- "issueNumber": "string",
- "licenceStartDate": "2019-08-24T14:15:22Z",
- "licenceExpiryDate": "2019-08-24T14:15:22Z",
- "pointsOnLicence": 0,
- "b_startDate": "2019-08-24T14:15:22Z",
- "b_expiryDate": "2019-08-24T14:15:22Z",
- "be_startDate": "2019-08-24T14:15:22Z",
- "be_expiryDate": "2019-08-24T14:15:22Z",
- "c_startDate": "2019-08-24T14:15:22Z",
- "c_expiryDate": "2019-08-24T14:15:22Z",
- "ce_startDate": "2019-08-24T14:15:22Z",
- "ce_expiryDate": "2019-08-24T14:15:22Z",
- "c1_startDate": "2019-08-24T14:15:22Z",
- "c1_expiryDate": "2019-08-24T14:15:22Z",
- "c1e_startDate": "2019-08-24T14:15:22Z",
- "c1e_expiryDate": "2019-08-24T14:15:22Z",
- "tachoNumber": "string",
- "tachoExpiryDate": "2019-08-24T14:15:22Z",
- "dqcNumber": "string",
- "dqcExpiryDate": "2019-08-24T14:15:22Z",
- "niNumber": "string",
- "workPermitRequired": true,
- "workPermitType": "string",
- "workPermitExpiryDate": "2019-08-24T14:15:22Z",
- "isDrivingRole": true,
- "preferredSiteId": 0,
- "legalStatus": "string",
- "ltdName": "string",
- "ltdNumber": "string",
- "ltdIncorporationDate": "2019-08-24T14:15:22Z",
- "ltdVatNumber": "string",
- "umbrellaName": "string",
- "branchIds": "string",
- "templateIds": "string",
- "skipRegistrationChecksUntil": "2019-08-24T14:15:22Z",
- "skipEmailConfirmationUntil": "2019-08-24T14:15:22Z",
- "enableEmailComms": true,
- "enableSmsComms": true,
- "phonePrefix": "string",
- "phoneNumber": "string",
- "otherPhone": "string",
- "mobilePrefix": "string",
- "mobileNumber": "string",
- "systemId": "string"
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "firstName": "string",
- "surname": "string",
- "email": "string",
- "gender": "string",
- "dateOfBirth": "string",
- "nationality": "string",
- "postCode": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "cityTown": "string",
- "county": "string",
- "countryIsoCode": "string",
- "stateIsoCode": "string",
- "licenceNumber": "string",
- "issueNumber": "string",
- "licenceStartDate": "2019-08-24T14:15:22Z",
- "licenceExpiryDate": "2019-08-24T14:15:22Z",
- "pointsOnLicence": 0,
- "b_startDate": "2019-08-24T14:15:22Z",
- "b_expiryDate": "2019-08-24T14:15:22Z",
- "be_startDate": "2019-08-24T14:15:22Z",
- "be_expiryDate": "2019-08-24T14:15:22Z",
- "c_startDate": "2019-08-24T14:15:22Z",
- "c_expiryDate": "2019-08-24T14:15:22Z",
- "ce_startDate": "2019-08-24T14:15:22Z",
- "ce_expiryDate": "2019-08-24T14:15:22Z",
- "c1_startDate": "2019-08-24T14:15:22Z",
- "c1_expiryDate": "2019-08-24T14:15:22Z",
- "c1e_startDate": "2019-08-24T14:15:22Z",
- "c1e_expiryDate": "2019-08-24T14:15:22Z",
- "tachoNumber": "string",
- "tachoExpiryDate": "2019-08-24T14:15:22Z",
- "dqcNumber": "string",
- "dqcExpiryDate": "2019-08-24T14:15:22Z",
- "niNumber": "string",
- "workPermitRequired": true,
- "workPermitType": "string",
- "workPermitExpiryDate": "2019-08-24T14:15:22Z",
- "isDrivingRole": true,
- "preferredSiteId": 0,
- "legalStatus": "string",
- "ltdName": "string",
- "ltdNumber": "string",
- "ltdIncorporationDate": "2019-08-24T14:15:22Z",
- "ltdVatNumber": "string",
- "umbrellaName": "string",
- "branchIds": "string",
- "templateIds": "string",
- "skipRegistrationChecksUntil": "2019-08-24T14:15:22Z",
- "skipEmailConfirmationUntil": "2019-08-24T14:15:22Z",
- "enableEmailComms": true,
- "enableSmsComms": true,
- "phonePrefix": "string",
- "phoneNumber": "string",
- "otherPhone": "string",
- "mobilePrefix": "string",
- "mobileNumber": "string",
- "systemId": "string"
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Import workers
Array of objects (WorkersShiftsImporterRow) |
{- "rows": [
- {
- "firstName": "string",
- "surname": "string",
- "email": "string",
- "gender": "string",
- "dateOfBirth": "string",
- "nationality": "string",
- "postCode": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "cityTown": "string",
- "county": "string",
- "countryIsoCode": "string",
- "stateIsoCode": "string",
- "licenceNumber": "string",
- "issueNumber": "string",
- "licenceStartDate": "2019-08-24T14:15:22Z",
- "licenceExpiryDate": "2019-08-24T14:15:22Z",
- "pointsOnLicence": 0,
- "b_startDate": "2019-08-24T14:15:22Z",
- "b_expiryDate": "2019-08-24T14:15:22Z",
- "be_startDate": "2019-08-24T14:15:22Z",
- "be_expiryDate": "2019-08-24T14:15:22Z",
- "c_startDate": "2019-08-24T14:15:22Z",
- "c_expiryDate": "2019-08-24T14:15:22Z",
- "ce_startDate": "2019-08-24T14:15:22Z",
- "ce_expiryDate": "2019-08-24T14:15:22Z",
- "c1_startDate": "2019-08-24T14:15:22Z",
- "c1_expiryDate": "2019-08-24T14:15:22Z",
- "c1e_startDate": "2019-08-24T14:15:22Z",
- "c1e_expiryDate": "2019-08-24T14:15:22Z",
- "tachoNumber": "string",
- "tachoExpiryDate": "2019-08-24T14:15:22Z",
- "dqcNumber": "string",
- "dqcExpiryDate": "2019-08-24T14:15:22Z",
- "niNumber": "string",
- "workPermitRequired": true,
- "workPermitType": "string",
- "workPermitExpiryDate": "2019-08-24T14:15:22Z",
- "isDrivingRole": true,
- "preferredSiteId": 0,
- "legalStatus": "string",
- "ltdName": "string",
- "ltdNumber": "string",
- "ltdIncorporationDate": "2019-08-24T14:15:22Z",
- "ltdVatNumber": "string",
- "umbrellaName": "string",
- "branchIds": "string",
- "templateIds": "string",
- "skipRegistrationChecksUntil": "2019-08-24T14:15:22Z",
- "skipEmailConfirmationUntil": "2019-08-24T14:15:22Z",
- "enableEmailComms": true,
- "enableSmsComms": true,
- "phonePrefix": "string",
- "phoneNumber": "string",
- "otherPhone": "string",
- "mobilePrefix": "string",
- "mobileNumber": "string",
- "systemId": "string"
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "firstName": "string",
- "surname": "string",
- "email": "string",
- "gender": "string",
- "dateOfBirth": "string",
- "nationality": "string",
- "postCode": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "addressLine3": "string",
- "cityTown": "string",
- "county": "string",
- "countryIsoCode": "string",
- "stateIsoCode": "string",
- "licenceNumber": "string",
- "issueNumber": "string",
- "licenceStartDate": "2019-08-24T14:15:22Z",
- "licenceExpiryDate": "2019-08-24T14:15:22Z",
- "pointsOnLicence": 0,
- "b_startDate": "2019-08-24T14:15:22Z",
- "b_expiryDate": "2019-08-24T14:15:22Z",
- "be_startDate": "2019-08-24T14:15:22Z",
- "be_expiryDate": "2019-08-24T14:15:22Z",
- "c_startDate": "2019-08-24T14:15:22Z",
- "c_expiryDate": "2019-08-24T14:15:22Z",
- "ce_startDate": "2019-08-24T14:15:22Z",
- "ce_expiryDate": "2019-08-24T14:15:22Z",
- "c1_startDate": "2019-08-24T14:15:22Z",
- "c1_expiryDate": "2019-08-24T14:15:22Z",
- "c1e_startDate": "2019-08-24T14:15:22Z",
- "c1e_expiryDate": "2019-08-24T14:15:22Z",
- "tachoNumber": "string",
- "tachoExpiryDate": "2019-08-24T14:15:22Z",
- "dqcNumber": "string",
- "dqcExpiryDate": "2019-08-24T14:15:22Z",
- "niNumber": "string",
- "workPermitRequired": true,
- "workPermitType": "string",
- "workPermitExpiryDate": "2019-08-24T14:15:22Z",
- "isDrivingRole": true,
- "preferredSiteId": 0,
- "legalStatus": "string",
- "ltdName": "string",
- "ltdNumber": "string",
- "ltdIncorporationDate": "2019-08-24T14:15:22Z",
- "ltdVatNumber": "string",
- "umbrellaName": "string",
- "branchIds": "string",
- "templateIds": "string",
- "skipRegistrationChecksUntil": "2019-08-24T14:15:22Z",
- "skipEmailConfirmationUntil": "2019-08-24T14:15:22Z",
- "enableEmailComms": true,
- "enableSmsComms": true,
- "phonePrefix": "string",
- "phoneNumber": "string",
- "otherPhone": "string",
- "mobilePrefix": "string",
- "mobileNumber": "string",
- "systemId": "string"
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
workerId required | integer <int> Worker id |
docType required | string Enum: "CV" "COMPLIANCE_DOC" |
validFrom | string <date> |
validTo | string <date> |
filename required | string filename fo file |
file required | string <binary> file to upload b64 encoded |
{- "id": 0,
- "refId": "string",
- "statusCode": 0,
- "message": "string"
}
Validates the inclusion of shift start and stop times
siteName | string |
Array of objects (ShiftTimesImporterRow) |
{- "siteName": "string",
- "rows": [
- {
- "weekYear": 0,
- "weekOfWeekYear": 0,
- "booked": "2019-08-24T14:15:22Z",
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "templateId": 0,
- "templateAlias": "string",
- "siteId": 0,
- "siteName": "string",
- "workerId": 0,
- "workerFirstName": "string",
- "workerSurname": "string",
- "shiftId": 0,
- "errors": [
- "string"
]
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "weekYear": 0,
- "weekOfWeekYear": 0,
- "booked": "2019-08-24T14:15:22Z",
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "templateId": 0,
- "templateAlias": "string",
- "siteId": 0,
- "siteName": "string",
- "workerId": 0,
- "workerFirstName": "string",
- "workerSurname": "string",
- "shiftId": 0,
- "errors": [
- "string"
]
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Import shift start and stop times
siteName | string |
Array of objects (ShiftTimesImporterRow) |
{- "siteName": "string",
- "rows": [
- {
- "weekYear": 0,
- "weekOfWeekYear": 0,
- "booked": "2019-08-24T14:15:22Z",
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "templateId": 0,
- "templateAlias": "string",
- "siteId": 0,
- "siteName": "string",
- "workerId": 0,
- "workerFirstName": "string",
- "workerSurname": "string",
- "shiftId": 0,
- "errors": [
- "string"
]
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "weekYear": 0,
- "weekOfWeekYear": 0,
- "booked": "2019-08-24T14:15:22Z",
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "templateId": 0,
- "templateAlias": "string",
- "siteId": 0,
- "siteName": "string",
- "workerId": 0,
- "workerFirstName": "string",
- "workerSurname": "string",
- "shiftId": 0,
- "errors": [
- "string"
]
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Import shift start and stop times in a batch
siteName | string |
Array of objects (ShiftTimesImporterRow) |
{- "siteName": "string",
- "rows": [
- {
- "weekYear": 0,
- "weekOfWeekYear": 0,
- "booked": "2019-08-24T14:15:22Z",
- "start": "2019-08-24T14:15:22Z",
- "stop": "2019-08-24T14:15:22Z",
- "templateId": 0,
- "templateAlias": "string",
- "siteId": 0,
- "siteName": "string",
- "workerId": 0,
- "workerFirstName": "string",
- "workerSurname": "string",
- "shiftId": 0,
- "errors": [
- "string"
]
}
]
}
{- "batchProcessId": 0
}
Validates the inclusion of unallocated shifts
Array of objects (UnallocatedShiftsImporterRow) |
{- "rows": [
- {
- "site": "string",
- "templateId": 0,
- "jobNumber": "string",
- "duration": "string",
- "date": "2019-08-24T14:15:22Z",
- "startTimeApi": "2019-08-24T14:15:22Z",
- "expectedStopTimeApi": "2019-08-24T14:15:22Z",
- "numberOfShifts": 0
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "site": "string",
- "templateId": 0,
- "jobNumber": "string",
- "duration": "string",
- "date": "2019-08-24T14:15:22Z",
- "startTimeApi": "2019-08-24T14:15:22Z",
- "expectedStopTimeApi": "2019-08-24T14:15:22Z",
- "numberOfShifts": 0
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Import unallocated shifts
Array of objects (UnallocatedShiftsImporterRow) |
{- "rows": [
- {
- "site": "string",
- "templateId": 0,
- "jobNumber": "string",
- "duration": "string",
- "date": "2019-08-24T14:15:22Z",
- "startTimeApi": "2019-08-24T14:15:22Z",
- "expectedStopTimeApi": "2019-08-24T14:15:22Z",
- "numberOfShifts": 0
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "site": "string",
- "templateId": 0,
- "jobNumber": "string",
- "duration": "string",
- "date": "2019-08-24T14:15:22Z",
- "startTimeApi": "2019-08-24T14:15:22Z",
- "expectedStopTimeApi": "2019-08-24T14:15:22Z",
- "numberOfShifts": 0
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Returns list of attendance events. NOTE: dates are all returned in UTC timezone. This is a Work in Progress (WIP) - reach out to support for more information if you desire to start using it.
from required | string <date-time> From date and time to search for events |
to required | string <date-time> To date and time to search for events |
page required | integer Page to return the events |
size required | integer Number of events to be returned in the API |
order | string Enum: "asc" "desc" Sort order |
{- "data": [
- {
- "id": 0,
- "creationTime": "2019-08-24T14:15:22Z",
- "eventTime": "2019-08-24T14:15:22Z",
- "eventType": "string",
- "eventSource": "string",
- "shift": {
- "id": 0,
- "bookedStartTime": "2019-08-24T14:15:22Z",
- "expectedStopTime": "2019-08-24T14:15:22Z",
- "actualStartTime": "2019-08-24T14:15:22Z",
- "actualStopTime": "2019-08-24T14:15:22Z",
- "jobNumber": "string",
- "manualBreaks": [
- {
- "id": 0,
- "startTime": "2019-08-24T14:15:22Z",
- "stopTime": "2019-08-24T14:15:22Z"
}
]
}, - "worker": {
- "id": 0,
- "firstName": "string",
- "surname": "string"
}, - "site": {
- "id": 0,
- "name": "string",
- "timezoneId": "string"
}, - "shiftTemplate": {
- "id": 0,
- "alias": "string"
}, - "supplier": {
- "id": 0,
- "name": "string"
}, - "client": {
- "id": 0,
- "name": "string"
}, - "initiator": {
- "id": 0,
- "email": "string",
- "type": "string"
}, - "timeAndAttendanceAppUser": {
- "id": 0,
- "email": "string"
}
}
], - "pageNumber": 0,
- "pageSize": 0,
- "totalResults": 0
}
Validates the inclusion of users
Array of objects (UsersShiftsImporterRow) |
{- "rows": [
- {
- "id": 0,
- "buyerId": 0,
- "firstName": "string",
- "middleName": "string",
- "surname": "string",
- "email": "string",
- "phonePrefix": "string",
- "phoneNumber": "string",
- "orgId": 0,
- "orgName": "string",
- "archived": true,
- "roles": [
- "ACCOUNT_MANAGER"
], - "preferredSiteId": 0,
- "preferredSiteName": "string",
- "restrictedSiteIds": [
- 0
], - "restrictedSiteNames": [
- null
], - "sendInvite": true
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "id": 0,
- "buyerId": 0,
- "firstName": "string",
- "middleName": "string",
- "surname": "string",
- "email": "string",
- "phonePrefix": "string",
- "phoneNumber": "string",
- "orgId": 0,
- "orgName": "string",
- "archived": true,
- "roles": [
- "ACCOUNT_MANAGER"
], - "preferredSiteId": 0,
- "preferredSiteName": "string",
- "restrictedSiteIds": [
- 0
], - "restrictedSiteNames": [
- null
], - "sendInvite": true
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Import users
Array of objects (UsersShiftsImporterRow) |
{- "rows": [
- {
- "id": 0,
- "buyerId": 0,
- "firstName": "string",
- "middleName": "string",
- "surname": "string",
- "email": "string",
- "phonePrefix": "string",
- "phoneNumber": "string",
- "orgId": 0,
- "orgName": "string",
- "archived": true,
- "roles": [
- "ACCOUNT_MANAGER"
], - "preferredSiteId": 0,
- "preferredSiteName": "string",
- "restrictedSiteIds": [
- 0
], - "restrictedSiteNames": [
- null
], - "sendInvite": true
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "id": 0,
- "buyerId": 0,
- "firstName": "string",
- "middleName": "string",
- "surname": "string",
- "email": "string",
- "phonePrefix": "string",
- "phoneNumber": "string",
- "orgId": 0,
- "orgName": "string",
- "archived": true,
- "roles": [
- "ACCOUNT_MANAGER"
], - "preferredSiteId": 0,
- "preferredSiteName": "string",
- "restrictedSiteIds": [
- 0
], - "restrictedSiteNames": [
- null
], - "sendInvite": true
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Validates the inclusion of site partners
siteName | string |
Array of objects (SitePartnersImporterRow) |
{- "siteName": "string",
- "rows": [
- {
- "siteId": 0,
- "leadAgencyId": 0,
- "partnerAgencyId": 0
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "siteId": 0,
- "leadAgencyId": 0,
- "partnerAgencyId": 0
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Import site partners
siteName | string |
Array of objects (SitePartnersImporterRow) |
{- "siteName": "string",
- "rows": [
- {
- "siteId": 0,
- "leadAgencyId": 0,
- "partnerAgencyId": 0
}
]
}
{- "originalRecordsCount": 0,
- "originalRecordsSuccessfullyProcessed": 0,
- "rows": [
- {
- "siteId": 0,
- "leadAgencyId": 0,
- "partnerAgencyId": 0
}
], - "errors": [
- "string"
], - "status": "string",
- "message": "string"
}
Link a worker to a shift template
workerId | integer <int64> |
shiftTemplateId | integer <int64> |
{- "workerId": 0,
- "shiftTemplateId": 0
}
{- "status": "string",
- "message": "string"
}
Get batch job summary by batchJobId
batchJobId required | integer Id of batch shift import job |
{- "id": 0,
- "type": "SHIFT_TIMES_IMPORTER",
- "status": "QUEUED",
- "submittedDate": "2019-08-24T14:15:22Z",
- "completedDate": "2019-08-24T14:15:22Z",
- "totalNumberOfRecords": 0,
- "totalNumberOfRecordsProcessed": 0,
- "failedRecords": 0,
- "userId": 0,
- "fullname": "string"
}
Gets batch job messages
batchJobId required | integer Id of batch shift import job |
{- "itemMessages": [
- {
- "correlationId": "string",
- "errors": [
- {
- "message": "string",
- "code": "string"
}
], - "warnings": [
- {
- "message": "string",
- "code": "string"
}
]
}
], - "generalErrors": [
- "string"
]
}