Rebuild a payment file with the current settings

Needs permission payment:export.

Builds the pay run's payment file again from the payments stored when it was locked, with the payment settings
as they are now: use it after changing the bank or the file type (txt or csv) for a pay run that is already
locked. The payments are the same; only the file changes. The file it replaces is never deleted: it stays
downloadable from the history's replacedFiles. The rebuild runs in the background: status is
REBUILDING until it ends GENERATED, PARTIAL_SUCCESS or FAILED, and the outcome is announced as a payment file
event with trigger rebuild. If the earlier file was already sent to the bank, do not send this one too.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The pay schedule (payroll configuration) the pay run belongs to.

int32
required

The tax year the pay run is in, by the year it starts (2025 is 2025/26).

string
required

How often the pay schedule pays, as it is named on the pay run (for example Weekly or Monthly).

int32
required

The pay period number within the tax year.

Headers
string

Optional. Your id for this request: it is carried into every log line about it, so quote it when you contact support.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json