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 Description
breakEndRoundingDirection string RoundingDirectionEnum

Possible values are:

  • None
  • Up
  • Down
  • ToTheNearest
breakEndRoundingInterval int32 Int32
breakStartRoundingDirection string RoundingDirectionEnum

Possible values are:

  • None
  • Up
  • Down
  • ToTheNearest
breakStartRoundingInterval int32 Int32
id int32 Int32
roundDownToShiftEndTimeRoundingInterval int32 Nullable
roundDownToShiftStartTimeRoundingInterval int32 Nullable
roundUpToShiftEndTimeRoundingInterval int32 Nullable
roundUpToShiftStartTimeRoundingInterval int32 Nullable
shiftEndRoundingDirection string RoundingDirectionEnum

Possible values are:

  • None
  • Up
  • Down
  • ToTheNearest
shiftEndRoundingInterval int32 Int32
shiftStartRoundingDirection string RoundingDirectionEnum

Possible values are:

  • None
  • Up
  • Down
  • ToTheNearest
shiftStartRoundingInterval int32 Int32

Response

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

Status code Description Resource
200 OK

OK