If an ID is passed or an existing employee is matched (according to the matchType parameter), it will be updated. Otherwise a new employee will be created.
MatchType parameter values:
An employee may be created with a status of 'Incomplete' by specifying at least the minimum fields; firstName, surname, startDate, employmentType, taxCodeDeclaration_IrdNumber, taxCodeDeclaration_EsctRate, kiwiSaver_EnrollmentStatus. For an employee record to be considered 'Complete' the following groups of data are required:
If reporting dimensions are enabled for the business, add primary reporting dimension values using "|" as a separator between values.
POST http:///api/v2/business/{businessId}/employee/unstructured
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| businessId | string | Required |
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| model | |||
| matchType | string |
Possible values are:
|
The following HTTP status codes may be returned, optionally with a response resource.
| Status code | Description | Resource |
|---|---|---|
| 200 | OK OK |
EmployeeUpdateResponseModel |
| 201 | Created Created |
EmployeeUpdateResponseModel |
| 400 | Bad Request Bad Request |
ProblemDetails |
Powered by DapperDox