companyUid required | string <uuid> |
api-version | string |
filter.skip | integer <int32> |
filter.take | integer <int32> |
filter.departments | Array of strings <uuid> |
filter.isProcessed | boolean |
using System; using System.Net.Http; using System.Threading.Tasks; public class Program { public static async Task Main(string[] args) { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>"); var CompanyUid = "YOUR_companyUid_PARAMETER"; var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/employees/resignations?api-version=string&filter.skip=0&filter.take=0&filter.departments=497f6eca-6276-4993-bfeb-53cbbbba6f08&filter.isProcessed=true"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
{- "totalRecords": 0,
- "totalDisplayRecords": 0,
- "data": [
- {
- "name": "string",
- "employeeNumber": "string",
- "title": "string",
- "incomeType": 0,
- "salaryType": 0,
- "employmentDate": "2019-08-24T14:15:22Z",
- "dateOfResignation": "2019-08-24T14:15:22Z",
- "lastWorkDay": "2019-08-24T14:15:22Z",
- "reason": 1,
- "resignedBy": 1,
- "isProcessed": true,
- "department": {
- "name": "string",
- "number": "string",
- "hasWorkSchema": true,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}, - "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
}
companyUid required | string <uuid> |
api-version | string |
required | Array of objects (Zalary.Models.Employee.Resignation.EmployeeResignationExtendedRequest) |
{- "employees": [
- {
- "employeeUid": "00000000-0000-0000-0000-000000000000",
- "employeeResignation": {
- "dateOfResignation": "2019-08-24T14:15:22Z",
- "lastWorkDay": "2019-08-24T14:15:22Z",
- "reason": 1,
- "resignedBy": 1,
- "note": "string"
}
}
]
}
[- "00000000-0000-0000-0000-000000000000"
]
companyUid required | string <uuid> |
employeeUid required | string <uuid> |
api-version | string |
dateOfResignation required | string <date-time> |
lastWorkDay required | string <date-time> |
reason required | integer <int32> Enum: 1 2 3 4 5 6 |
resignedBy required | integer <int32> Enum: 1 2 3 4 |
note | string |
{- "dateOfResignation": "2019-08-24T14:15:22Z",
- "lastWorkDay": "2019-08-24T14:15:22Z",
- "reason": 1,
- "resignedBy": 1,
- "note": "string"
}
{- "dateOfResignation": "2019-08-24T14:15:22Z",
- "reason": 1,
- "resignedBy": 1,
- "note": "string",
- "isProcessed": true,
- "lastWorkDay": "2019-08-24T14:15:22Z",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
companyUid required | string <uuid> |
employeeUid required | string <uuid> |
api-version | string |
using System; using System.Net.Http; using System.Threading.Tasks; public class Program { public static async Task Main(string[] args) { using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>"); var CompanyUid = "YOUR_companyUid_PARAMETER"; var EmployeeUid = "YOUR_employeeUid_PARAMETER"; var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/resign?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
companyUid required | string <uuid> |
api-version | string |
employeeUid | string <uuid> |
required | object (Zalary.Models.Employee.Resignation.EmployeeReactivateRequest) |
[- {
- "employeeUid": "00000000-0000-0000-0000-000000000000",
- "request": {
- "salaryType": 0,
- "clearStartSaldo": true,
- "type": 1,
- "taxCardType": 0,
- "startDateEmployment": "2019-08-24T14:15:22Z",
- "startDateAncinity": "2019-08-24T14:15:22Z",
- "useGlobalValueSet": true,
- "globalValueSet": "00000000-0000-0000-0000-000000000000"
}
}
]
companyUid required | string <uuid> |
employeeUid required | string <uuid> |
api-version | string |
salaryType | integer <int32> Enum: 0 1 2 3 4 5 |
clearStartSaldo | boolean |
type | integer <int32> Enum: 1 2 3 |
taxCardType | integer <int32> Enum: 0 1 2 3 4 |
startDateEmployment | string <date-time> |
startDateAncinity | string <date-time> |
useGlobalValueSet | boolean |
globalValueSet | string <uuid> |
{- "salaryType": 0,
- "clearStartSaldo": true,
- "type": 1,
- "taxCardType": 0,
- "startDateEmployment": "2019-08-24T14:15:22Z",
- "startDateAncinity": "2019-08-24T14:15:22Z",
- "useGlobalValueSet": true,
- "globalValueSet": "00000000-0000-0000-0000-000000000000"
}