RenteonHelp Center

Integrations

Surprice integration

Receive Surprice orders in Renteon through a webhook: credentials, enabling the webhook, picking Surprice codes for mappings, and how orders, changes and cancellations become bookings.

Last updated

The Surprice integration brings Surprice franchise orders into Renteon. Surprice tells Renteon immediately when an order is created, changed or cancelled (this notification is called a webhook). Renteon then reads the whole order from Surprice and puts it into a queue. About every 44 minutes Renteon imports the queue: it creates, updates or cancels the matching bookings.

The integration works in one direction: from Surprice into Renteon. A booking you cancel or change in Renteon is not reported to Surprice, and Renteon sends no prices or availability.

  1. What you need from Surprice

    • The base API address and an API key for your franchise account. Renteon uses them to register the webhook, to read each order and to read Surprice's lists of vehicle groups, stations and extras for the mapping page.
    • Your company's Renteon web address must be set up. Surprice sends its notifications to that address. Renteon support sets it up for every company; if it is missing, enabling the webhook fails.
  2. Prepare the partner and its pricelists

    Every Surprice order 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 when the order's payment type is "Prepaid" (the partner is the Agency on the booking);
    • one without it, used for every other payment type (the partner is the Commissioner).

    Without the partner mapping or without both pricelists, the Surprice 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 Surprice panel.
    3. Fill in Base API url and API Key and the other options below. Both are required: Confirm stays unavailable while one of them is empty.
    4. Click Confirm. Administration → Integration → Surprice appears in the menu.

    The options in the Surprice panel:

    • Base API url and API Key: the Surprice credentials.
    • Default young age driver: when an order contains an extra that is mapped to your young driver fee (the driver-age service with code YDF), the main driver's age on the booking is set to this value.
    • Default old age driver: the same for the senior driver fee (code ODF).
    • Validation errors e-mail: the address that receives the import report.
    • Notify booking changes: has no effect for Surprice. Renteon does not send booking changes to Surprice.
    • Delete old imported items and Keep imported items (months): remove old queued orders and import log entries. See Integration menu and mappings.
    • Enable Webhook and Disable Webhook: buttons, shown in edit mode. They act immediately, without Confirm.

    The panel has no price options and no switch to pause the import: while the integration is on, every queued order is imported at the next run.

  4. Enable the webhook

    Surprice sends nothing until the webhook is enabled. The buttons use the credentials that are already saved, so:

    1. Enter Base API url and API Key and click Confirm.
    2. Click Edit again and click Enable Webhook in the Surprice panel.

    Renteon registers your company's address with Surprice for orders and subscribes to the create, update and cancel events. If a webhook for this address already exists at Surprice, Renteon reactivates and reuses it instead of creating a second one. "Data saved" confirms that it worked.

    Disable Webhook switches the notifications off at Surprice. Orders that are already in the queue are still imported.

    Warning: Notifications that arrive while the Surprice panel is switched off, or while no webhook is enabled, are refused and not stored. Renteon does not look for missed orders later.

  5. Map partner, car categories, offices and services

    Open Administration → Integration → Surprice and click Edit. For car categories, offices and services, Renteon reads the lists live from Surprice, and you pick the Surprice entries instead of typing codes. Save each tab with its own Save button.

    • Partner: pick the Surprice partner and click Save.
    • Car categories: for each of your car categories, pick the Surprice vehicle groups (shown by their SIPP code) that it stands for.
    • Offices: for each office or meet-and-greet location, pick the Surprice stations (shown as name and location code). Drop-off locations and their Select Office IN work as described in Integration menu and mappings.
    • Services: pick the Surprice extras (shown as id and description) and insurances for each of your services. Map the additional driver extra to your additional driver service, and the young and senior driver extras to your driver-age fees.

    There is no Pricelists tab; the pricelist comes from the partner and the order's payment type.

    If a list stays empty, Renteon could not read it from Surprice. Check Base API url and API Key.

    Warning: An order with a code that is not mapped is not imported and is not tried again, even after you add the mapping. Map everything before you enable the webhook, and enter any order reported with "Missing mapping …" by hand.

  6. How orders arrive

    When Surprice reports an event, Renteon reads the order from Surprice and adds it to the queue:

    • Create: at the next run, a new reservation is created. If a booking for the same order already exists and is not cancelled, the order is rejected as "already imported".
    • Update: at the next run, the booking is updated with the order as Surprice has it now. Changes you made to the booking in Renteon (for example dates, category or extras) are replaced by the Surprice data.
    • Cancel: at the next run, the booking is cancelled. Renteon checks this when the notification arrives: if there is no active booking for that order at that moment, the notification is ignored.

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

    The queue is imported in the order the notifications arrived. If a new order fails for a reason that can be fixed later, a change or cancellation of the same order in the same run waits for it.

    Because a cancellation is checked when it arrives, an order that is created and cancelled before the next run is still imported: the cancellation found no booking and was ignored. Cancel such a booking by hand.

  7. How the imported booking looks

    • A reservation, created in the background by the system.
    • Voucher number: the broker's order number from the Surprice order. Renteon uses it, together with the partner, to find the booking for later changes and cancellations.
    • Order reference number: the Surprice order id.
    • Agency (payment type "Prepaid") or Commissioner (any other payment type): the Surprice partner, with the matching pricelist.
    • Pick-up and return station and dates, car category (from the vehicle group of the order), flight number.
    • Client and main driver: the customer's name (the first word as first name, the rest as surname), e-mail and phone.
    • Integration remark: the notes of the order, plus any notes of the import.
    • Excess amount and Deposit: when the order has an insurance excess amount or a vehicle group deposit above zero, these replace the amounts from your pricelist.
  8. Prices

    Surprice sends the total cost of the order. Renteon treats it as including VAT, 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 the price of the rental service, as one fixed amount for the whole rental. The insurance and every mapped extra are priced at the amounts in the order, and their amounts are taken off the rental price, so that the booking total stays close to the Surprice total.

    When an extra or the insurance in the order has a different price than Renteon would calculate, Renteon uses the Surprice amount and reports "Imported amount for service … does not match the automatically calculated amount …" as a warning. An extra with a price that could not be put on the booking (because the booking does not offer that service) is reported with "Service with code … in the booking file has a price but is not mapped to any existing service in the booking".

    After the calculation, Renteon compares the calculated rental price with the Surprice price. If they differ, a note such as "Calculated price is lower than the price from imported booking (…)" is added to Integration remark, and the difference is reported as a warning. Renteon compares the rental alone with the order total, so this note also appears on every order with a priced extra or insurance. In that case compare the booking total with the Surprice total instead.

  9. Errors and common problems

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

    The most frequent problems:

    • Nothing arrives. Check that Enable Integrations Module and the Surprice panel are on, that the webhook was enabled after the credentials were saved, and that a partner with both pricelists is mapped.
    • "Enable Webhook" fails. The credentials are wrong or not yet saved with Confirm, or your company's web address is not set up; contact Renteon support.
    • "Missing mapping for car category code …", "… office code …" or "… service code …": map the code. The order itself is not tried again; enter it by hand.
    • "Missing car rent service Id for …": the mapped car category has no rental service. Enter the order by hand after fixing it.
    • "Booking with integration reservation identity = … does not exist and cannot be canceled.": Surprice cancelled an order that never became a booking in Renteon. Nothing to do.
    • A booking stays active although the order was cancelled at Surprice: the cancellation arrived before the order was imported, see above. Cancel the booking by hand.