Payroll

Payroll_GetPayrollsForApprovalForUserAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Payroll_GetPayroll

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Payroll_CancelPayroll

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Payroll_PatchPayrollAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
dispositionDate
required
string <date-time>
periodFrom
required
string <date-time>
periodTo
required
string <date-time>
selectedEmployeeUid
required
Array of strings <uuid>
hasHolidaySupplementPayout
boolean
hasHolidayPaymentPayout
boolean
hasHolidayPaymentToHolidayPayPayout
boolean
hasBenefitPackagePayout
boolean
hasBenefitPackageTwoPayout
boolean
hasTimeInLieuPayout
boolean
disablePayslipNotification
boolean
sendPayslipNotificationOn
string <date-time>
isPaid
boolean
Array of objects (Zalary.Models.Payroll.PayrollRegistrationPeriodDto)
note
string [ 0 .. 250 ] characters
hasHolidayPaymentTaxationAndTransferToNextYear
boolean
hasHolidayPaymentNettoPayout
boolean
hasFifthHolidayWeekPayout
boolean
extraPayrollRun
boolean

Responses

Request samples

Content type
{
}

Response samples

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

Payroll_CheckForActivePayroll

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
type
required
integer <int32>
Enum: 0 1 2 3 4 5
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 Type = "YOUR_type_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + Type + "/active?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Payroll_GetPayrollRunnableTypes

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Payroll_GetPayrollStatus

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "/status?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Payroll_SetPayrollStatusAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
status
integer <int32>
Enum: 1 2 4 8 16 17 32 36 64 128 256 512 1024 2048 3072 3089 4096 7379 7383

Responses

Request samples

Content type
{
}

Response samples

Content type
1

Payroll_GetCsvExport

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "/report/salary?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{ }

Payroll_GetCompanyPayrollsAccountingTypeInformation

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Payroll_GetVacationCsvExportAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "/report/vacation?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
"string"

Payroll_GetPayslipsReportUriAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "/payslips/documents?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
"string"

Payroll_RegenerateAllPayslipsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.PostAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "/payslips/documents?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Payroll_GetPayrollControlValidationsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
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 PayrollUid = "YOUR_payrollUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/payroll/" + PayrollUid + "/control/validations?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{