Skip to content
Navigation

DiscoverCarRentalDetails

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

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

Authorization

  • companyHeader
    optional
    API key in header

    x-nicer-company: <token>

  • discoveryBearer
    optional
    HTTP Bearer (JWT)

    Authorization: Bearer <token>

Path parameters

  • offerReference
    string
    required

Header parameters

  • x-nicer-company
    optional
    string

    Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.

  • Accept
    optional
    application/json
    or
    text/event-stream

Returns

200

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

JSON
  • status
    OK
    or
    PRICE_CHANGED
    or
    UNAVAILABLE
    required
  • offer
    required

    Any of the following:

    • 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
        string
        required
        minLength: 1
      • price
        object
        required
        • breakdown
          object
          required
          • baseMinor
            required

            Any of the following:

            • integer
            • null
          • discountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • nicerAdjustmentMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • supplierFeesMinor
            required

            Any of the following:

            • integer
            • null
          • taxesMinor
            required

            Any of the following:

            • integer
            • null
        • currency
          string
          required
          pattern: ^[A-Z]{3}$
        • totalMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
      • productKind
        string
        required
      • providerKey
        string
        required
      • availabilityStatus
        required

        Any of the following:

        • string
        • null
      • cancellation
        object
        required
        • allowed
          required

          Any of the following:

          • boolean
          • null
        • deadline
          required

          Any of the following:

          • string
          • null
        • penalty
          required

          Any of the following:

          • Money
          • null
        • summary
          required

          Any of the following:

          • string
          • null
      • category
        string
        required
        minLength: 1
      • deskInstructions
        required

        Any of the following:

        • string
        • null
      • 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
        object
        required
        • address
          required

          Any of the following:

          • string
          • null
        • latitude
          required

          Any of the following:

          • number
          • null
        • longitude
          required

          Any of the following:

          • number
          • null
        • name
          string
          required
          minLength: 1
        • localDateTime
          optional
          string
          pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$
        • timeZone
          optional

          Any of the following:

          • string
          • null
        • utcOffset
          optional

          Any of the following:

          • string
          • null
      • estimatedCommission
        required

        Any of the following:

        • EstimatedCommission
        • null
      • extras
        array of
        object
        required
        • availability
          CONFIRMED
          or
          NOT_AVAILABLE
          or
          ON_REQUEST
          required
        • billingUnit
          PER_BOOKING
          or
          PER_DAY
          or
          PER_HOUR
          or
          PER_UNIT
          required
        • code
          string
          required
          minLength: 1
        • name
          string
          required
          minLength: 1
        • price
          object
          required
          • amountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • currency
            string
            required
            pattern: ^[A-Z]{3}$
      • fuelPolicy
        required

        Any of the following:

        • string
        • null
      • guaranteeRequired
        required

        Any of the following:

        • boolean
        • null
      • images
        array of
        object
        required
        • height
          required

          Any of the following:

          • integer
          • null
        • type
          required

          Any of the following:

          • string
          • null
        • url
          string
          required
          format: uri
        • width
          required

          Any of the following:

          • integer
          • null
      • mileagePolicy
        required

        Any of the following:

        • string
        • null
      • 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
        object
        required
        • address
          required

          Any of the following:

          • string
          • null
        • latitude
          required

          Any of the following:

          • number
          • null
        • longitude
          required

          Any of the following:

          • number
          • null
        • name
          string
          required
          minLength: 1
        • localDateTime
          optional
          string
          pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$
        • timeZone
          optional

          Any of the following:

          • string
          • null
        • utcOffset
          optional

          Any of the following:

          • string
          • null
      • rateCode
        required

        Any of the following:

        • string
        • null
      • ratePlan
        required

        Any of the following:

        • string
        • null
      • rentalDays
        required

        Any of the following:

        • integer
        • null
      • rentalHours
        required

        Any of the following:

        • integer
        • null
      • specifications
        object
        required
        • bodyType
          required

          Any of the following:

          • string
          • null
        • cargoCapacity
          required

          Any of the following:

          • number
          • null
        • doors
          required

          Any of the following:

          • integer
          • null
        • driveWheelConfiguration
          required

          Any of the following:

          • string
          • null
        • fuelType
          required

          Any of the following:

          • string
          • null
        • luggageCapacity
          required

          Any of the following:

          • number
          • null
        • seatingCapacity
          required

          Any of the following:

          • integer
          • null
        • transmission
          required

          Any of the following:

          • string
          • null
        • vehicleType
          required

          Any of the following:

          • string
          • null
      • supplierName
        string
        required
        minLength: 1
      • supplier
        object
        required
        • code
          required

          Any of the following:

          • string
          • null
        • logoUrl
          required

          Any of the following:

          • string
          • null
        • name
          string
          required
          minLength: 1
      • vehicleName
        string
        required
        minLength: 1
      • charges
        optional
        array of
        object
        • amountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • currency
          string
          required
          pattern: ^[A-Z]{3}$
        • chargeType
          string
          required
          minLength: 1
        • extraMileageCharge
          required

          Any of the following:

          • string
          • null
        • mileageAllowance
          required

          Any of the following:

          • string
          • null
        • unitOfMeasure
          required

          Any of the following:

          • string
          • null
      • paymentPolicy
        optional
        object
        • kind
          PAY_AT_LOCATION
          or
          PREPAID
          or
          UNKNOWN
          required
        • summary
          required

          Any of the following:

          • string
          • null
        • timing
          required

          Any of the following:

          • string
            PICKUP
            or
            RETURN
          • null
    • null
  • previousPrice
    required

    Any of the following:

    • object
      • breakdown
        object
        required
        • baseMinor
          required

          Any of the following:

          • integer
          • null
        • discountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • nicerAdjustmentMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • supplierFeesMinor
          required

          Any of the following:

          • integer
          • null
        • taxesMinor
          required

          Any of the following:

          • integer
          • null
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • totalMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
    • null
  • reasonCode
    required

    Any of the following:

    • string
    • null
text/event-stream

Type:string

string

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close