_setBookPurposeSett2

(API version 2.0)

int _setBookPurposeSett2 ( string kodf , string username , string pass , WDS_BookPurposeSettItem BookPurposeSettItem )

Description

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

Categories

Parameters

string kodf
company code
string username
username
string pass
password
WDS_BookPurposeSettItem BookPurposeSettItem

Return value

int

The return value:
1 | Successfully edited
-1 | Incorrect username or password
-2 | User does not have permissions (not a role user)
-3 | User does not have permission to edit the purpose of the journey
-4 | User does not have permission to edit the company purpose of the journey
-5 | Editing failed

Examples

API version 2.0

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

Test

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

company code
username
password
WDS_BookPurposeSettItem BookPurposeSettItem
Unique purpose identification
Text of purpose in Czech language
Text of purpose in English language
Unique user identification
Text of purpose in Slovak language
Text of purpose in German language
Text of purpose in Polish language
Text of purpose in Hungarian language
Text of purpose in Romanian language

* Required field