_getTravelExpenses

(API version 2.0)

WDS_TravelExpensesDataItem[] _getTravelExpenses ( string kodf , string username , string pass , string from , string to , int idcar , int iddriver , string state )

Description

Api can be used to calculate a food allowance in the home country of the driver.

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
string from
string to
int idcar
int iddriver
string state

Return value

WDS_TravelExpensesDataItem[]
  • WDS_TravelExpensesDataItem
    • string From

      Start time of journey

    • string To

      End time of journey

    • int Duration

      Duration of journey (To - From) [s]

    • string LicensePlate

      Vehicle registration number

    • string DriverName

      Names of drivers

    • string DriverPersonalCode

      personal number of the driver

    • float Compensation

      Compensation

    • string Currency

      Currency of Compensation

    • string Route

      The starting point of the first run and then the end of the individual runs

    • string Purpose

      Purpose (business, private)

    • string ApprovedBy

      Name of the user who approved

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_getTravelExpenses($kodf, $username, $pass, $from, $to, $idcar, $iddriver, $state);

Test

To test the function, enter parameters in form below and press Try it out button.

Company code
Login username
Login password

* Required field