For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quick Start

Before you begin

You need the following before making your first API call:

  • API credentials: contact your Cover Genius Client 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.

End-to-end test walkthrough

Walk through the steps below to validate your integration before going live. Confirm you receive the expected response at each step before continuing.

Step 1. Get a quote

curl -i -X POST \
  -H "X_API_KEY: your_staging_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "FromDate": "2025-08-01 00:00:00",
    "ToDate": "2025-08-08 00:00:00",
    "CustomerAge": 32,
    "DestinationCountry": "IE",
    "Country": "US",
    "FirstName": "Jane",
    "LastName": "Smith",
    "Email": "[email protected]"
  }' \
  https://api-staging.rentalcover.com/insurances/quote

✅ Expect a 200 response containing a Reference (e.g. AB12-345C-INS) and a TotalAmount. Save the Reference - you'll use it as AgentReference in all subsequent steps.

Step 2. Retrieve content

✅ Expect marketing copy, logos, and comparison table data.

Step 3. Record opt-in

✅ Expect {"success": "..."}.

Step 4. Purchase protection

✅ Expect Status: PendingConfirm.

Step 5. Verify confirmation

✅ Expect Status: Confirmed.

Step 6. Cancel protection

✅ Expect Status: Confirmed.

Test payment cards

Use these card details in the Purchase step above. Do not use real card numbers.

Card number
Cardholder
Expiry
CVV
Result

4242 4242 4242 4242

Any name

Any future date

Any

Successful payment

4012 8888 8888 1881

Any name

Any future date

Any

Successful payment (alternate)

For additional test scenarios including declined cards and 3D Secure flows, see the Stripe test cards reference.

Last updated

Was this helpful?