_setFuelCard
(API version 2.0)int _setFuelCard ( string kodf , string username , string pass , WDS_FuelCardItem fuelcard )
Description
The function updates or inserts the fuel card record
Categories
Parameters
- string kodf
- Company code
- string username
- Login username
- string pass
- Login password
- 
        WDS_FuelCardItem fuelcard- 
            int
            id
            Identifier 
- 
            string
            card_number
            Card Number 
- 
            string
            pin
            PIN 
- 
            string
            type
            Type 
- 
            int
            assign
            Vehicle ... 1 / driver ... 2 
- 
            int
            assign_id
            Vehicle / driver identifier 
- 
            int
            is_inactive
            Status (inactive ... 1 / active ... 0) 
- 
            string
            expiration_date
            Expiration date 
- 
            string
            note
            Note 
 
- 
            int
            id
            
Return value
    int
    Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_setFuelCard($kodf, $username, $pass, $fuelcard);
Test
To test the function, enter parameters in form below and press Try it out button.