Skip to content
Navigation

DiscoverCarRentals

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

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>

Query parameters

  • pickup
    string
    required
    maxLength: 50 · pattern: ^(?:[A-Z]{3}|-?\d+(?:\.\d+)?,-?\d+(?:\.\d+)?)$
  • pickupDate
    string
    required
    format: date · 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])))$
  • dropoffDate
    string
    required
    format: date · 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])))$
  • dropoff
    optional
    string
    maxLength: 50 · pattern: ^(?:[A-Z]{3}|-?\d+(?:\.\d+)?,-?\d+(?:\.\d+)?)$
  • pickupTime
    optional
    string
    pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$ · default: "12:00"
  • dropoffTime
    optional
    string
    pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$ · default: "12:00"
  • pickupZone
    optional
    string
    maxLength: 64 · minLength: 1
  • dropoffZone
    optional
    string
    maxLength: 64 · minLength: 1
  • age
    optional
    integer
    maximum: 99 · minimum: 18 · default: 30
  • currency
    optional
    string
    pattern: ^[A-Z]{3}$ · default: "USD"
  • suppliers
    optional
    string
    maxLength: 89
  • transmission
    optional
    string
    maxLength: 30
  • extras
    optional
    string
    maxLength: 49
  • minPrice
    optional
    integer
    maximum: 9007199254740991 · minimum: 0
  • maxPrice
    optional
    integer
    maximum: 9007199254740991 · minimum: 1
  • minLuggage
    optional
    integer
    maximum: 20 · minimum: 0
  • minCargo
    optional
    integer
    maximum: 20 · minimum: 0
  • minSeats
    optional
    integer
    maximum: 20 · minimum: 1
  • sort
    optional
    price
    or
    -price
    or
    commission
    or
    -commission
    default: "price"
  • page
    optional
    integer
    maximum: 10000 · minimum: 1 · default: 1
  • size
    optional
    integer
    maximum: 100 · minimum: 1 · default: 20

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
  • items
    array of
    object
    required
    • 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
          • amountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • currency
            string
            required
            pattern: ^[A-Z]{3}$
        • 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
        • grossAmount
          required

          Any of the following:

          • Money
          • null
        • rateBasisPoints
          required

          Any of the following:

          • integer
          • null
        • source
          NICER_PRICE_ADJUSTMENT
          or
          PROVIDER_RATE
          required
      • 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
  • fetchedAt
    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))$
  • 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))$
  • page
    object
    required
    • number
      integer
      required
      maximum: 9007199254740991
    • size
      integer
      required
      maximum: 9007199254740991
    • total
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • hasMore
      boolean
      required
  • filters
    object
    required
    • applied
      object
      required
      • supplierCodes
        array of
        string
        required
        pattern: ^[A-Z0-9]{2}$ · default: []
      • transmission
        array of
        AUTOMATIC
        or
        MANUAL
        required
        default: []
      • extras
        array of
        string
        required
        pattern: ^[A-Z0-9]{3}$ · default: []
      • minimumPriceMinor
        optional
        integer
        maximum: 9007199254740991 · minimum: 0
      • maximumPriceMinor
        optional
        integer
        maximum: 9007199254740991
      • minimumLuggage
        optional
        integer
        maximum: 20 · minimum: 0
      • minimumCargo
        optional
        integer
        maximum: 20 · minimum: 0
      • minimumSeats
        optional
        integer
        maximum: 20 · minimum: 1
    • available
      object
      required
      • suppliers
        array of
        object
        required
        • code
          string
          required
        • name
          string
          required
      • transmission
        array of
        string
        required
      • extras
        array of
        object
        required
        • code
          string
          required
        • name
          string
          required
      • price
        required

        Any of the following:

        • object
          • currency
            string
            required
            pattern: ^[A-Z]{3}$
          • minimumMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • maximumMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
        • null
      • maximumLuggage
        required

        Any of the following:

        • number
        • null
      • maximumCargo
        required

        Any of the following:

        • number
        • null
      • maximumSeats
        required

        Any of the following:

        • number
        • 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