Sign in

Create employee

documented

Create a payroll employee.

POST /EmployeesPayrollAuno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.xero.com/payroll.xro/1.0/Employees" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Xero-Tenant-Id: {{$tenant_id}}" \
  -H "Idempotency-Key: {{$idempotency_key}}" \
  -d '{"employee":[{"firstName":"{{$firstName}}","lastName":"{{$lastName}}","dateOfBirth":"{{$dateOfBirth}}","homeAddress":{"addressLine1":"{{$addressLine1}}","city":"{{$city}}","region":"{{$region}}","postalCode":{{$postalCode}}}}]}'