Payroll
4 operations. All areas
- GET /v1/payroll/ytd
- POST /v1/payroll/ytd
- POST /v1/payroll/ytd/{id}/void
- POST /v1/payroll/ytd/{id}/summary-entry
GET/v1/payroll/ytd
Payroll year to date imported from the previous provider: per employee and payroll item, with the W-2 boxes it implies
- Operation
getPayrollYtd - Scope: read
- Read
- Parameters
yearquery, integer, required
- Responses
200Payroll YTD (object)- Errors
400,401,403,429,500(Error:error.type,message)
POST/v1/payroll/ytd
Import the previous payroll provider's year-to-date report (CSV: one row per employee; Employee, Gross Wages and the withholding and employer-tax columns ADR-0185 lists). dry_run previews. People only (a firm member needs the client's admin capability); agents read and are refused.
- Operation
importPayrollYtd - Scope: admin
- Write: needs Idempotency-Key (or dry_run)
- Request body
csvstring, required The CSV text (UTF-8, a header row first).providerstring, requiredtax_yearinteger, requiredperiod_throughstring, required Calendar date, YYYY-MM-DD.switch_idstringdry_runboolean
- Responses
200Checked (dry run or problems) (object)201Imported (object)- Errors
400,401,403,409,422,429,500(Error:error.type,message)
POST/v1/payroll/ytd/{id}/void
Void an imported payroll report, with a reason. People only (a firm member needs the client's admin capability); agents read and are refused.
- Operation
voidPayrollYtd - Scope: admin
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
reasonstring, required
- Responses
200Voided (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)
POST/v1/payroll/ytd/{id}/summary-entry
Post the summary journal entry for January to the switch from the payroll report (for payroll NOT in the migrated history; refused when the wages account already holds the year's wages). People only (a firm member needs the client's admin capability); agents read and are refused.
- Operation
postPayrollSummary - Scope: admin
- Write: needs Idempotency-Key (or dry_run)
- Parameters
idpath, string, required
- Request body
entry_datestring, required Calendar date, YYYY-MM-DD.wages_accountstring, requiredemployer_tax_accountstring, requiredliability_accountstring, requirednet_pay_accountstring, required
- Responses
201Posted (object)- Errors
400,401,403,404,409,422,429,500(Error:error.type,message)