_setCarGeneral

(API version 2.0)

int _setCarGeneral ( string kodf , string username , string pass , WDS_CarGeneralItem CarItem )

Description

The function sets the vehicle information.
How to call a function: Use the _getCarsListGeneral function to download the current vehicle information set on the portal, edit the changes you want, and call _setCarGeneral. The WDS_CarGeneralItem data object can be expanded by other items.

Type of vehicle is not updated!

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
WDS_CarGeneralItem CarItem
Vehicle data

Return value

int

1 - OK

-1 - User not logged in
-3 - The user has no rights to the vehicle or the vehicle does not exist
-4 - The user has no registration right on the vehicle

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_setCarGeneral($kodf, $username, $pass, $CarItem);

Test

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

Company code
Login username
Login password
WDS_CarGeneralItem CarItem
Vehicle ID
Group ID
default driver
vehicle registration plate
short description
division
center
personal number
Object number
The ID card number
VIN
Factory brand
Car model
Fuel type
Location
amortization / km
Home - Work - Home
Monthly mileage [km]
Tank size [l]
Purchase price excluding VAT
Purchase price
Purchase price with VAT
Consumption according to the technical card combined
Consumption according to city card
Consumption according to the technical card outside the city
Responsible user / driver
Supervising user / driver
Accounting office
Vehicle currency
Agriculture - starting tools
Agriculture - baseline activity
Agriculture - Soil work width
Agriculture - Soil overlay work
Id templates for the appearance of vehicles
Owner -
0 - not entered
1 - corporate
2 - private
3 - Private-PHM
4 - corporate - financial leasing
5 - corporate - operative leasing
6 - vehicle rental
Type of vehicle
1 .. bus
2 .. electromobile
3 .. motorcycle
4 .. lorry
5 .. semi-trailer
6 .. passanger
7 .. trailer
8 .. crop production
9 .. tractor unit
10 .. special vehicle
11 .. building machine
12.. inert sprayer
13 .. chemical spreyer
14 .. technological vehicle
15 .. tractor
16 .. special vehicle
17 .. forklift
18 .. delivery van
19 .. ambulance
20 .. x
21 .. passanger medium
22 .. passanger large
23 .. cargo truck small
24 .. cargo truck medium
25 .. cargo truck big
26 .. hybrid
27 .. plug-in hybrid
Default account
CNG tank size [kg]
Copy the last logged in driver for MinCasCD minutes
Average consumption of CNG according to the technical card
Enable private escape (can only be set for a company that is not globally off)
Vehicle data

* Required field