EmployeePensions

EmployeePensions_GetEmployeePensionsAsync

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 + "/pensions?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

EmployeePensions_InsertEmployeePensionAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
pensionUid
string <uuid>
object (Zalary.Models.Pension.PensionDto)
accountNumber
string
registerNumber
string
privatePension
number <double>
companyPension
number <double>
policyReferenceNumber
string
pensionValueType
integer <int32>
Enum: 0 1
taxPensionAmount
boolean
unionCode
string
coverageBaseSalary
number <double>
employeeWageCode
string
companyWageCode
string
insuranceAmount
number <double>
groupLifeAgreementNumber
string
calculateFromAmPension
boolean

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

EmployeePensions_GetEmployeePensionAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
employeePensionUid
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 EmployeePensionUid = "YOUR_employeePensionUid_PARAMETER";
      var request = await client.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/pensions/" + EmployeePensionUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

EmployeePensions_DeleteEmployeePensionAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
employeePensionUid
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 EmployeePensionUid = "YOUR_employeePensionUid_PARAMETER";
      var request = await client.DeleteAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/pensions/" + EmployeePensionUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

EmployeePensions_PatchEmployeePensionAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
employeePensionUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
pensionUid
string <uuid>
object (Zalary.Models.Pension.PensionDto)
accountNumber
string
registerNumber
string
privatePension
number <double>
companyPension
number <double>
policyReferenceNumber
string
pensionValueType
integer <int32>
Enum: 0 1
taxPensionAmount
boolean
unionCode
string
coverageBaseSalary
number <double>
employeeWageCode
string
companyWageCode
string
insuranceAmount
number <double>
groupLifeAgreementNumber
string
calculateFromAmPension
boolean

Responses

Request samples

Content type
{
}

EmployeePensions_InsertBulkEmployeePensionsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
Array ()
employeeUid
string <uuid>
required
object (Zalary.Models.Pension.InsertEmployeePensionRequest)

Responses

Request samples

Content type
[
]

Response samples

Content type
[
]