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

Purchase flow

Replace RentalCover Quote and Purchase with Create Offer and Confirm Offer.

On RentalCover you call Quote, then Purchase. On the Offers API you call Create Offer, render the offer, then call Confirm Offer or Opt-out.

Two things move:

  • Personal data moves to Confirm. Create Offer only describes the rental. Names, email and age are sent when the customer accepts.

  • The INS is issued at Confirm, not at quote time. Until then you work with an offer ID and quote IDs, which are UUIDs.

1

Create an offer

Send the rental context instead of a flat quote request.

POST /insurances/quote
{
  "Type": "FullProtection",
  "Currency": "EUR",
  "Country": "NL",
  "LanguageCode": "en",
  "PartnerSite": "example-site",
  "BWCookie": "CUST-0007654321",
  "PartnerCollectingPayment": true,
  "ContactCustomer": 0,
  "ExpressCode": "EXAMPLE10",
  "FirstName": "Alex",
  "LastName": "Example",
  "Email": "[email protected]",
  "CustomerAge": 25,
  "FromDate": "2027-03-12 10:00:00",
  "ToDate": "2027-03-19 10:00:00",
  "DestinationCountry": "DE",
  "VehiclePickupTime": "2027-03-12T10:00:00+01:00",
  "VehicleDropoffTime": "2027-03-19T10:00:00+01:00",
  "VehiclePickupCity": "Frankfurt",
  "VehiclePickupPostalCode": "60549",
  "VehicleDropoffCity": "Frankfurt",
  "VehicleRentalGross": 420,
  "VehicleCode": "CDMR",
  "VehicleClass": "Compact",
  "CDWIncluded": 1,
  "VehicleStdLiabilityHigh": 1500,
  "VehicleStdLiabilityCurrency": "EUR",
  "VehicleSupplierId": 1234,
  "VehicleSupplierName": "Example Rental Co",
  "MetaData": "{\"airport_pickup\":\"true\",\"experience_type\":\"standard\"}"
}

The fields that matter most:

RentalCover
XCover Offers
Notes

Currency

customer.currency

ISO 4217

Country

customer.country

Country of residence. Must match policyholder.country at Confirm

LanguageCode

customer.language

ISO 639-1

Type

context.product

full_protection, extra_cover or sli. See Products

VehicleRentalGross

context.price

The car rental price, not the insurance price

FromDate + VehiclePickupTime

context.pickup.date

One RFC 3339 value with the local offset

ToDate + VehicleDropoffTime

context.dropoff.date

One RFC 3339 value with the local offset

CDWIncluded, SLIIncluded

context.coverage_charges[].rate_type

One entry per included cover

VehicleStdLiabilityHigh / Low

context.coverage_charges[].deductible

The excess under that cover

VehicleCode

context.vehicle_details.code

SIPP code. Cover Genius checks eligibility from it

PartnerReference (sent at Purchase)

partner.transaction_id

Your booking reference, now sent at Create Offer and returned as partner_transaction_id

BWCookie

partner.customer_id

Stable customer identifier

PartnerSite

partner.subsidiary

Your site or subsidiary

MetaData

partner.metadata

Free-form key-value pairs. Send an object, not a JSON-encoded string

FirstName, LastName, Email, CustomerAge

—

Not sent. Moved to Confirm

Tax, commission, surcharge and benefit details are left out of the response unless you ask for them. Add ?extra_fields= with any of tax, commission, surcharge and benefits, for example ?extra_fields=tax,commission.

Full Create Offer field mapping
RentalCover
XCover Offers
Notes

Currency

customer.currency

ISO 4217

Country

customer.country

Residency, ISO 3166-1 alpha-2. RentalCover also accepted IP country; Offers needs residency

LanguageCode

customer.language

ISO 639-1

—

customer.region

Optional region of residence

PartnerReference (sent at Purchase)

partner.transaction_id

Your booking reference, returned as partner_transaction_id

BWCookie

partner.customer_id

Stable customer identifier, needed for experiments

—

partner.metadata.sales_channel

Where the offer is shown, such as InPath. Values agreed in scoping

—

partner.metadata.device

Device type, such as Web. Values agreed in scoping

PartnerSite

partner.subsidiary

Your site or subsidiary

MetaData

partner.metadata

Free-form object of your own key-value pairs. Not validated. RentalCover took a JSON-encoded string; send an object

—

partner.metadata.rebooking, rebooking_prior_id

Type

context.product

Product family

VehicleRentalGross

context.price

Car rental price

CoverAmount

context.cover_amount

US markets only

OtherDriverAge1, OtherDriverAge2

context.num_drivers

Number of drivers. Defaults to 1. Ages are not sent

CDWIncluded

context.coverage_charges[].rate_type

