AccountRate

GetRates

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
query Parameters
isStandard
boolean
isDisabled
boolean
search
string
sortOptions
integer <int32>
overrides
Array of booleans
skip
integer <int32>
take
integer <int32>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/rates?isStandard=true&isDisabled=true&search=string&sortOptions=0&overrides=true&skip=0&take=0");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

AddAccountRate

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
Request Body schema:
name
string
number
string
allowedUserGroups
Array of strings <uuid>
allowedUsers
Array of strings <uuid>
limitUserAccess
boolean
isStandard
boolean
overrideRate
boolean
object (DenmarkSpecificData)
paymentPerRate
number <double>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GetRatesAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
query Parameters
search
string
sortOptions
integer <int32>
isDisabled
boolean
skip
integer <int32>
take
integer <int32>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/rates/international?search=string&sortOptions=0&isDisabled=true&skip=0&take=0");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

AddAccountRateAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
Request Body schema:
name
string
number
string
paymentPerRate
number <double>
limitUserAccess
boolean
overrideRate
boolean
accountNumberDebit
string
accountNumberCredit
string
wageTypeCode
string
wageTypeName
string
isDisabled
boolean
allowedUsers
Array of strings <uuid>
allowedUserGroups
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GetRateDetails

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
rateUid
required
string <uuid>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var RateUid = "YOUR_rateUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/rates/" + RateUid);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

DeleteRate

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
rateUid
required
string <uuid>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var RateUid = "YOUR_rateUid_PARAMETER";
      var request = await client.DeleteAsync("/api/hours/accounts/" + AccountUid + "/rates/" + RateUid);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

UpdateAccountRate

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
rateUid
required
string <uuid>
Request Body schema:
name
string
number
string
allowedUserGroups
Array of strings <uuid>
allowedUsers
Array of strings <uuid>
limitUserAccess
boolean
isStandard
boolean
overrideRate
boolean
object (DenmarkSpecificData)
paymentPerRate
number <double>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GetRateAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
rateUid
required
string <uuid>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var RateUid = "YOUR_rateUid_PARAMETER";
      var request = await client.GetAsync("/api/hours/accounts/" + AccountUid + "/rates/international/" + RateUid);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

UpdateAccountRateAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
rateUid
required
string <uuid>
Request Body schema:
name
string
number
string
paymentPerRate
number <double>
limitUserAccess
boolean
overrideRate
boolean
accountNumberDebit
string
accountNumberCredit
string
wageTypeCode
string
wageTypeName
string
isDisabled
boolean
allowedUsers
Array of strings <uuid>
allowedUserGroups
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

DisableRate

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
rateUid
required
string <uuid>

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 AccountUid = "YOUR_accountUid_PARAMETER";
      var RateUid = "YOUR_rateUid_PARAMETER";
      var request = await client.PatchAsync("/api/hours/accounts/" + AccountUid + "/rates/" + RateUid + "/disable", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

DeleteCompanyExtraHourPaymentRateOverridesAsync

Authorizations:
oauth2 (scope:hours)
path Parameters
accountUid
required
string <uuid>
Request Body schema:
hourRateUids
required
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}