# Introduction

This guide is for integrating RentalCover protection products into a partner website or booking platform. By the end of this guide you will be able to display quotes to customers, process purchases, manage protection changes, and receive real-time booking updates via webhooks.

RentalCover provides rental vehicle excess insurance that partners embed directly into their booking flow. Customers can purchase cover at the point of vehicle rental, reducing their financial exposure to excess charges in the event of an accident or theft.

## Before you start

You need the following before making your first API call.

* **API credentials:** contact your Cover Genius Customer Solutions Engineer (CSE) to receive your staging API key.
* **HTTPS:** all API requests must use HTTPS. HTTP calls are rejected in production.
* **A server-side environment:** the RentalCover API is a server-to-server integration. Never expose your API key in client-side code.

## What's the integration process?

A typical partner integration follows this sequence.

1. **Authenticate:** include your API key in every request header.
2. **Get a quote:** call the 'Quote' endpoint with the customer's booking details to retrieve a price.
3. **Display the offer:** use the 'Content' endpoint to retrieve localised copy and opt-out UI components.
4. **Record consent:** call 'CoverOptOut' to record whether the customer accepted or declined cover.
5. **Purchase:** if the customer accepted, call 'Purchase' to confirm the booking.
6. **Manage:** use 'Update', 'Cancel', and 'UpdateCustomer' to handle post-purchase changes.
7. **Receive updates:** configure webhooks to receive real-time notifications for events originating in RentalCover.

If you prefer to skip the separate 'Quote' and 'Purchase' steps, the 'InstantBooking' endpoint combines both into a single call.

For troubleshooting or integration support, contact your Cover Genius CSE.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://partner-docs.covergenius.com/rentalcover/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
