Finalises the specified pay run. A pay run can only be finalised if there are no calculations in progress.

Request

POST https://keypay.yourpayroll.com.au/api/v2/business/{businessId}/payrun/{payRunId}/finalise

Path parameters

Parameter name Value Description Additional
payRunId int32 Required
businessId string Required

Request body

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

{
    "datePaid": "date-time",
    "exportJournals": "boolean",
    "lodgePayRun": "boolean",
    "lodgePayRunInTestMode": "boolean",
    "payRunId": "int32",
    "publishPaySlips": "string",
    "publishPaySlipsDateTime": "date-time",
    "submitToPensionSync": "boolean",
    "suppressNotifications": "boolean"
}

Properties

Name Type Description
datePaid date-time Nullable
exportJournals boolean Boolean
lodgePayRun boolean Boolean
lodgePayRunInTestMode boolean Boolean
payRunId int32 Int32
publishPaySlips string PublishPaySlipsPreference

Possible values are:

  • Manual
  • Immediate
  • Scheduled
publishPaySlipsDateTime date-time Nullable
submitToPensionSync boolean Boolean
suppressNotifications boolean Boolean

Response

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

Status code Description Resource
200 OK

OK

PayRunFinaliseResult