Creates a new pay run for this business asynchronously (the request will return before the pay run is created).

Request

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

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

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

{
    "callbackUrl": "string",
    "datePaid": "date-time",
    "externalId": "string",
    "payPeriodEnding": "date-time",
    "payScheduleId": "int32",
    "timesheetImportOption": "string"
}

Properties

Name Type Description
callbackUrl string String
datePaid date-time DateTime
externalId string String
payPeriodEnding date-time DateTime
payScheduleId int32 Int32
timesheetImportOption string Nullable

Possible values are:

  • None
  • ThisPayPeriod
  • AllOutstanding

Response

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

Status code Description Resource
200 OK

OK