_editDelivery

(API version 2.0)

int _editDelivery ( string kodf , string username , string pass , WDS_OptimalDeliveryItem deliveryItem )

Description

The function changes delivery of orders, if it doesn´t exist (or DeliveryItem.IdDelivery == 0), inserts a new one.

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
WDS_OptimalDeliveryItem deliveryItem
WDS_OptimalDeliveryItem

Return value

int

IdDelivery OK
0 user could not log in
-1 delivery is locked, can not be edited
-2 edit route failed
-5 The company has no right to Optimize traffic

Examples

API version 2.0

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

Test

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

Company code
Login username
Login password
WDS_OptimalDeliveryItem deliveryItem
WDS_OptimalDeliveryItem

* Required field