Allows you to create a single new employees used in Xero payrun

POST {{baseUrl}}/Employees?summarizeErrors=false

Request Params

KeyDatatypeRequiredDescription
summarizeErrorsbooleanIf false return 200 OK and mix of successfully created objects and any with validation errors

Request Body

{"Employees"=>[{"EmployeeID"=>"<uuid>", "Status"=>"<string>", "FirstName"=>"<string>", "LastName"=>"<string>", "ExternalLink"=>{"LinkType"=>"<string>", "Url"=>"<string>", "Description"=>"<string>"}, "StatusAttributeString"=>"<string>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}, {"EmployeeID"=>"<uuid>", "Status"=>"<string>", "FirstName"=>"<string>", "LastName"=>"<string>", "ExternalLink"=>{"LinkType"=>"<string>", "Url"=>"<string>", "Description"=>"<string>"}, "StatusAttributeString"=>"<string>", "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}]}]}

HEADERS

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;0d6a08e7-6936-4828-a1bc-e4595e0ef778&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552324736508)/&quot;,&quot;Employees&quot;:[{&quot;EmployeeID&quot;:&quot;e1ada26b-a10e-4065-a941-af34b53740e3&quot;,&quot;Status&quot;:&quot;ACTIVE&quot;,&quot;FirstName&quot;:&quot;Nick&quot;,&quot;LastName&quot;:&quot;Fury&quot;,&quot;ExternalLink&quot;:{&quot;Url&quot;:&quot;http://twitter.com/#!/search/Nick+Fury&quot;,&quot;Description&quot;:&quot;Go to external link&quot;},&quot;UpdatedDateUTC&quot;:&quot;/Date(1552324736463+0000)/&quot;}]}