CollisionDamageWaiver

SLIIncluded

context.coverage_charges[].rate_type

ThirdPartyInsurance

LDWIncluded

—

Agreed in scoping

VehicleStdLiabilityHigh, VehicleStdLiabilityLow

context.coverage_charges[].deductible

One amount per entry

VehicleStdLiabilityCurrency

—

Uses customer.currency

FromDate, VehiclePickupTime

context.pickup.date

RFC 3339 with offset

DestinationCountry, VehiclePickupCountry

context.pickup.country

ISO 3166-1 alpha-2

VehiclePickupCity

context.pickup.city

VehiclePickupPostalCode

context.pickup.postcode

String

FromLocationName

context.pickup.pickup_site

VehiclePickupRegion

context.pickup.region

Where applicable

ToDate, VehicleDropoffTime

context.dropoff.date

RFC 3339 with offset

VehicleDropoffCountry

context.dropoff.country

VehicleDropoffCity

context.dropoff.city

ToLocationName

context.dropoff.return_site

—

context.dropoff.region

Where applicable

VehicleCode

context.vehicle_details.code

SIPP code

VehicleSupplierName

context.vehicle_supplier.name

—

context.vehicle_supplier.country

New. Supplier country, ISO 3166-1 alpha-2

—

context.vehicle_supplier.site

Supplier branch

—

context.channel

Sales channel. Values configured per integration

—

context.bundled

true when the offer is part of a bundle

—

context.increased_limit

Increased-limit variant. Only where agreed

FirstName, LastName, Email, CustomerAge, Phone, address fields

—

Sent at Confirm

OtherEmail

—

Sent at Confirm as policyholder.secondary_email

PolicyPrice

—

Sent at Confirm as quotes[].partner_price

PartnerCollectingPayment

—

Set by your partner code. See Payments

VehicleName, VehicleCategory, VehicleBerths, VehicleOffroad4x4, VehicleClass, VehicleTypes

—

Not sent. Eligibility comes from the SIPP code

VehicleNettPrice

—

Not sent unless agreed

VehicleSupplierId

—

Not sent

ExpressCode, ContactCustomer, UserIpAddress

—

Not sent

2

Render the offer

The response contains one or more products. Use these fields:

Field
Use it for

id

The offer ID. Used in the Confirm and Opt-out URLs

products[].id

The quote ID. Sent as quotes[].id at Confirm

products[].details.finance.price.total_amount

Price to charge. Use total_amount_formatted for display only

products[].details.pds_url, products[].details.files[]

Policy wording and documents to link

content.products[].title, description, benefits

Offer copy, if you use the content from the API

content.products[].disclaimer_html

Disclaimer to show next to the opt-in

Store the offer ID, the quote IDs and the total you displayed. You need them at Confirm.

Full Create Offer response mapping
RentalCover
XCover Offers

Reference (quote)

id (offer ID) and products[].id (quote ID)

Policy

products[]

Policy.Name

products[].name, content.products[].title

TotalAmount, TotalAmountFormatted

products[].details.finance.price.total_amount, total_amount_formatted

—

...price.total_amount_without_tax

—

...price.total_amount_min, total_amount_max (partner price bounds, only when partner-set pricing is enabled)

TaxesAndFees

products[].details.finance.tax.total_amount

Commission.TotalCommission

products[].details.finance.commission.total_amount

FromDate, ToDate, CoveredDays

products[].details.start_date, end_date

Policy.PdsUrl

products[].details.pds_url

—

products[].details.files[] (name, url, type)

InsuranceCoverAmount, Policy.InclusionsList

products[].details.benefits[]

Experiment

products[].details.experiment

Policy.SectionHeader

content.heading

PartnerContent button fields

content.positive_cta, content.negative_cta

Policy.Description

content.products[].description

Policy.SellingPoints

content.products[].benefits

Policy.Inclusions

content.products[].inclusions, exclusions

Disclaimer, Disclaimer2

content.products[].disclaimer, disclaimer_html

BubbleText

content.products[].credibility_badge

Language

content.locale

DailyAmountFormatted, PerDayText

Not returned

Discount, Coupon, Merchant, Logos, PoweredByLogo

Not returned

3

Confirm the offer

When the customer accepts, confirm the offer. This is where personal data is sent and the INS is issued. Send an x-idempotency-key.

