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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Invalid booksId
404payrollRunId not found

