Sets the rounding rules for the business.

Request

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

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

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

{
    "breakEndRoundingDirection": "string",
    "breakEndRoundingInterval": "int32",
    "breakStartRoundingDirection": "string",
    "breakStartRoundingInterval": "int32",
    "id": "int32",
    "roundDownToShiftEndTimeRoundingInterval": "int32",
    "roundDownToShiftStartTimeRoundingInterval": "int32",
    "roundUpToShiftEndTimeRoundingInterval": "int32",
    "roundUpToShiftStartTimeRoundingInterval": "int32",
    "shiftEndRoundingDirection": "string",
    "shiftEndRoundingInterval": "int32",
    "shiftStartRoundingDirection": "string",
    "shiftStartRoundingInterval": "int32"
}

Properties

Name Type
breakEndRoundingDirection string
breakEndRoundingInterval int32
breakStartRoundingDirection string
breakStartRoundingInterval int32
id int32
roundDownToShiftEndTimeRoundingInterval int32
roundDownToShiftStartTimeRoundingInterval int32
roundUpToShiftEndTimeRoundingInterval int32
roundUpToShiftStartTimeRoundingInterval int32
shiftEndRoundingDirection string
shiftEndRoundingInterval int32
shiftStartRoundingDirection string
shiftStartRoundingInterval int32

Response

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

Status code Description Resource
200 OK

OK