Retrieve a payroll run

Returns a single payroll run by its ID, with how much of it is still awaiting payment. Payroll runs come from the organization's connected payroll provider: each run is one pay period's payroll, which Books records as an accrual to be matched to the payments that settle it. The run has the fields of an item of getBooksPayrollRuns (id, runType, payPeriodStart, payPeriodEnd, postingDate, totalPayroll, employerCost, matchingStatus), plus amountPaid (already matched to payments), amountOutstanding (what a payment can still be matched to: totalPayroll net of payments and adjustments), initialAccrualJournalEntryId (the journal entry that recorded the run, omitted when there is none), relatedJournalEntryIds (every journal entry touching the run: the initial accrual and the entries of payments matched to it; read one with retrieveBooksJournalEntry), and lines. Each line has its sourceLineId, description, amount, amountPaid, amountOutstanding (amount less amountPaid), matchingStatus, and matchable; only matchable lines can be matched to a payment. Before matching a payment to the run, read amountOutstanding on the run and on its lines. Amounts are in dollars; a line's amount and amountOutstanding are negative for an offset or reversal. An unknown ID returns 404, and an ID from another Books instance returns 403. To discover payroll run IDs, use getBooksPayrollRuns.

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

The ID of the payroll run to retrieve, as returned by getBooksPayrollRuns.

Query Params
uuid

The Books instance to act on. Must be the token organization's own instance, which it defaults to.

Responses

400

Invalid booksId

404

payrollRunId not found

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