200Successful Response
Schema: SuccessEnvelope_GustoReconcilePreviewResponse_
successbooleanmessagestringcodestringdataGustoReconcilePreviewResponse
/api/v1/payroll/gusto/reconcile/previewReads the Gusto exports given (Payroll Journal / Register, Contractor Payments, Bank Transactions; uploaded via s3_key or pasted), matches them to the Gusto bank rows in the range and returns the plan: per row the new description, counterparty, ledger, the per-employee split of each NET lump, and the accrual bill each TAX / reimbursement debit pays; plus everything left outstanding on either side and a plan_hash for apply. Nothing is changed.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: GustoReconcileRequest
reportsarray · GustoReportInputGustoReportInputGusto exports: Payroll Journal (or Payroll Register), Contractor Payments and/or Bank Transactions. Without any, only the bank lines' own descriptors are used (contractor payee, fee).
s3_keystringS3 key from POST /uploads (or generate_upload_url) of a CSV/XLSX exported from Gusto > Reports.
contentstringThe report pasted as CSV / tab-separated text.
filenamestringOriginal file name (format hint).
bank_ledger_idstringBank account Gusto debits. Omit to consider every bank account of the business.
start_datestring · daterequiredFirst bank date considered
end_datestring · daterequiredLast bank date considered
ledger_overridesGustoLedgerOverridesamount_tolerance_centsintegerLargest difference accepted between a payroll lump and the register total; the difference becomes a rounding leg.
create_billsbooleanBook tax and reimbursement debits as an accrual bill per pay period (vendor Gusto) paid by the bank row. False categorizes them directly instead.
Schema: SuccessEnvelope_GustoReconcilePreviewResponse_
successbooleanmessagestringcodestringdataGustoReconcilePreviewResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.