List payroll runs

Returns one page of a Books instance's payroll runs. 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. Each run has its id, runType (regular, offCycle, or oneTime), payPeriodStart and payPeriodEnd, postingDate (the date it is posted to the ledger), totalPayroll (the cash requirement: net pay plus employee and employer taxes), employerCost (earnings, employer taxes, and employer contributions), and matchingStatus (unmatched, partiallyMatched, or fullyMatched), which says how much of the run has been matched to payments. Amounts are in dollars. To find runs still awaiting payment, pass matchingStatuses=unmatched,partiallyMatched. To see how much of one run a payment can still be matched to, retrieve it with getBooksPayrollRun and read amountOutstanding on the run and on each of its lines. Dates are YYYY-MM-DD and every date range is inclusive. Each response is one page of at most limit runs (default 50, at most 250). To see every match, pass nextPageToken back as pageToken with the same other parameters, and repeat until a response has no nextPageToken.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
uuid

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

matchingStatuses
array of strings

Comma-separated list of matching statuses to include: unmatched, partiallyMatched, or fullyMatched. Pass unmatched,partiallyMatched for runs still awaiting payment.

matchingStatuses
Allowed:
runTypes
array of strings

Comma-separated list of run types to include: regular, offCycle, or oneTime.

runTypes
Allowed:
date

Only return runs whose pay period starts on or after this date (inclusive, YYYY-MM-DD).

date

Only return runs whose pay period starts on or before this date (inclusive, YYYY-MM-DD).

date

Only return runs whose pay period ends on or after this date (inclusive, YYYY-MM-DD).

date

Only return runs whose pay period ends on or before this date (inclusive, YYYY-MM-DD).

date

Only return runs posted on or after this date (inclusive, YYYY-MM-DD).

date

Only return runs posted on or before this date (inclusive, YYYY-MM-DD).

double

Only return runs with a totalPayroll of at least this many dollars.

double

Only return runs with a totalPayroll of at most this many dollars.

double

Only return runs with an employerCost of at least this many dollars.

double

Only return runs with an employerCost of at most this many dollars.

string
enum

The order to return runs in, as a single value. Defaults to the latest postingDate first.

string

The nextPageToken or prevPageToken from a previous response, to fetch that page.

integer
1 to 250
Defaults to 50

The maximum number of payroll runs to return per page, from 1 to 250. Defaults to 50.

Responses

400

Invalid limit or pageToken or sort or maxEmployerCost or minEmployerCost or maxTotalPayroll or minTotalPayroll or postingDateTo or postingDateFrom or payPeriodEndTo or payPeriodEndFrom or payPeriodStartTo or payPeriodStartFrom or runTypes or matchingStatuses or booksId

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