MileagePrivate

MileagePrivate_GetMillagesPrivateAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
filter.skip
integer <int32>
filter.take
integer <int32>
filter.status
Array of integers <int32>
Items Enum: 1 2 3

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 + "/millage/private?api-version=string&filter.skip=0&filter.take=0&filter.status=1");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

MileagePrivate_InsertMileagePrivateAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
employeeUid
required
string <uuid>
date
required
string <date-time>
createdTime
string <date-time>
required
object (Zalary.Mileage.Contracts.Mileage.Models.MileageAddressDto)
required
object (Zalary.Mileage.Contracts.Mileage.Models.MileageAddressDto)
totalKm
required
number <double>
description
string
routeId
string
registrationNumber
string [ 0 .. 20 ] characters

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

MileagePrivate_SetMileagePrivateAsArhivedAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
mileageUid
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 MileageUid = "YOUR_mileageUid_PARAMETER";
      var request = await client.PatchAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/millage/private/" + MileageUid + "/archive?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

MileagePrivate_SetMileagePrivateAsCompanyMileageAsync

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

Responses

Request samples

Content type
"string"

MileagePrivate_SetMileagePrivateAsPendingAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
mileageUid
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 MileageUid = "YOUR_mileageUid_PARAMETER";
      var request = await client.PatchAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/millage/private/" + MileageUid + "/pending?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

MileagePrivate_DeletePrivateMileageAsync

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

      Console.WriteLine(response);
    }
  }
}