Integrations
Wheels integration
Import Wheels (Wheelsys) reservations by e-mail or through the Wheelsys interface, set up one or more connectors, map codes and partners, and report contract closings and cancellations back to Wheels.
Last updated
Partners that work in Wheels (Wheelsys) can pass their reservations for your fleet to Renteon in two ways: as PDF documents sent to a mailbox, or through the Wheelsys supplier interface (the "API"). With the Wheels integration, Renteon picks these reservations up by itself and creates, changes or cancels the matching bookings.
You set up the integration as one or more connectors. A connector is one source of Wheels reservations: one mailbox or one Wheelsys account. If you receive Wheels reservations from three partners, each on its own mailbox or account, you create three connectors. Each connector has its own settings, its own mappings and its own entry in the menu.
This guide covers what is specific to Wheels. The mapping screen in general is explained in Integration menu and mappings.
E-mail or API: what each does
E-mail connection. Wheels sends every reservation message as a PDF attachment to a mailbox you own: a new booking, an amendment or a cancellation. About every 39 minutes Renteon logs in to the mailbox, takes the attachments (the PDF) of every message in the inbox, moves the message to a folder (or deletes it) and imports the PDF. This direction only: nothing is sent back to Wheels.
API connection. About every 39 minutes Renteon asks Wheelsys which bookings are new or changed for your account and reads each one. Reading a booking also tells Wheelsys that you received it, so Wheelsys stops listing it until it changes again. Renteon always gets the latest state of a booking:
- confirmed (RES) or on request (REQ): Renteon creates the booking or updates it;
- cancelled (CNC): Renteon cancels the booking;
- closed (CLS): Renteon ignores it.
With the API, Renteon can also tell Wheels about changes made in Renteon, such as a closed contract or a cancellation. See "Reporting booking changes to Wheels" below.
What you need
For an e-mail connection:
- a mailbox that receives only the Wheels reservation e-mails, reachable over IMAP with SSL/TLS (usually port 993): host, port, username and password;
- the codes Wheels prints on its documents: station names or codes ("From station", "To station"), car group codes, the codes of extras and, if several agents send through the same mailbox, the agent names.
For an API connection, from Wheelsys:
- the account number, a username and password, and an access token;
- whether you start on the staging (test) system or directly on production. Wheelsys may need to allow Renteon's server address before production calls are accepted; Renteon support can help with this.
In both cases, in Renteon:
- the partner (or partners) the reservations are booked for, in Sales → Address book → Search;
- on each partner's address book card, tab Pricelists, an active car pricelist with Agency pricelist ticked (for prepaid reservations) and one without it (for pay-on-arrival reservations). See Pricelists.
Warning: Use a mailbox dedicated to Wheels. Renteon reads every message in the inbox and then moves or deletes it, whether it is a Wheels reservation or not.
Add a connector
- Go to Administration → Code book → Settings, tab Integration, and click Edit. You need the Application settings management role.
- Tick Enable Integrations Module if it is not ticked yet, then tick the checkbox in the header of the Wheels panel.
- Click Add in the Wheels panel. A new connector row appears.
- Fill in Name and Code (see the next section), the options, and either the mailbox fields or, with Wheels API (instead of e-mail) ticked, the API fields.
- Leave Import reservations job enabled unticked for now and click Confirm.
- Refresh the page. The connector appears under Administration → Integration with its name. Map the partner, car categories, offices and services there (see below).
- Back in the settings, tick Import reservations job enabled on the connector row and click Confirm.
Confirm stays disabled while a row misses a required field. Two connectors cannot have the same name or the same code; Renteon refuses to save with "Duplicate integration Name" or "Duplicate integration code".
To remove a connector, click the bin button on its row and Confirm. If the connector already has mappings, imported items or bookings, or is selected on a franchise or as the Default integration, Renteon keeps it in the background as inactive, so the history stays readable, and removes it from the menu.
Warning: Tick Import reservations job enabled only after the partner is mapped and the mailbox or API details are complete. A connector without a partner, or with a mailbox Renteon cannot log in to, fails at every run, and the failure can hold up the import of the other Wheels connectors in the same run.
Connector options
These options are on every Wheels connector row:
- Name: shown in the menu and in the page header of the connector's mapping page.
- Code: a short unique code. It appears in capitals in the subject of the connector's e-mails, for example "WHL1 reservations import log" for the code "whl1".
- Import reservations job enabled: the connector imports only while this is ticked.
- Use duration measuring unit for price entry, Disable price increase caused by calculation (shown once the first one is ticked), Use fixed (imported) price for prepaid reservation, Booking amount warning threshold: how the Wheels price is entered on the booking, see Integration menu and mappings.
- Disable deliveries and collections: when ticked, the delivery and collection addresses on Wheels reservations are not copied to the booking, and the booking gets no delivery or collection.
- Enable multiple partners mapping: off, every reservation of this connector is booked for one partner. On, each reservation is booked for the partner mapped to its agent. On an e-mail connector this works only with the special document reader (see Parser Name below). See "Partners and pricelists" below.
- Validation errors e-mail: receives the import reports, the "import it manually" messages and the messages about failed reports to Wheels. Fill it in.
- Young driver default age and Old driver default age: when a reservation contains an extra mapped to your young driver or senior driver service, Renteon records the main driver's age as this value. It does not work the age out from a date of birth.
- Max items count in one job execution: how many e-mails (or, with the API, bookings) the connector reads in one run. Without a value, and at most, 1000.
- Mark imported bookings as On Request: every booking the connector creates is saved as on request, so that staff confirm it first. See On request bookings. The same happens on every amendment: a booking that staff already confirmed goes back to on request when Wheels changes it. With the API, a booking that Wheels sends as a request is always on request, whatever this option says.
- Notify booking changes: report changes made in Renteon back to Wheels. Works only with the API, see below.
- Delete old imported items and Keep imported items (months): clean-up of old e-mails, bookings read from Wheels and import log entries, see the last section.
Mailbox fields (e-mail connection)
- Host, Port, Username, Password: the IMAP access to the mailbox. Renteon connects with SSL/TLS.
- Delete after fetch: when ticked, Renteon deletes each message after taking its PDF. When not ticked, Move to folder appears and is required.
- Move to folder: the mailbox folder where handled messages are moved. If the folder does not exist, Renteon creates it. Keeping the messages there lets you look at an original document later.
- Parser Name: which reader Renteon uses for the PDF. Leave it empty for the standard Wheels document. Some partners send a different layout; enter "WheelsWeegoStructured" only when Renteon support tells you to. Only this special reader reads the agent ("Agent:") from the document, so Enable multiple partners mapping on an e-mail connector needs it.
API fields (API connection)
Tick Wheels API (instead of e-mail). The mailbox fields and Parser Name disappear and these appear, all required:
- Environment: Staging (test) or Production.
- Account number, Username, Password, Access token: from Wheelsys.
For safety, Renteon never shows a stored password or access token again. A stored value is shown as a row of asterisks and stays as it is unless you type a new one.
A copy of your database on a Renteon test system never calls the Wheelsys production system, so test copies cannot take bookings away from your live system.
If you switch an existing e-mail connector to the API, Renteon recognises the bookings imported earlier by their reservation number. This works only where the document number Wheels printed on its e-mails is the same as the Wheels reservation number (IRN); otherwise a change sent through the API creates a new booking. Check this with Renteon support before switching.
Map partner, car categories, offices and services
Open Administration → Integration → (the connector's name) and click Edit. You type all Wheels codes yourself, exactly as Wheels prints or sends them, including upper and lower case. Each tab saves with its own Save button.
- Partner or Partners: see the next section. Map the partner first: without it the connector imports nothing.
- Car categories: the Wheels car group codes. A Wheels reservation names two groups, the group to give the customer and the group charged; both must be mapped. With the API, the mapping is also used the other way round: when Renteon reports a closed contract, it sends Wheels the first code mapped to the category of the delivered car.
- Offices: the Wheels stations, as they appear under "From station" and "To station". With the API, Renteon first tries the station code and then the station name, so a mapping made for e-mail documents (station names) keeps working.
- Services: the codes of the extras Wheels sends. Every extra on a reservation must be mapped, except the rental itself and VAT; a reservation with an unmapped extra is not imported until you map it. Map additional drivers to your additional driver service, and young and senior driver charges to your driver-age services.
Partners and pricelists
Whether a Wheels reservation is prepaid or paid on arrival decides the partner's role and the pricelist:
- Prepaid (on the e-mail document the payment method VOUCHER, PRE-PAID or PP; with the API the prepaid program or a prepaid amount): the partner is the Agency and the booking uses the partner's agency pricelist.
- Full credit (e-mail documents only): as prepaid, and the partner is also the Invoice holder.
- Pay on arrival (on the e-mail document the payment method PAY ON ARRIVAL or PAY ARRIVAL; with the API every booking that is not prepaid): the partner is the Commissioner and the booking uses the partner's other pricelist.
With Enable multiple partners mapping off, the connector's page has a Partner tab: pick one partner and click Save. Every reservation of the connector is booked for it.
With Enable multiple partners mapping on, the page has a Partners tab: add one row per partner, with the partner and the agent's code; several codes for the same partner go in one row, separated by a semicolon (;). On e-mail documents the code is the text after "Agent:", which only the "WheelsWeegoStructured" reader reads; with the standard reader every reservation fails with "Missing mapping for addressbook code". With the API, Renteon tries the agent's company name and IATA code, and then the name of whoever pays the rental line; a mapped code may also be just the beginning of that name, for example "BOOKING.COM TRANSPORT" for "BOOKING.COM TRANSPORT LIMITED". Each mapped partner needs its own two pricelists.
The connector's page shows the tab that matches the option when you open the page. After changing the option in the settings, open the page again and check the partner mapping.
How Wheels reservations look in Renteon
An imported reservation has:
- Order reference number: the Wheels reservation number. Renteon uses it, with the partner, to find the booking again for amendments and cancellations.
- Voucher number: the voucher number from Wheels, or the reservation number when there is none.
- The driver as client, with e-mail and phone; with the API also the address, licence number, date of birth and the additional drivers by name. On e-mail documents, additional drivers appear as "ADDITIONAL DRIVER 1", "ADDITIONAL DRIVER 2" and so on.
- Pick-up and return time, offices, both car categories, the flight number, and the delivery and collection addresses (unless Disable deliveries and collections is ticked).
- The excess from Wheels, used as excess, theft excess and deposit.
- The rental price from Wheels' rental line, entered as described in the connector options, and the mapped extras with Wheels' prices. Extras marked "Voucher Included" (or prepaid, with the API) are agency items; extras the driver pays are client items.
- Integration remark: the file name, the confirmation number and Wheels' remarks for e-mail documents; for the API, "Wheels IRN:" with the reservation number, the revision, the confirmation number and the rate code. A note is added when Renteon's calculated total differs from the Wheels total.
Amendments update the booking while it is still a reservation. An amendment for a booking Renteon does not have is imported as a new booking, with a warning. Cancellations cancel the booking with the reason Other. A booking that is already a contract is not changed or cancelled by Wheels; the attempt is reported as a fatal error, and you handle it by hand.
With the API, if Wheels confirms again a booking that the import had cancelled, Renteon creates a new booking. A booking that a user cancelled in Renteon is not brought back.
If you enter a Wheels reservation by hand, put the Wheels reservation number in Order reference number and choose the Wheels partner as agency or commissioner. A later amendment or cancellation then finds your booking instead of creating a second one.
Reporting booking changes to Wheels
With an API connection and Notify booking changes ticked, Renteon reports these changes to Wheels, checking every 3 minutes for new ones:
- Contract closed: Renteon reports the check-in, with the contract number, the pick-up and return time, the plate and car group of the car that was delivered, and the kilometre and fuel readings.
- Booking cancelled: Renteon reports the cancellation. With the reason No-show or Document expired it is reported as a no-show. If the booking is still a request at Wheels, Renteon declines the request instead. A cancellation with the reason Transfer to other system is not reported.
- On-request booking confirmed: Renteon accepts the request at Wheels.
- On-request booking rejected: Renteon declines the request at Wheels.
The pick-up (turning the reservation into a contract) is not reported.
Renteon reports only bookings that came from this connector's partners and that the import created or updated; walk-ins, office bookings and other channels are left out, and so is a booking entered by hand until a Wheels change has updated it through the import. It sends nothing when Wheels already has the booking in that state, and it does not cancel at Wheels a reservation that lives on in another active booking with the same reservation number. Changes made while Notify booking changes is off are not sent later.
Which connector receives the changes:
- for a booking of a franchise, the integration selected on the franchise (Administration → Code book → Franchises, field Integration). If the franchise has no integration selected, nothing is reported for its bookings; they never go to the Default integration;
- for a booking without a franchise, the Default integration selected in the settings, panel Enable Integrations Module.
If a report fails, Renteon tries again after 3, 10, 30, 60 and then every 120 minutes. After 10 failed attempts it gives up and sends one e-mail "… booking notifications failed" to the connector's Validation errors e-mail (or, when that is empty, to the company's error-report address), with Wheels' answer for each booking.
Warning: One case is not reported: when you reject an on-request booking in Renteon that Wheels has already confirmed, nothing is sent and no e-mail tells you. Inform Wheels yourself. On an e-mail connector Notify booking changes has no effect.
Errors and where to see them
- Import report ("CODE reservations import log"): sent to the Validation errors e-mail after each run with something to report. It lists fatal errors (not retried), errors and warnings per reservation.
- Retries: a reservation that fails, for example because of a missing mapping, is tried again in the next runs, 20 times in all. Temporary database failures do not count as attempts, and neither does an amendment that waits for its new booking to be imported first. After the last attempt Renteon sends "Renteon was unable to automatically import this reservation after 20 attempts…" with the PDF (or, with the API, the booking data) attached, so that you can enter it by hand. Fix mapping errors before the attempts run out. An attachment Renteon cannot read at all (for example a picture or a document that is not a Wheels reservation) is usually reported once as a fatal error, for example "Import booking identity value is undefined", and not tried again.
- API read errors: if Renteon cannot read a booking from Wheelsys, it keeps trying it in the next runs. After 20 failed reads it sends an e-mail with the reservation number. Wheels keeps listing such a booking, so Renteon still creates it once Wheels returns it; if you enter it by hand meanwhile, put the reservation number in Order reference number as described in "How Wheels reservations look in Renteon".
- Missing pricelist: "Prepaid pricelist id is not defined …" or "Pay on arrival pricelist id is not defined …" (with the API and several partners: "Partner … has no active … car pricelist") means the partner lacks the active car pricelist of that kind on its address book card.
- Integration bookings log: in Car control → Reports → Audit (role Reports - audit), filter by the connector under Integration. With the API, Integration - Number finds a booking by its Wheels reservation number; for e-mail documents it holds Renteon's own number of the stored e-mail. On a booking, Actions → Open booking source data shows the document or data Wheels sent.
Clean-up of old items
With Delete old imported items ticked on a connector, the stored e-mails, the bookings read from Wheels and the import log entries are cleaned up as described in Integration menu and mappings: once they are older than Keep imported items (months), imported or given up on, and their booking is closed or cancelled (or they produced no booking).
With the API, one detail depends on these items: when Wheels cancels a reservation that Renteon had given up importing (the "import it manually" case), Renteon cancels the booking you entered by hand if it has the reservation number in Order reference number and the Wheels partner. If it cannot find such a booking, it sends an error e-mail, so that you can cancel the booking yourself. It sends that e-mail only while the stored items of that reservation still exist; after they are deleted, such a cancellation is ignored.