_delBookPurposeSett2

(API version 2.0)

int _delBookPurposeSett2 ( string kodf , string username , string pass , int IdP )

Description

The function delete trip purpose. The function is available for SŽDC customer only.

Parameters

string kodf
company code
string username
username
string pass
password
int IdP
purpose identifier

Return value

int

The return value:
1 | Successfully deleted
-1 | Incorrect username or password
-2 | User does not have permissions (not a role user)
-3 | User does not have permission to delete the purpose of the journey
-4 | User does not have permission to delete the company purpose of the journey
-5 | Delete failed
-6 | Invalid trip purpose identifier

Examples

API version 2.0

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

Test

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

company code
username
password
purpose identifier

* Required field