_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

Return value

WDS_CarRentalOrderItem
  • 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

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.

Company code
Login username
Login password
WDS_CarRentalNewOrder order
Car id
E-mail
Phone [+420 XXX XXX XXX]
User id
If not set, the id of the logged user is used.
Approver user id
Date from [Y-m-d H:i:s]
Date to [Y-m-d H:i:s]
Parking place sharing
0 .. disallowed
1 .. allowed
Driver id
Order type (default 0)
0 - business
1 - private
2 - car servis
3 - short-term-lease
Purpose
Address
Note
Allow passengers
0 .. disallowed
1 .. allowed
Vehicle assignment time
If not set, the current time is taken.
Language (default CZ)
CZ, EN, SK, DE, PL, HU, RO

* Required field