_setFuelPrice
(API version 2.0)int _setFuelPrice ( string kodf , string username , string pass , string TypP , string Datum , float Cenabezdph , float Dph_procent , float Dph , float Cenasdph )
Description
The function sets the Average cost of the fuel
(required admin rights)
Categories
Tags
- prices of fuel
Parameters
- string kodf
- Company login code
- string username
- Login username
- string pass
- Login password
- string TypP
- type of fuel in text- Natural, Nafta, CNG, ...
- string Datum
- Valid from - in format d.m.Y
- float Cenabezdph
- Average price excluding VAT
- float Dph_procent
- VAT Percent
- float Dph
- VAT rate
- float Cenasdph
- Price including VAT
Return value
-1 - User not logged in
-2 - user does not have admin rights
-3 - db insertion failed, please try again later
> 0 - OK / id of the inserted record
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_setFuelPrice($kodf, $username, $pass, $TypP, $Datum, $Cenabezdph, $Dph_procent, $Dph, $Cenasdph);
Test
To test the function, enter parameters in form below and press Try it out button.