Adds timesheets for the specified business. This will not replace any existing timesheets.

Request

POST https://api.yourpayroll.com.au/api/v2/business/{businessId}/timesheet/bulk

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

The request body takes a complete SubmitTimesheetsRequest 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": "External",
    "fromDate": "2017-06-01T00:00:00",
    "locationIdType": "Standard",
    "replaceExisting": false,
    "timesheets": {
        "emP3316": [
            {
                "attachmentId": null,
                "breaks": [],
                "classificationId": null,
                "comments": null,
                "employeeId": 0,
                "endTime": "2017-06-11T13:00:00",
                "externalId": null,
                "id": 0,
                "leaveCategoryId": null,
                "locationId": null,
                "payCategoryId": null,
                "rate": null,
                "shiftConditionIds": null,
                "source": "None",
                "startTime": "2017-06-11T10:00:00",
                "status": null,
                "units": null,
                "workTypeId": null
            }
        ],
        "emP3317": [
            {
                "attachmentId": null,
                "breaks": [
                    {
                        "endTime": "2017-06-13T12:00:00",
                        "startTime": "2017-06-13T11:00:00"
                    }
                ],
                "classificationId": null,
                "comments": "Some Comments",
                "employeeId": 0,
                "endTime": "2017-06-13T17:00:00",
                "externalId": null,
                "id": 0,
                "leaveCategoryId": null,
                "locationId": "123456",
                "payCategoryId": null,
                "rate": 20,
                "shiftConditionIds": null,
                "source": "None",
                "startTime": "2017-06-13T09:00:00",
                "status": null,
                "units": 8,
                "workTypeId": "WT1485"
            },
            {
                "attachmentId": null,
                "breaks": [
                    {
                        "endTime": "2017-06-15T12:00:00",
                        "startTime": "2017-06-15T11:00:00"
                    }
                ],
                "classificationId": null,
                "comments": "Some Comments",
                "employeeId": 0,
                "endTime": "2017-06-15T17:00:00",
                "externalId": null,
                "id": 0,
                "leaveCategoryId": null,
                "locationId": "123456",
                "payCategoryId": null,
                "rate": 20,
                "shiftConditionIds": null,
                "source": "None",
                "startTime": "2017-06-15T09:00:00",
                "status": null,
                "units": 8,
                "workTypeId": "WT1485"
            }
        ]
    },
    "toDate": "2017-06-30T00:00:00",
    "workTypeIdType": "External"
}

Properties

Name Type
approved boolean
employeeIdType string
fromDate date-time
locationIdType string
replaceExisting boolean
timesheets object
timesheets.<key> map of array
timesheets.<key>.attachmentId int32
timesheets.<key>.breaks[] array
timesheets.<key>.breaks[].endTime date-time
timesheets.<key>.breaks[].startTime date-time
timesheets.<key>.classificationId string
timesheets.<key>.comments string
timesheets.<key>.employeeId int32
timesheets.<key>.endTime date-time
timesheets.<key>.externalId string
timesheets.<key>.id int32
timesheets.<key>.leaveCategoryId string
timesheets.<key>.locationId string
timesheets.<key>.payCategoryId string
timesheets.<key>.rate double
timesheets.<key>.shiftConditionIds[] array of string
timesheets.<key>.source string
timesheets.<key>.startTime date-time
timesheets.<key>.status string
timesheets.<key>.units double
timesheets.<key>.workTypeId string
toDate date-time
workTypeIdType string

Response

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

Status code Description Resource
200 OK

OK