_createCarRentalOrder
(API version 2.0)WDS_CarRentalOrderItem _createCarRentalOrder ( string kodf , string username , string pass , WDS_CarRentalNewOrder order )
Description
Create car rental order.
Carsharing
- The car rental settings are ignored.
Car rental
- The user must be a customer of the car rental.
Parameters
- string kodf
- Company code
- string username
- Login username
- string pass
- Login password
-
WDS_CarRentalNewOrder order
-
int
carid
Car id
-
string
email
E-mail
-
string
phone
Phone [+420 XXX XXX XXX]
-
int
assigneduserid
User id
If not set, the id of the logged user is used. -
int
approverid
Approver user id
-
string
datefrom
Date from [Y-m-d H:i:s]
-
string
dateto
Date to [Y-m-d H:i:s]
-
int
isparkingplacesharing
Parking place sharing
0 .. disallowed
1 .. allowed -
int
driverid
Driver id
-
int
type
Order type (default 0)
0 - business
1 - private
2 - car servis
3 - short-term-lease -
string
purpose
Purpose
-
string
address
Address
-
string
note
Note
-
int
areallowpassangers
Allow passengers
0 .. disallowed
1 .. allowed -
string
dateVehicleAssign
Vehicle assignment time
If not set, the current time is taken. -
string
language
Language (default CZ)
CZ, EN, SK, DE, PL, HU, RO
-
int
carid
Return value
-
int
id
Order id
-
string
ordernumber
Order number [YEAR-XXXXXX]
-
int
carapprovalstate
State of car approval
-
int
rideapprovalstate
State of ride approval
-
int
userid
User id
-
string
username
User name
-
string
email
E-mail
-
string
phone
Phone
-
int
officeid
Office id
-
int
iscanceled
Order cancellation indicator
-
int
isservice
Order service indicator
-
string
datefrom
Date from
-
string
dateto
Date to
-
int
parkingplacesharing
Parking place sharing
-
int
driverid
Driver id
-
string
drivername
Driver's name
-
string
drivernumber
Driver's personal number
-
int
carid
Car id
-
string
numberplate
Registration plate
- int type
-
string
purpose
Purpose
-
string
address
Address
-
string
note
Note
-
int
travelorderid
Travel id
-
string
codrivers
Codrivers list
-
int
allowpassangers
Allow passangers to join as codrivers.
-
string
equipment
Equipment
-
array[]
Date of vehicle assignment
-
string[]
- string item
-
string[]
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_createCarRentalOrder($kodf, $username, $pass, $order);
Test
To test the function, enter parameters in form below and press Try it out button.