Skip to main content
POST
/
payroll
/
approve
Approve a payroll run (admin/approver only)
curl --request POST \
  --url https://api.app.lastaccountingcompany.com/portal/payroll/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "period": "<string>",
  "run_id": "<string>",
  "customer_id": "<string>",
  "idempotency_key": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Firebase ID token from an interactive portal session. Required for admin/approver-only operations (payroll approval, company settings, API-key management).

Body

application/json
period
string
required

Payroll period, YYYY-MM.

run_id
string
required

The drafted run to approve.

customer_id
string

Target company. Optional for single-company sessions.

idempotency_key
string

Client-chosen key to deduplicate retries.

Response

Updated payroll workspace with the approved run.

The payroll workspace for a period: employees, employer settings, and runs. Amounts are integer cents; rates are basis points. Interior shapes beyond the top level vary and are returned as-is.