> For the complete documentation index, see [llms.txt](https://partner-docs.covergenius.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://partner-docs.covergenius.com/rentalcover/endpoints/instantbooking.md).

# InstantBooking

**What it does:** Creates a quote and confirms the booking in a single API call.

**When to call it:** When you want to purchase a policy without a separate Quote step. For example, in a streamlined checkout where the protection price is already known.

{% hint style="info" %}
**PolicyCode required**&#x20;

Because there is no separate Quote step, you must supply a `PolicyCode`. Your CSE will provide the codes available for your account.
{% endhint %}

```
POST /insurances/instantBooking
```

## Example request

{% tabs %}
{% tab title="POST" %}

```shellscript
curl -i -X POST \
  -H "X_API_KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "FromDate": "2025-08-01 00:00:00",
    "ToDate": "2025-08-08 00:00:00",
    "CustomerAge": 29,
    "Email": "jane@example.com",
    "FirstName": "Jane",
    "LastName": "Smith",
    "Country": "NZ",
    "DestinationCountry": "NZ",
    "PolicyCode": "FP-NZ-ROW",
    "LanguageCode": "en",
    "Currency": "AUD",
    "PartnerCollectingPayment": true,
    "City": "Auckland",
    "Address1": "1 Queen Street",
    "PostalCode": "1010"
  }' \
  https://api-staging.rentalcover.com/insurances/instantBooking
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
    "BookingId": "5805150",
    "Reference": "N7U4-A2JE-INS",
    "Status": "Confirmed",
    "FromDate": "2024-04-19 00:00:00",
    "ToDate": "2024-04-22 00:00:00",
    "TotalAmount": "21.64",
    "ConfirmedOn": "2024-04-17 23:17:41",
    "PartnerSiteCode": null,
    "InsuranceCoverAmount": "92100.00",
    "TotalAmountFormatted": "AU$21.64",
    "InsuranceCoverAmountFormatted": "AU$92,100.00",
    "Disclaimer": "By clicking the button you confirm that you have considered the terms of the <a href=\"https://staging.rentalcover.com/pds/N7U4-A2JE-INS\" target=\"_blank\">PDS</a>. Asservo Mutual (NZBN 9429051103644) is the issuer of the mutual risk products and RentalCover.com, a trading name of Cover Genius Pty Ltd (ABN 43 159 983 598, AFSL No.490058) is its' agent. As a member of Asservo Mutual, you can view the Constitution on its' <a href=\"https://asservoprotection.com/\" target=\"_blank\">website</a>.\n",
    "VehicleTypes": {
        "freecancellationcover": false,
        "freetravelinsurance": false,
        "car": true,
        "motorhome": false,
        "campervan": false,
        "4x4": false,
        "minibus": false,
        "lighttruck": false,
        "bus": false,
        "caravan": false
    },
    "Logos": {
        "DarkFontPng": {
            "Type": "png",
            "Url": "https://files.rentalcover.com/logos/RentalCover.png"
        },
        "DarkFontSvg": {
            "Type": "svg",
            "Url": "https://files.rentalcover.com/logos/RentalCover.svg"
        },
        "LightFontPng": {
            "Type": "png",
            "Url": "https://files.rentalcover.com/logos/RentalCover-inverse.png"
        },
        "LightFontSvg": {
            "Type": "svg",
            "Url": "https://files.rentalcover.com/logos/RentalCover-inverse.svg"
        }
    },
    "Policy": {
        "Code": "FP NZ ROW inc.Baggage - Asservo Mutual",
        "Name": "Full Protection",
        "Type": "FullProtection",
        "PdsUrl": "https://staging.rentalcover.com/pds/N7U4-A2JE-INS"
    },
    "Customer": {
        "CustomerId": "347568",
        "FirstName": "Test",
        "LastName": "Test",
        "Email": "email+123@covergenius.com",
        "BackupEmail": "",
        "DateOfBirth": "1995-01-01",
        "Age": "29",
        "Phone": "0432-488-899",
        "Address1": "abc street",
        "Address2": "",
        "City": "brisbane",
        "Region": "SAN FRAN",
        "PostalCode": "55555",
        "Country": "New Zealand"
    }
}
```

{% endtab %}
{% endtabs %}

## Request parameters

InstantBooking accepts [Group A (Core booking)](https://partner-docs.covergenius.com/pages/WVMEVLGGGf8OHDZ9pLSL#group-a.-core-booking), [Group B (Customer)](https://partner-docs.covergenius.com/pages/WVMEVLGGGf8OHDZ9pLSL#group-b.-customer), and [Group F (Partner & integration)](https://partner-docs.covergenius.com/pages/WVMEVLGGGf8OHDZ9pLSL#group-f.-partner-and-integration), plus the differences listed below.

### Differences from Quote

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="184.9595947265625">Parameter</th><th width="150.32666015625">Required?</th><th>Note</th></tr></thead><tbody><tr><td><code>PolicyCode</code></td><td>Required</td><td>Policy code to purchase. No Quote step means this must be supplied explicitly. Provided by your CSE.</td></tr><tr><td><code>LanguageCode</code></td><td>Required</td><td>Required here; optional in Quote.</td></tr><tr><td><code>Currency</code></td><td>Required</td><td>Required here; optional in Quote.</td></tr><tr><td><code>AgentReference</code></td><td>Optional</td><td>Partner-supplied booking reference ending in <code>-INS</code>. Auto-generated if omitted.</td></tr><tr><td><code>PartnerReference</code></td><td>Optional</td><td>Your internal booking reference for customer service lookup.</td></tr></tbody></table>

{% hint style="info" %}
**Not accepted by InstantBooking**&#x20;

All [Group C (Vehicle)](https://partner-docs.covergenius.com/pages/WVMEVLGGGf8OHDZ9pLSL#group-c.-vehicle) fields, `FromLocationName`, `ToLocationName`, `VehiclePickupTime`, `VehicleDropoffTime` and all other pickup/drop-off location fields, `LDWIncluded`, `SLIIncluded`, `OtherEmail`, `OtherDriveAge1`/`2`, `ExpressCode`, `RoadSideAssistanceCoverOption`, `BWCookie`, `UserIpAddress`, `ContactCustomer`, `CoverAmount`, `Type`.
{% endhint %}

## Response

### Booking

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="184.87646484375">Field</th><th width="150.45703125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>Reference</code></td><td>string</td><td>Unique booking reference ending in <code>-INS</code>. Use this for Update and Cancel.</td></tr><tr><td><code>BookingId</code></td><td>integer</td><td>Internal booking ID.</td></tr><tr><td><code>Status</code></td><td>string</td><td>InstantBooking returns Confirmed directly.</td></tr><tr><td><code>ConfirmedOn</code></td><td>datetime</td><td>Timestamp of when the booking was confirmed.</td></tr><tr><td><code>PartnerReference</code></td><td>string</td><td>Partner reference from the request, if supplied.</td></tr></tbody></table>

### Pricing

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="199.513916015625">Field</th><th width="149.7342529296875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>TotalAmount</code></td><td>float</td><td>Total premium charged.</td></tr><tr><td><code>TotalAmountFormatted</code></td><td>string</td><td>Formatted total premium.</td></tr><tr><td><code>InsuranceCoverAmount</code></td><td>float</td><td>Total cover amount.</td></tr><tr><td><code>InsuranceCoverAmountFormatted</code></td><td>string</td><td>Formatted cover amount.</td></tr><tr><td><code>Disclaimer</code></td><td>string</td><td>Product disclaimer text.</td></tr></tbody></table>

### Vehicle coverage

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="200.238037109375">Field</th><th width="149.934326171875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>VehicleTypes.*</code></td><td>boolean</td><td>Flags indicating which vehicle types this product covers. Keys: <code>car</code>, <code>motorhome</code>, <code>campervan</code>, <code>4x4</code>, <code>minibus</code>, <code>lighttruck</code>, <code>bus</code>, <code>caravan</code>, <code>freecancellationcover</code>, <code>freetravelinsurance</code>.</td></tr></tbody></table>

### Logos

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="249.5465087890625">Field</th><th width="150.365478515625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>Logos.DarkFontPng.Url</code></td><td>string</td><td>URL to the dark-font PNG logo.</td></tr><tr><td><code>Logos.DarkFontSvg.Url</code></td><td>string</td><td>URL to the dark-font SVG logo.</td></tr><tr><td><code>Logos.LightFontPng.Url</code></td><td>string</td><td>URL to the light-font PNG logo.</td></tr><tr><td><code>Logos.LightFontSvg.Url</code></td><td>string</td><td>URL to the light-font SVG logo.</td></tr></tbody></table>

### Nested objects

<table data-header-hidden="false" data-header-sticky><thead><tr><th>Field</th><th>Object type</th><th>Reference</th></tr></thead><tbody><tr><td><code>Policy</code></td><td>Policy object (subset)</td><td>Returns <code>Code</code>, <code>Name</code>, <code>Type</code>, and <code>PdsUrl</code> only. See <a href="https://partner-docs.covergenius.com/rentalcover/shared-reference/response-objects.md#policy-object">Policy object</a>.</td></tr><tr><td><code>Customer</code></td><td>Customer object</td><td>See <a href="https://partner-docs.covergenius.com/rentalcover/shared-reference/response-objects.md#customer-object">Customer object</a>.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://partner-docs.covergenius.com/rentalcover/endpoints/instantbooking.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
