Payroll
Sync Gusto payroll history into the local cache
Pulls new/changed payrolls from Gusto into the org's snapshot cache. Skips Gusto entirely when the last completed sync is fresh unless {force:true}. Read-only against Gusto (list_payrolls + get_payroll only); never runs, updates, or modifies payroll. Scoped to the authorized organization.
post/payroll/sync
Request
- Base URL: https://ledgerhq.pro/api/v1
- URL: https://ledgerhq.pro/api/v1/payroll/sync
- Auth: one of:
- HTTP bearer and API key in header x-organization-id
- HTTP bearer and API key in header x-organization-id
Request body
Response
{synced, fresh, inserted, updated, skippedImmutable, total, lastSyncedAt, lastCompletedAt}
Changes
No recorded changes to this operation across all 3 revisions of this API.