POST /insurances/purchase
{
  "AgentReference": "XXXX-XXXX-INS",
  "PolicyCode": "RC001",
  "PartnerReference": "TXN-0001234567",
  "FromDate": "2027-03-12 10:00:00",
  "ToDate": "2027-03-19 10:00:00",
  "Country": "NL",
  "FirstName": "Alex",
  "LastName": "Example",
  "Email": "[email protected]",
  "CustomerAge": 25,
  "PartnerCollectingPayment": true
}
POST /partners/{partner_code}/offers/{offer_id}/confirm/
{
  "quotes": [
    {
      "id": "{quote_id}",
      "insured": [
        { "first_name": "Alex", "last_name": "Example", "email": "[email protected]" }
      ]
    }
  ],
  "policyholder": {
    "first_name": "Alex",
    "last_name": "Example",
    "email": "[email protected]",
    "phone": "+31 20 000 0000",
    "country": "NL",
    "age": 25,
    "postcode": "1000 AA"
  }
}
RentalCover
XCover Offers
Notes

AgentReference

{offer_id} in the URL

The offer ID from Create Offer

PolicyCode

quotes[].id

One entry per product the customer accepted

FirstName, LastName, Email

quotes[].insured[] and policyholder

One insured person per policy

CustomerAge

policyholder.age

Country

policyholder.country

Must equal customer.country from Create Offer

Phone, Address1, City

policyholder.phone, address1, address2, city, region, postcode

Whether you send an address is agreed in scoping

PolicyPrice

quotes[].partner_price

Optional, where agreed. Tax inclusive, within total_amount_min and total_amount_max

FromDate, ToDate, Currency, Type, LanguageCode

—

Not resent. Fixed at Create Offer

PartnerReference, BWCookie, PartnerSite

—

Sent at Create Offer as partner.transaction_id, partner.customer_id and partner.subsidiary

Then check the response:

  • id is the INS. Store it: it identifies the booking from now on.

  • status is CONFIRMED.

  • total_price matches the price you showed. If it differs, don't charge the customer.

  • Use pds_url, coi.url, account_url and fnol_link exactly as returned.

Confirm later: pending bookings

To issue the booking now but finalise it after a payment check, add "require_payment_confirmation": true to the Confirm body. The booking is created with status PENDING_PAYMENT and an INS, but no certificate of insurance. When payment succeeds, call PUT /partners/{partner_code}/bookings/{booking_id}/confirm (no trailing slash) with an x-idempotency-key. No body is needed. The booking moves to CONFIRMED.

Full Confirm response mapping
RentalCover
XCover Offers

Reference, BookingId

id (INS)

Status

status, quotes[].status

TotalAmount, TotalAmountFormatted

total_price, total_price_formatted

TaxesAndFees.TotalAmountAfterTax

total_premium

TaxesAndFees.TotalTax

total_tax, itemised in quotes[].tax.taxes[]

PartnerReference

partner_transaction_id

Policy.PdsUrl

pds_url, quotes[].pds_url

—

coi.url, coi.pdf (certificate of insurance)

Policy.ModifyUrl

account_url, sign_up_url

Policy.CancelUrl

quotes[].can_be_cancelled

—

fnol_link (claims)

FromDate, ToDate, CoveredDays

quotes[].policy_start_date, policy_end_date, duration

Policy.Type, Policy.Name, Policy.Code

quotes[].policy.policy_type, policy_name, policy_code

SettlementCurrencyObject

quotes[].policy.policy_currency (can differ from currency)

Policy.SupplierName

quotes[].policy.underwriter.name

Commission

quotes[].commission

InsuranceCoverAmount

quotes[].cover_amount, quotes[].benefits[]

ConfirmedOn

quotes[].confirmed_at

Customer.*

policyholder.*

Customer.BackupEmail

policyholder.secondary_email

Customer.DateOfBirth

policyholder.birth_date

4

Record opt-outs

When the customer declines, call opt-out with the offer ID. There is no body, and the call returns 204. Opting out of the same offer twice returns 422. You no longer need to record an opt-in: Confirm does that.

POST /insurances/coverOptOut/{reference}
{ "CoverOptIn": 0, "PartnerReference": "TXN-0001234567" }
POST /partners/{partner_code}/offers/{offer_id}/opt_out/

Products

RentalCover product

context.product

Markets

Full Protection

full_protection

EU, UK and other excess markets

Extra Cover (Roadside Assistance)

extra_cover

EU and UK

SLI

sli

US and Canada as destination. Not sold to EU residents

CDW, Excess Reduction, Comprehensive

Agreed in scoping

—

Baggage

Not requested

Bundled automatically where the market includes it

The final product mix also depends on residency, pickup and drop-off country, included covers, bundled, increased_limit, channel and the SIPP code.

Payments

  • Single payment: unchanged. You collect the premium with the rental. Confirm carries no payment details. See Single Payment.

  • Dual payment: card details are no longer sent to the booking API. Tokenise the card with XPay and pass the token on Confirm in payment_details.customer_token_id. See Dual Payment using XPay Token.

  • Mixed: each payment model has its own partner code. Use the same partner code for every call on a booking.

See also

Last updated

Was this helpful?