CompanyCar

CompanyCar_GetCompanyCarLicancePlateAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCar_GetCompanyCarDetailsAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyCar_DeleteCompanyCarAsync

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

      Console.WriteLine(response);
    }
  }
}

CompanyCar_UpdateCompanyCarAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
companyCarUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
carValue
number <double>
privateChargerValue
number <double>
assignedToEmployeeUid
string <uuid>
periodFrom
string <date-time>
periodTo
string <date-time>
ownPayment
number <double>
greenOwnersFee
number <double>
sendNotification
boolean
userToNotifyUid
string <uuid>
boughtAsOld
boolean

Responses

Request samples

Content type
{
}

CompanyCar_CreateCompanyCarAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
licensePlate
required
string [ 0 .. 15 ] characters
brand
required
string [ 0 .. 255 ] characters
model
string [ 0 .. 255 ] characters
leased
required
boolean
electricOrPlugInHybrid
required
boolean
firstRegistrationDate
required
string <date-time>
greenOwnersFee
number <double>
carValue
number <double>
privateChargerValue
number <double>
ownPayment
number <double>
assignedToEmployeeUid
string <uuid>
periodFrom
string <date-time>
periodTo
string <date-time>
sendNotification
boolean
userToNotifyUid
string <uuid>
boughtAsOld
boolean

Responses

Request samples

Content type
{
}

CompanyCar_GetCompanyCarAsync

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

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

CompanyCar_BulkDeleteCompanyCarsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
Array ()
string <uuid>

Responses

Request samples

Content type
[
]