Create employee
documentedCreate a payroll employee.
POST /EmployeesPayrollNzno implementation yet0 runsNo 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/2.0/employees" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Xero-Tenant-Id: {{$tenant_id}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Idempotency-Key: {{$idempotency_key}}" \
-d '{"FirstName": "{{$first_name}}", "LastName": "{{$last_name}}", "DateOfBirth": "{{$date_of_birth}}", "Address": {"AddressLine1": "{{$address_line1}}", "City": "{{$city}}", "PostCode": "{{$postal_code}}", "CountryName": "{{$country_name}}"}, "Email": "{{$email}}", "EmployeeNumber": "{{$employee_number}}"}'