Skip to main content
POST
/
payroll
/
draft
Draft a payroll run
curl --request POST \
  --url https://api.app.lastaccountingcompany.com/portal/payroll/draft \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "period": "<string>",
  "customer_id": "<string>",
  "payment_date": "<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.

customer_id
string

Target company. Optional for API keys.

payment_date
string

Intended payment date, YYYY-MM-DD.

idempotency_key
string

Client-chosen key to deduplicate retries.

Response

Updated payroll workspace including the draft 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.