Evaluates shift costings for the employment agreement with the specified ID.

Request

POST https://api.yourpayroll.com.au/api/v2/business/{businessId}/employmentagreement/{id}/shiftcosting

Path parameters

Parameter name Value Description Additional
id int32 Required
businessId string Required

Request body

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

{
    "employee": {
        "anniversaryDate": "date-time",
        "dateOfBirth": "date-time",
        "standardHoursPerWeek": "double",
        "tags": [
            "string"
        ]
    },
    "includeEvaluationResults": "boolean",
    "locationIdType": "string",
    "shifts": [
        {
            "attachmentId": "int32",
            "breaks": [
                {
                    "endTime": "date-time",
                    "startTime": "date-time"
                }
            ],
            "classificationId": "string",
            "comments": "string",
            "employeeId": "int32",
            "endTime": "date-time",
            "externalId": "string",
            "id": "int32",
            "leaveCategoryId": "string",
            "locationId": "string",
            "payCategoryId": "string",
            "rate": "double",
            "shiftConditionIds": [
                "string"
            ],
            "source": "string",
            "startTime": "date-time",
            "state": "string",
            "status": "string",
            "units": "double",
            "workTypeId": "string"
        }
    ],
    "transactionExternalId": "string",
    "workTypeIdType": "string"
}

Properties

Name Type
employee object
employee.anniversaryDate date-time
employee.dateOfBirth date-time
employee.standardHoursPerWeek double
employee.tags[] array of string
includeEvaluationResults boolean
locationIdType string
shifts[] array
shifts[].attachmentId int32
shifts[].breaks[] array
shifts[].breaks[].endTime date-time
shifts[].breaks[].startTime date-time
shifts[].classificationId string
shifts[].comments string
shifts[].employeeId int32
shifts[].endTime date-time
shifts[].externalId string
shifts[].id int32
shifts[].leaveCategoryId string
shifts[].locationId string
shifts[].payCategoryId string
shifts[].rate double
shifts[].shiftConditionIds[] array of string
shifts[].source string
shifts[].startTime date-time
shifts[].state string
shifts[].status string
shifts[].units double
shifts[].workTypeId string
transactionExternalId string
workTypeIdType string

Response

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

Status code Description Resource
200 OK

OK

ShiftCostingsResponseModel