Employees

Employees_GetEmployeeBasesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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://api.zenegy.com/api/companies/" + CompanyUid + "/employees?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_UpsertEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
employeeType
required
integer <int32>
Enum: 1 2 3
pnumber
required
string
address
required
string [ 0 .. 50 ] characters
city
required
string [ 0 .. 50 ] characters
postalNumber
required
string [ 0 .. 20 ] characters
mobilePhone
string [ 0 .. 50 ] characters
kontoNumber
string
regNumber
string
cpr
string [ 0 .. 30 ] characters
email
string [ 0 .. 75 ] characters
name
required
string [ 0 .. 150 ] characters
linkedIn
string [ 0 .. 200 ] characters
carRegistrationNumber
string [ 0 .. 20 ] characters

Responses

Request samples

Content type
{
}

Response samples

Content type
"00000000-0000-0000-0000-000000000000"

Employees_PostEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
iban
string [ 0 .. 34 ] characters
swift
string [ 0 .. 11 ] characters
isForeign
boolean
isCprValidated
boolean
employeeNumber
string
extraEmployeeNumber
string
globalValueSetUid
string <uuid>
employmentDate
string <date-time>
ancinityDate
string <date-time>
object (Zalary.Models.Employee.UpdateEmployeeStartSaldoRequest)
object (Zalary.Models.Employee.EmployeeEmploymentBaseDto)
address
required
string [ 0 .. 50 ] characters
city
required
string [ 0 .. 50 ] characters
postalNumber
required
string [ 0 .. 20 ] characters
mobilePhone
string [ 0 .. 50 ] characters
kontoNumber
string
regNumber
string
cpr
string [ 0 .. 30 ] characters
email
string [ 0 .. 75 ] characters
name
required
string [ 0 .. 150 ] characters
linkedIn
string [ 0 .. 200 ] characters
carRegistrationNumber
string [ 0 .. 20 ] characters

Responses

Request samples

Content type
{
}

Response samples

Content type
"00000000-0000-0000-0000-000000000000"

Employees_GetEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_PutEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
required
object (Zalary.Models.Employee.UpdateEmployeeRequest)
required
object (Zalary.Models.Employee.UpdateEmployeeStartSaldoRequest)
required
object (Zalary.Models.Employee.UpdateEmployeeEmploymentRequest)
required
object (Zalary.Models.Employee.UpdateEmployeeAdditionalRequest)

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

Employees_DeleteEmployee

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Employees_GetEmployeeAgeAsync

Authorizations:
oauth2
path Parameters
employeeUid
required
string <uuid>
companyUid
required
string
query Parameters
api-version
string

Responses

Request samples

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 EmployeeUid = "YOUR_employeeUid_PARAMETER";
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/age?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
0

Employees_GetEmployeeAbsenceSaldoAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/saldo?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_GetEmployeeTurnoverAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
year
required
integer <int32>
api-version
string

Responses

Request samples

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://api.zenegy.com/api/companies/" + CompanyUid + "/employees/turnover?year=0&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_GetEmployeeProfile

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/profile?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_PatchEmployeeProfile

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
iban
string [ 0 .. 34 ] characters
swift
string [ 0 .. 11 ] characters
isForeign
boolean
isCprValidated
boolean
employeeNumber
string
extraEmployeeNumber
string
globalValueSetUid
string <uuid>
employmentDate
string <date-time>
ancinityDate
string <date-time>
object (Zalary.Models.Employee.UpdateEmployeeStartSaldoRequest)
object (Zalary.Models.Employee.EmployeeEmploymentBaseDto)
address
required
string [ 0 .. 50 ] characters
city
required
string [ 0 .. 50 ] characters
postalNumber
required
string [ 0 .. 20 ] characters
mobilePhone
string [ 0 .. 50 ] characters
kontoNumber
string
regNumber
string
cpr
string [ 0 .. 30 ] characters
email
string [ 0 .. 75 ] characters
name
required
string [ 0 .. 150 ] characters
linkedIn
string [ 0 .. 200 ] characters
carRegistrationNumber
string [ 0 .. 20 ] characters

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

Employees_GetEmployeeSkatMessages

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/taxcards?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_ForceRequestSkatMessage

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.PostAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/taxcards?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

Employees_GetEmployeeEmployeesBasesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/employees?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_GetEmployeeDepartmentAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/department?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_GetEmployeeItemsAccess

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/items-access?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_GetEmployeeImageAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
isAdd
boolean
api-version
string

Responses

Request samples

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.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/image?isAdd=true&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{ }

Employees_PutEmployeeImageAsync Deprecated

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.PostAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/image?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{ }

Employees_GetEmployeesByRegistrationAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
request.salaryPayoutPeriod
integer <int32>
Enum: 0 1 2 3 4
request.absenceFrom
string <date-time>
request.absenceTo
string <date-time>
request.mileageFrom
string <date-time>
request.mileageTo
string <date-time>
request.supplementsAndDeductionsFrom
string <date-time>
request.supplementsAndDeductionsTo
string <date-time>
request.hourRegistrationFrom
string <date-time>
request.hourRegistrationTo
string <date-time>
request.payrollPeriodTo
string <date-time>

Responses

Request samples

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://api.zenegy.com/api/companies/" + CompanyUid + "/employees/registrations?api-version=string&request.salaryPayoutPeriod=0&request.absenceFrom=2019-08-24T14%3A15%3A22Z&request.absenceTo=2019-08-24T14%3A15%3A22Z&request.mileageFrom=2019-08-24T14%3A15%3A22Z&request.mileageTo=2019-08-24T14%3A15%3A22Z&request.supplementsAndDeductionsFrom=2019-08-24T14%3A15%3A22Z&request.supplementsAndDeductionsTo=2019-08-24T14%3A15%3A22Z&request.hourRegistrationFrom=2019-08-24T14%3A15%3A22Z&request.hourRegistrationTo=2019-08-24T14%3A15%3A22Z&request.payrollPeriodTo=2019-08-24T14%3A15%3A22Z");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Employees_UpdateEmployeesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
required
Array of objects (Zalary.Models.Employee.UpdateEmployeeExtendedRequest)

Responses

Request samples

Content type
{
}

Response samples

Content type
[
]

Employees_PostEmployeesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
required
Array of objects (Zalary.Models.Employee.UpdateEmployee)

Responses

Request samples

Content type
{
}

Response samples

Content type
[
]

Employees_InviteEmployeeByEmailAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 75 ] characters
email
required
string [ 0 .. 75 ] characters
mobilePhone
string [ 0 .. 50 ] characters
invitationText
required
string
globalValueSetUid
string <uuid>
employmentDate
string <date-time>
ancinityDate
string <date-time>

Responses

Request samples

Content type
{
}

Employees_GetPersonByCpr

Authorizations:
oauth2
path Parameters
companyUid
required
string
query Parameters
api-version
string
Request Body schema:
pnr
required
string

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

Employees_InviteEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

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.PostAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/invite?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}