---
title: "DiscoverCarRentalDetails"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# DiscoverCarRentalDetails

Path: Nicer API › Booking

`GET /booking/car-rentals/{offerReference}`

URL: `https://api.nicer.travel/booking/car-rentals/{offerReference}`

JSON is the default; Accept: text/event-stream or format=stream requests SSE.

## Authentication

Requires one of the following:

- `companyHeader`, apiKey, in header, header `x-nicer-company`
- `discoveryBearer`, http bearer, header `Authorization`, format `JWT`

## Path parameters

- `offerReference` (`booking.carRentals.get.path.offerReference`; string, required)

## Header parameters

- `x-nicer-company` (`booking.carRentals.get.header.x-nicer-company`; string, optional) — Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.
- `Accept` (`booking.carRentals.get.header.Accept`; string, optional)
  - one of `"application/json"`, `"text/event-stream"`

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.booking.carRentals.get({
  "offerReference": "string"
});
```

### Nicer CLI

```bash
nicer booking car-rentals get --offer-reference 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/booking/car-rentals/<offerReference>' \
  --header 'x-nicer-company: <x-nicer-company>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/booking/car-rentals/<offerReference>';
const options = {
  method: 'GET',
  headers: {'x-nicer-company': '<x-nicer-company>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/booking/car-rentals/<offerReference>"

headers = {"x-nicer-company": "<x-nicer-company>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

JSON snapshot or SSE frames (the schema describes each frame's JSON data).

#### Body (application/json)

- `status` (`booking.carRentals.get.response.200.status`; string, required)
  - one of `"OK"`, `"PRICE_CHANGED"`, `"UNAVAILABLE"`
- `offer` (`booking.carRentals.get.response.200.offer`; any of, required)
  - any of the following:
    - `CarRentalOffer`
      - `expiresAt` (`CarRentalOffer.expiresAt`; string, required)
        - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
      - `offerReference` (`CarRentalOffer.offerReference`; string, required)
        - minLength: `1`
      - `price` (`CarRentalOffer.price`; object, required)
        - `breakdown` (`CarRentalOffer.price.breakdown`; object, required)
          - `baseMinor` (`CarRentalOffer.price.breakdown.baseMinor`; any of, required)
            - any of the following: `integer`, `null`
          - `discountMinor` (`CarRentalOffer.price.breakdown.discountMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `0`
          - `nicerAdjustmentMinor` (`CarRentalOffer.price.breakdown.nicerAdjustmentMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `0`
          - `supplierFeesMinor` (`CarRentalOffer.price.breakdown.supplierFeesMinor`; any of, required)
            - any of the following: `integer`, `null`
          - `taxesMinor` (`CarRentalOffer.price.breakdown.taxesMinor`; any of, required)
            - any of the following: `integer`, `null`
        - `currency` (`CarRentalOffer.price.currency`; string, required)
          - pattern: `^[A-Z]{3}$`
        - `totalMinor` (`CarRentalOffer.price.totalMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
      - `productKind` (`CarRentalOffer.productKind`; string, required)
      - `providerKey` (`CarRentalOffer.providerKey`; string, required)
      - `availabilityStatus` (`CarRentalOffer.availabilityStatus`; any of, required)
        - any of the following: `string`, `null`
      - `cancellation` (`CarRentalOffer.cancellation`; object, required)
        - `allowed` (`CarRentalOffer.cancellation.allowed`; any of, required)
          - any of the following: `boolean`, `null`
        - `deadline` (`CarRentalOffer.cancellation.deadline`; any of, required)
          - any of the following: `string`, `null`
        - `penalty` (`CarRentalOffer.cancellation.penalty`; any of, required)
          - any of the following: `Money`, `null`
        - `summary` (`CarRentalOffer.cancellation.summary`; any of, required)
          - any of the following: `string`, `null`
      - `category` (`CarRentalOffer.category`; string, required)
        - minLength: `1`
      - `deskInstructions` (`CarRentalOffer.deskInstructions`; any of, required)
        - any of the following: `string`, `null`
      - `dropOffAt` (`CarRentalOffer.dropOffAt`; string, required)
        - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
      - `dropOffLocation` (`CarRentalOffer.dropOffLocation`; object, required)
        - `address` (`CarRentalOffer.dropOffLocation.address`; any of, required)
          - any of the following: `string`, `null`
        - `latitude` (`CarRentalOffer.dropOffLocation.latitude`; any of, required)
          - any of the following: `number`, `null`
        - `longitude` (`CarRentalOffer.dropOffLocation.longitude`; any of, required)
          - any of the following: `number`, `null`
        - `name` (`CarRentalOffer.dropOffLocation.name`; string, required)
          - minLength: `1`
        - `localDateTime` (`CarRentalOffer.dropOffLocation.localDateTime`; string, optional)
          - pattern: `^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$`
        - `timeZone` (`CarRentalOffer.dropOffLocation.timeZone`; any of, optional)
          - any of the following: `string`, `null`
        - `utcOffset` (`CarRentalOffer.dropOffLocation.utcOffset`; any of, optional)
          - any of the following: `string`, `null`
      - `estimatedCommission` (`CarRentalOffer.estimatedCommission`; any of, required)
        - any of the following: `EstimatedCommission`, `null`
      - `extras` (`CarRentalOffer.extras`; array of object, required)
        - `availability` (`CarRentalOffer.extras.availability`; string, required)
          - one of `"CONFIRMED"`, `"NOT_AVAILABLE"`, `"ON_REQUEST"`
        - `billingUnit` (`CarRentalOffer.extras.billingUnit`; string, required)
          - one of `"PER_BOOKING"`, `"PER_DAY"`, `"PER_HOUR"`, `"PER_UNIT"`
        - `code` (`CarRentalOffer.extras.code`; string, required)
          - minLength: `1`
        - `name` (`CarRentalOffer.extras.name`; string, required)
          - minLength: `1`
        - `price` (`CarRentalOffer.extras.price`; object, required)
          - `amountMinor` (`CarRentalOffer.extras.price.amountMinor`; integer, required)
            - maximum: `9007199254740991` · minimum: `0`
          - `currency` (`CarRentalOffer.extras.price.currency`; string, required)
            - pattern: `^[A-Z]{3}$`
      - `fuelPolicy` (`CarRentalOffer.fuelPolicy`; any of, required)
        - any of the following: `string`, `null`
      - `guaranteeRequired` (`CarRentalOffer.guaranteeRequired`; any of, required)
        - any of the following: `boolean`, `null`
      - `images` (`CarRentalOffer.images`; array of object, required)
        - `height` (`CarRentalOffer.images.height`; any of, required)
          - any of the following: `integer`, `null`
        - `type` (`CarRentalOffer.images.type`; any of, required)
          - any of the following: `string`, `null`
        - `url` (`CarRentalOffer.images.url`; string, required)
          - format: `uri`
        - `width` (`CarRentalOffer.images.width`; any of, required)
          - any of the following: `integer`, `null`
      - `mileagePolicy` (`CarRentalOffer.mileagePolicy`; any of, required)
        - any of the following: `string`, `null`
      - `pickUpAt` (`CarRentalOffer.pickUpAt`; string, required)
        - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
      - `pickUpLocation` (`CarRentalOffer.pickUpLocation`; object, required)
        - `address` (`CarRentalOffer.pickUpLocation.address`; any of, required)
          - any of the following: `string`, `null`
        - `latitude` (`CarRentalOffer.pickUpLocation.latitude`; any of, required)
          - any of the following: `number`, `null`
        - `longitude` (`CarRentalOffer.pickUpLocation.longitude`; any of, required)
          - any of the following: `number`, `null`
        - `name` (`CarRentalOffer.pickUpLocation.name`; string, required)
          - minLength: `1`
        - `localDateTime` (`CarRentalOffer.pickUpLocation.localDateTime`; string, optional)
          - pattern: `^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$`
        - `timeZone` (`CarRentalOffer.pickUpLocation.timeZone`; any of, optional)
          - any of the following: `string`, `null`
        - `utcOffset` (`CarRentalOffer.pickUpLocation.utcOffset`; any of, optional)
          - any of the following: `string`, `null`
      - `rateCode` (`CarRentalOffer.rateCode`; any of, required)
        - any of the following: `string`, `null`
      - `ratePlan` (`CarRentalOffer.ratePlan`; any of, required)
        - any of the following: `string`, `null`
      - `rentalDays` (`CarRentalOffer.rentalDays`; any of, required)
        - any of the following: `integer`, `null`
      - `rentalHours` (`CarRentalOffer.rentalHours`; any of, required)
        - any of the following: `integer`, `null`
      - `specifications` (`CarRentalOffer.specifications`; object, required)
        - `bodyType` (`CarRentalOffer.specifications.bodyType`; any of, required)
          - any of the following: `string`, `null`
        - `cargoCapacity` (`CarRentalOffer.specifications.cargoCapacity`; any of, required)
          - any of the following: `number`, `null`
        - `doors` (`CarRentalOffer.specifications.doors`; any of, required)
          - any of the following: `integer`, `null`
        - `driveWheelConfiguration` (`CarRentalOffer.specifications.driveWheelConfiguration`; any of, required)
          - any of the following: `string`, `null`
        - `fuelType` (`CarRentalOffer.specifications.fuelType`; any of, required)
          - any of the following: `string`, `null`
        - `luggageCapacity` (`CarRentalOffer.specifications.luggageCapacity`; any of, required)
          - any of the following: `number`, `null`
        - `seatingCapacity` (`CarRentalOffer.specifications.seatingCapacity`; any of, required)
          - any of the following: `integer`, `null`
        - `transmission` (`CarRentalOffer.specifications.transmission`; any of, required)
          - any of the following: `string`, `null`
        - `vehicleType` (`CarRentalOffer.specifications.vehicleType`; any of, required)
          - any of the following: `string`, `null`
      - `supplierName` (`CarRentalOffer.supplierName`; string, required)
        - minLength: `1`
      - `supplier` (`CarRentalOffer.supplier`; object, required)
        - `code` (`CarRentalOffer.supplier.code`; any of, required)
          - any of the following: `string`, `null`
        - `logoUrl` (`CarRentalOffer.supplier.logoUrl`; any of, required)
          - any of the following: `string`, `null`
        - `name` (`CarRentalOffer.supplier.name`; string, required)
          - minLength: `1`
      - `vehicleName` (`CarRentalOffer.vehicleName`; string, required)
        - minLength: `1`
      - `charges` (`CarRentalOffer.charges`; array of object, optional)
        - `amountMinor` (`CarRentalOffer.charges.amountMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `currency` (`CarRentalOffer.charges.currency`; string, required)
          - pattern: `^[A-Z]{3}$`
        - `chargeType` (`CarRentalOffer.charges.chargeType`; string, required)
          - minLength: `1`
        - `extraMileageCharge` (`CarRentalOffer.charges.extraMileageCharge`; any of, required)
          - any of the following: `string`, `null`
        - `mileageAllowance` (`CarRentalOffer.charges.mileageAllowance`; any of, required)
          - any of the following: `string`, `null`
        - `unitOfMeasure` (`CarRentalOffer.charges.unitOfMeasure`; any of, required)
          - any of the following: `string`, `null`
      - `paymentPolicy` (`CarRentalOffer.paymentPolicy`; object, optional)
        - `kind` (`CarRentalOffer.paymentPolicy.kind`; string, required)
          - one of `"PAY_AT_LOCATION"`, `"PREPAID"`, `"UNKNOWN"`
        - `summary` (`CarRentalOffer.paymentPolicy.summary`; any of, required)
          - any of the following: `string`, `null`
        - `timing` (`CarRentalOffer.paymentPolicy.timing`; any of, required)
          - any of the following:
            - `string`: one of `"PICKUP"`, `"RETURN"`
            - `null`
    - `null`
- `previousPrice` (`booking.carRentals.get.response.200.previousPrice`; any of, required)
  - any of the following:
    - `object`
      - `breakdown` (`booking.carRentals.get.response.200.previousPrice.1.breakdown`; object, required)
        - `baseMinor` (`booking.carRentals.get.response.200.previousPrice.1.breakdown.baseMinor`; any of, required)
          - any of the following: `integer`, `null`
        - `discountMinor` (`booking.carRentals.get.response.200.previousPrice.1.breakdown.discountMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `nicerAdjustmentMinor` (`booking.carRentals.get.response.200.previousPrice.1.breakdown.nicerAdjustmentMinor`; integer, required)
          - maximum: `9007199254740991` · minimum: `0`
        - `supplierFeesMinor` (`booking.carRentals.get.response.200.previousPrice.1.breakdown.supplierFeesMinor`; any of, required)
          - any of the following: `integer`, `null`
        - `taxesMinor` (`booking.carRentals.get.response.200.previousPrice.1.breakdown.taxesMinor`; any of, required)
          - any of the following: `integer`, `null`
      - `currency` (`booking.carRentals.get.response.200.previousPrice.1.currency`; string, required)
        - pattern: `^[A-Z]{3}$`
      - `totalMinor` (`booking.carRentals.get.response.200.previousPrice.1.totalMinor`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
    - `null`
- `reasonCode` (`booking.carRentals.get.response.200.reasonCode`; any of, required)
  - any of the following: `string`, `null`

##### Example

```json
{
  "status": "OK",
  "offer": {
    "expiresAt": "2019-08-24T14:15:22Z",
    "offerReference": "string",
    "price": {
      "breakdown": {
        "baseMinor": 9007199254740991,
        "discountMinor": 9007199254740991,
        "nicerAdjustmentMinor": 9007199254740991,
        "supplierFeesMinor": 9007199254740991,
        "taxesMinor": 9007199254740991
      },
      "currency": "string",
      "totalMinor": 9007199254740991
    },
    "productKind": "CAR_RENTAL",
    "providerKey": "string",
    "availabilityStatus": "string",
    "cancellation": {
      "allowed": true,
      "deadline": "2019-08-24T14:15:22Z",
      "penalty": {
        "amountMinor": 9007199254740991,
        "currency": "string"
      },
      "summary": "string"
    },
    "category": "string",
    "charges": [
      {
        "amountMinor": 9007199254740991,
        "currency": "string",
        "chargeType": "string",
        "extraMileageCharge": "string",
        "mileageAllowance": "string",
        "unitOfMeasure": "string"
      }
    ],
    "deskInstructions": "string",
    "dropOffAt": "2019-08-24T14:15:22Z",
    "dropOffLocation": {
      "address": "string",
      "latitude": -90,
      "localDateTime": "string",
      "longitude": -180,
      "name": "string",
      "timeZone": "string",
      "utcOffset": "string"
    },
    "estimatedCommission": {
      "grossAmount": {
        "amountMinor": 9007199254740991,
        "currency": "string"
      },
      "rateBasisPoints": 9007199254740991,
      "source": "NICER_PRICE_ADJUSTMENT"
    },
    "extras": [
      {
        "availability": "CONFIRMED",
        "billingUnit": "PER_BOOKING",
        "code": "string",
        "name": "string",
        "price": {
          "amountMinor": 9007199254740991,
          "currency": "string"
        }
      }
    ],
    "fuelPolicy": "string",
    "guaranteeRequired": true,
    "images": [
      {
        "height": 9007199254740991,
        "type": "string",
        "url": "http://example.com",
        "width": 9007199254740991
      }
    ],
    "mileagePolicy": "string",
    "paymentPolicy": {
      "kind": "PAY_AT_LOCATION",
      "summary": "string",
      "timing": "PICKUP"
    },
    "pickUpAt": "2019-08-24T14:15:22Z",
    "pickUpLocation": {
      "address": "string",
      "latitude": -90,
      "localDateTime": "string",
      "longitude": -180,
      "name": "string",
      "timeZone": "string",
      "utcOffset": "string"
    },
    "rateCode": "string",
    "ratePlan": "string",
    "rentalDays": 9007199254740991,
    "rentalHours": 9007199254740991,
    "specifications": {
      "bodyType": "string",
      "cargoCapacity": 0,
      "doors": 9007199254740991,
      "driveWheelConfiguration": "string",
      "fuelType": "string",
      "luggageCapacity": 0,
      "seatingCapacity": 9007199254740991,
      "transmission": "string",
      "vehicleType": "string"
    },
    "supplierName": "string",
    "supplier": {
      "code": "string",
      "logoUrl": "http://example.com",
      "name": "string"
    },
    "vehicleName": "string"
  },
  "previousPrice": {
    "breakdown": {
      "baseMinor": 9007199254740991,
      "discountMinor": 9007199254740991,
      "nicerAdjustmentMinor": 9007199254740991,
      "supplierFeesMinor": 9007199254740991,
      "taxesMinor": 9007199254740991
    },
    "currency": "string",
    "totalMinor": 9007199254740991
  },
  "reasonCode": "string"
}
```

#### Body (text/event-stream)

Type: `string`

##### Example

```text
string
```

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.carRentals.get.response.400.errorCode`; string, required)
- `errorMessage` (`booking.carRentals.get.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.carRentals.get.response.401.errorCode`; string, required)
- `errorMessage` (`booking.carRentals.get.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`booking.carRentals.get.response.403.errorCode`; string, required)
- `errorMessage` (`booking.carRentals.get.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Booking/booking.carRentals.get/index.md
