RenteonHelp Center

Integrations

Avis integration

Import Avis reservations, changes and cancellations from the files Avis puts on an SFTP server: set-up, mappings, how bookings are created and what to check when a file is not imported.

Last updated

With the Avis integration, Avis delivers every reservation message (a new reservation, a change or a cancellation) as an XML file into a folder on an SFTP server. About every 44 minutes Renteon reads the files in that folder, creates, updates or cancels the matching bookings, and moves each handled file into a subfolder of a "processed" folder.

The integration works in one direction: from Avis into Renteon. Renteon does not send anything back to Avis.

  1. What you need from Avis

    • The SFTP server details: address, port, username and password, the folder where Avis puts new files, and the folder for processed files. Renteon connects with username and password only.
    • Avis codes: the station codes Avis uses for your pick-up and return locations, the car group codes, the codes of counter products (extras such as child seats or additional driver) and the insurance indicators Avis sends.

    Warning: The processed folder must contain two subfolders called "valid" and "invalid". Renteon moves each handled file into one of them and does not create them. If they are missing, files cannot be moved, stay in the incoming folder and are read again at every run: a new reservation is then reported as "already imported" each time, and a change is applied to the booking again each time.

  2. Prepare the partner and its pricelists

    Every Avis reservation is booked for one partner from your address book. On that partner's address book card, tab Pricelists, the partner needs two active car pricelists:

    • one with Agency pricelist ticked, used for prepaid reservations (the partner is the Agency on the booking);
    • one without it, used for pay-on-arrival reservations (the partner is the Commissioner).

    Renteon treats an Avis reservation as prepaid when its credit code (CID) contains AV, BU or TP, or when its prepaid indicator (PPI) is "Y". All other reservations are pay on arrival.

    Without the partner mapping or without both pricelists, the Avis import does not run at all. If the partner has more than one pricelist of a kind, Renteon takes the first one it finds, so link only one of each. See Pricelists.

  3. Switch the integration on

    1. Go to Administration → Code book → Settings, tab Integration, and click Edit.
    2. Tick Enable Integrations Module if it is not on yet (the panels of the integrations then appear), then tick the checkbox in the header of the Avis panel.
    3. Fill in the options below and tick Import reservations job enabled.
    4. Click Confirm. Administration → Integration → Avis appears in the menu.

    The options in the Avis panel:

    • Import reservations job enabled: the import runs only while this is ticked.
    • Use duration measuring unit for price entry, Disable price increase caused by calculation, Use fixed (imported) price for prepaid reservation and Booking amount warning threshold: how the Avis price is entered on the booking. See the section on prices below.
    • Validation errors e-mail: the address that receives the import report.
    • Notify booking changes: has no effect for Avis. Renteon does not send booking changes to Avis.
    • Delete old imported items and Keep imported items (months): remove old entries of the import log. See Integration menu and mappings.
    • FTP Address, FTP port, FTP Username, FTP Password: the SFTP server. Although the labels say FTP, Renteon always connects over SFTP. Fill in the port; without it the import cannot start.
    • FTP Folder: the folder Avis writes new files into.
    • FTP Folder processed: the folder with the "valid" and "invalid" subfolders.

    Settings, Integration tab in edit mode: Avis panel switched on, import job ticked, SFTP address, port, user and folders filled in

  4. Map partner, car categories, offices and services

    Open Administration → Integration → Avis and click Edit. On every tab you type the Avis codes yourself, and you save each tab with its own Save button.

    • Partner: pick the Avis partner and click Save.
    • Car categories: enter the Avis car group code next to each car category. The double-arrow button copies your SIPP code into the field.
    • Offices: enter the Avis station code next to each office or meet-and-greet location. For return places that are not offices, map the code to a drop-off location and choose its Select Office IN.
    • Services: enter the Avis counter product code next to each matching extra. Map the additional driver product to your additional driver service. For insurances, you can use pattern masks, described below.

    There is no Pricelists tab; the pricelist comes from the partner.

    Avis sends the insurance as one code made of several indicator characters. Next to each of your insurances you enter a pattern mask in which # means "any character", for example "##Y#" on your super cover insurance. How Renteon matches the masks, which one wins when several match, and which codes mean "no insurance" is explained, together with the tabs in general, in Integration menu and mappings.

  5. What each Avis file does

    Renteon reads every file ending in .xml in the incoming folder, sorted by the last 13 characters of the file name before ".xml". The action code in the file decides what happens:

    • CR or RC: a new reservation. If a booking for the same Avis reservation already exists and is not cancelled, the file is rejected as "already imported".
    • MR: a change. The booking is updated with the data in the file: dates, offices, category, client, drivers and extras are replaced, so changes you made by hand in Renteon are overwritten.
    • DR: a change that can switch the payment. If the existing booking is pay on arrival and the file is prepaid, Renteon cancels the existing booking and creates a new prepaid one. Otherwise it updates the booking like MR.
    • XR or XL: a cancellation. The booking is cancelled.
    • RR: ignored. The file is moved to "valid" without any change.
    • Any other code: rejected as an undefined action.

    A change or a cancellation can only be applied to a reservation. If the booking is already a contract, is cancelled or does not exist, the file is rejected with a fatal error such as "Booking with Id = … is a contract and cannot be modified."

    After each file:

    • Imported: the file is moved to "valid".
    • Can never be imported (a fatal error): the file is moved to "invalid".
    • Failed for a reason that can be fixed (for example, a missing mapping): the file stays in the incoming folder and is read again at the next run, as often as it takes. A change or cancellation of that same reservation in the same run waits for it instead of being rejected.

    Warning: There is no limit on retries. A file with a missing mapping is reported in the validation errors e-mail at every run, about every 44 minutes, until you fix the mapping.

  6. How the imported booking looks

    • A reservation, created in the background by the system.
    • Order reference number: the Avis reservation number (CNF). Renteon uses it, together with the partner, to find the booking for later changes and cancellations.
    • Voucher number: the number in the credit code (CID) after its TE, FE, RE, T, F or R marker. If there is none, the Avis reservation number.
    • Agency or Commissioner: the Avis partner, with the prepaid or the pay-on-arrival pricelist.
    • Pick-up and return office, dates and times (read as your local time), car category, flight number.
    • Client: the company name when the file has one; otherwise the renter's name, age, date of birth and driving licence. Also e-mail, phone and address, with the country taken from the end of the address.
    • Driver: the renter is always added as the main driver, with age, date of birth and driving licence. A mapped additional driver product adds placeholder additional drivers.
    • The counter products, the matching insurance, and the one-way fee (see prices).
    • Integration remark: the credit code, the booking source Avis reports, Avis remarks and the file name without ".xml", in the form "CreditCardCode: …;SignOnBookingSource: …;Remarks: …;File: …;", plus any notes of the import.
  7. Prices

    Renteon takes the approximate total from the Avis file and treats it as including VAT. It converts it to a net amount with the VAT rate of the rental service valid on the day of the import and enters it as a manual price of the rental service. The currency in the file must be a currency known in Renteon; otherwise the reservation stops with "Missing mapping for currency code …".

    • One-way fee: when the file contains a one-way fee, Renteon selects your one-way fee service, if the booking offers it, at the Avis amount and takes the same amount off the rental price. The one-way fee needs no mapping. If your own price for the fee differs, the warning "Imported amount for service … does not match the automatically calculated amount …" is reported.
    • Counter products and insurance carry no price in the import: they are priced by your pricelist.
    • The price options of the panel (Use duration measuring unit for price entry, Disable price increase caused by calculation, Use fixed (imported) price for prepaid reservation and Booking amount warning threshold) work as described in Integration menu and mappings. Without the first three, the rental price is one fixed amount for the whole rental. Whatever the options, every difference between the calculated rental price and the Avis price is noted in Integration remark.
  8. Errors and common problems

    Every run that had something to report sends an e-mail with the subject "AVIS reservations import log". You can also check Car control → Reports → Audit, report Integration bookings log (filter Integration = Avis; Integration - Number is the file name without ".xml"), and Actions → Open booking source data on an imported booking.

    The most frequent problems:

    • Nothing is imported. Check Enable Integrations Module, the Avis panel, Import reservations job enabled, the SFTP details including the port, and that a partner with both pricelists is mapped.
    • The same file is reported again and again. It has an error that can be fixed, usually "Missing mapping for office code …", "Missing mapping for car category code …", or "Missing mapping for service code …" together with "Service code … is not mapped". Map the code; the next run imports the file.
    • "Missing car rent service Id for car category id …": the mapped car category has no rental service.
    • "No maching insurance package for isnurance indicators …": no insurance code or mask matches the indicators Avis sent. Add or correct a mask on the Services tab.
    • "… does not exist and cannot be modified" or "… cannot be canceled": Avis sent a change or cancellation for a reservation that never reached Renteon (for example, one made before the integration was switched on). The file is moved to "invalid"; handle the booking by hand.
    • Files are imported but stay in the incoming folder: the "valid" and "invalid" subfolders are missing or Renteon cannot write to them.