CompanyAccounting

CompanyAccounting_GetCompanyAccountingTypesAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

CompanyAccounting_GetCompanyAccountingTypeAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyAccounting_GetCompanyAccountingTypeForSupplementRatesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
supplementType
required
integer <int32>
Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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 + "/accountings/supplement-rate?supplementType=0&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyAccounting_GetCompanyAccountingsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
skip
integer <int32>
take
integer <int32>
searchPhrase
string
type
Array of strings
override
Array of booleans

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

CompanyAccounting_GetCompanyAccountingOverridesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
skip
integer <int32>
take
integer <int32>
search
string
sourceType
Array of strings
types
Array of strings

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

CompanyAccounting_InsertCompanyAccountingDepartmentOverridesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
companyDepartmentUids
required
Array of strings <uuid>
type
required
string
description
required
string [ 0 .. 75 ] characters
accountNumber
required
string

Responses

Request samples

Content type
{
}

CompanyAccounting_BulkDeleteCompanyAccountingOverridesAsync

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

Responses

Request samples

Content type
{
}

CompanyAccounting_UpdateCompanyAccountingPlanAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
accountingTemplateUid
string <uuid>
removeCompanyOverrides
boolean

Responses

Request samples

Content type
{
}

CompanyAccounting_UpdateAccountingAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
companyAccountingUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
type
required
string
description
required
string [ 0 .. 75 ] characters
accountNumber
required
string

Responses

Request samples

Content type
{
}

CompanyAccounting_DeleteCompanyAccountingOverrideAsync

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

      Console.WriteLine(response);
    }
  }
}

CompanyAccounting_UpdateAccountingOverrideAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
accountingOverrideUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
type
required
string
description
required
string [ 0 .. 75 ] characters
accountNumber
required
string

Responses

Request samples

Content type
{
}