PayrollApprovalForPayroll

PayrollApprovalForPayroll_GetPayrollApprovalSettingsForPayrollAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

PayrollApprovalForPayroll_GetResponsiblePersonsForApprovalFlowForPayrollAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

PayrollApprovalForPayroll_ActivatePayrollApprovalFlowForPayrollAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
payrollApprovers
Array of strings <uuid>

Responses

Request samples

Content type
{
}

PayrollApprovalForPayroll_ChangeApproverActionForUserInPayrollAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
verificationCode
string
action
integer <int32>
Enum: 0 1 2
comment
string

Responses

Request samples

Content type
{
}

PayrollApprovalForPayroll_ActivatePayrollApprovalFlowForPayrollWithAutoCompleteAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
mobileVerificationCode
required
string 6 characters
payrollApprovers
Array of strings <uuid>

Responses

Request samples

Content type
{
}

PayrollApprovalForPayroll_CompletePayrollWithACommentAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
mobileVerificationCode
required
string 6 characters
comment
required
string [ 0 .. 250 ] characters

Responses

Request samples

Content type
{
}

PayrollApprovalForPayroll_CancelPayrollApprovalFlowForPayrollAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
payrollUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
comment
required
string [ 0 .. 250 ] characters

Responses

Request samples

Content type
{
}