Adds timesheets for the specified business. This will not replace any existing timesheets. The timesheets should be grouped by their associated employee IDs, with the key for the timesheet array being the employee ID. For a Standard Employee ID Type, make sure the employee ID is an integer.

Request

POST https://apimy.yourpayroll.io/api/v2/business/{businessId}/timesheet/bulk

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

The request body takes a complete MySubmitTimesheetsRequest resource, containing the following writable properties:

{
    "approved": "boolean",
    "employeeIdType": "string",
    "fromDate": "date-time",
    "locationIdType": "string",
    "replaceExisting": "boolean",
    "timesheets": {
        "<key>": "array"
    },
    "toDate": "date-time",
    "workTypeIdType": "string"
}

Example

{
    "approved": true,
    "employeeIdType": "Standard",
    "fromDate": "2017-06-01T00:00:00",
    "locationIdType": "Standard",
    "replaceExisting": false,
    "timesheets": {
        "3316": [
            {
                "attachment": null,
                "attachmentId": null,
                "breaks": [],
                "comments": null,
                "employeeId": 0,
                "endTime": "2017-06-11T13:00:00",
                "externalId": null,
                "fullyQualifiedLocationName": null,
                "hiddenComments": null,
                "id": 0,
                "leaveCategoryId": null,
                "locationId": null,
                "payCategoryId": null,
                "rate": null,
                "shiftConditionIds": null,
                "shiftConditions": null,
                "source": "None",
                "startTime": "2017-06-11T10:00:00",
                "status": null,
                "submittedByUser": null,
                "units": null,
                "workType": null,
                "workTypeId": null
            }
        ],
        "3317": [
            {
                "attachment": null,
                "attachmentId": null,
                "breaks": [
                    {
                        "endTime": "2017-06-13T12:00:00",
                        "startTime": "2017-06-13T11:00:00"
                    }
                ],
                "comments": "Some Comments",
                "employeeId": 0,
                "endTime": "2017-06-13T17:00:00",
                "externalId": null,
                "fullyQualifiedLocationName": null,
                "hiddenComments": null,
                "id": 0,
                "leaveCategoryId": null,
                "locationId": "123456",
                "payCategoryId": null,
                "rate": 20,
                "shiftConditionIds": null,
                "shiftConditions": null,
                "source": "None",
                "startTime": "2017-06-13T09:00:00",
                "status": null,
                "submittedByUser": null,
                "units": 8,
                "workType": null,
                "workTypeId": "WT1485"
            },
            {
                "attachment": null,
                "attachmentId": null,
                "breaks": [
                    {
                        "endTime": "2017-06-15T12:00:00",
                        "startTime": "2017-06-15T11:00:00"
                    }
                ],
                "comments": "Some Comments",
                "employeeId": 0,
                "endTime": "2017-06-15T17:00:00",
                "externalId": null,
                "fullyQualifiedLocationName": null,
                "hiddenComments": null,
                "id": 0,
                "leaveCategoryId": null,
                "locationId": "123456",
                "payCategoryId": null,
                "rate": 20,
                "shiftConditionIds": null,
                "shiftConditions": null,
                "source": "None",
                "startTime": "2017-06-15T09:00:00",
                "status": null,
                "submittedByUser": null,
                "units": 8,
                "workType": null,
                "workTypeId": "WT1485"
            }
        ]
    },
    "toDate": "2017-06-30T00:00:00",
    "workTypeIdType": "External"
}

Properties

Name Type Description
approved boolean Boolean
employeeIdType string IdType

Possible values are:

  • Standard
  • External
fromDate date-time Nullable
locationIdType string IdType

Possible values are:

  • Standard
  • External
replaceExisting boolean Boolean
timesheets object IDictionary
timesheets.<key> map of array IList
timesheets.<key>.attachment object Attachment
timesheets.<key>.attachment.data byte Byte[]
timesheets.<key>.attachment.dateCreated date-time Nullable
timesheets.<key>.attachment.dateScanned date-time Nullable
timesheets.<key>.attachment.friendlyName string String
timesheets.<key>.attachment.id int32 Nullable
timesheets.<key>.attachment.isDeleted boolean Boolean
timesheets.<key>.attachment.isInfected boolean Nullable
timesheets.<key>.attachment.url string String
timesheets.<key>.attachmentId int32 Nullable
timesheets.<key>.breaks[] array
timesheets.<key>.breaks[].endTime date-time Nullable
timesheets.<key>.breaks[].startTime date-time Nullable
timesheets.<key>.comments string String
timesheets.<key>.employeeId int32 Int32
timesheets.<key>.endTime date-time Nullable
timesheets.<key>.externalId string String
timesheets.<key>.fullyQualifiedLocationName string String
timesheets.<key>.hiddenComments string String
timesheets.<key>.id int32 Int32
timesheets.<key>.leaveCategoryId string String
timesheets.<key>.locationId string String
timesheets.<key>.payCategoryId string String
timesheets.<key>.rate double Nullable
timesheets.<key>.shiftConditionIds[] array of string
timesheets.<key>.shiftConditions[] array
timesheets.<key>.shiftConditions[].id int32 Int32
timesheets.<key>.shiftConditions[].name string String
timesheets.<key>.source string ExternalService

Possible values are:

  • None
  • Saasu
  • Xero
  • MYOB
  • Deputy
  • EmployeeTimePunch
  • ClickSuper
  • IntegratedTimesheets
  • FileImport
  • FileExport
  • QuickBooks
  • Harmony
  • AwardStore
  • Attache
  • IntegratedRostering
  • ReckonAccounts
  • API
  • MicroPower
  • RosterLive
  • NetSuite
  • Kounta
  • TimeAndAttendanceKiosk
  • DetailedFileExport
  • JonasPremier
  • WageEasy
  • Maestrano
  • WorkZone
  • EmployeePortal
  • RosterTemplate
  • Onboarding
  • Admin
  • WorkZoneClockOnOff
  • NetSuiteOneWorld
  • Sage50
  • PensionSync
  • FinancialsOffice
  • ProntoXI
  • PayRunDefault
  • StandardWorkDay
  • Beam
  • PayRunAutomation
  • BureauDashboard
  • Wiise
  • QBOMigrationTool
  • AbridgedFileImport
  • QBOForcedMigration
  • HmrcDpsUpdate
  • HmrcDpsStudentLoan
  • HmrcDpsPostGradLoan
  • Sage50FileImporter
  • FPSFileImporter
  • OAuth
  • FreshBooks
  • StarFileImporter
  • ActiveCampaign
  • SummaryAndDetailsExport
  • Telleroo
  • EmployeeAdvancedHoursUpload
  • BusinessCentral
  • Paytron
  • Zoho
  • FlatFileEmployeeImporter
timesheets.<key>.startTime date-time Nullable
timesheets.<key>.status string String
timesheets.<key>.submittedByUser string String
timesheets.<key>.units double Nullable
timesheets.<key>.workType string String
timesheets.<key>.workTypeId string String
toDate date-time Nullable
workTypeIdType string IdType

Possible values are:

  • Standard
  • External

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK