# Car constants

`POST /cars/constants`

> This is a subset of the full specification, limited to the `POST /cars/constants` operation.
>
> You can find the full specification here: /_bundle/demand/docs/open-api/demand-api.yaml

```yaml
openapi: 3.1.0
info:
  title: Booking.com Demand API
  version: '3.1'
  summary: |
    > ⚠️ **Demand API v3.1 is in maintenance mode**. No new features or capabilities will be added to this version; updates are limited to bug fixes. For new integrations or access to the latest features, use the latest stable version.

    Use Demand API v3.1 to search, retrieve details, check accommodation availability, manage bookings and run reports using orders details.

    - RESTful API with JSON responses.
    - Make HTTPS POST requests to interact with endpoints.
    - Requires authentication using your Affiliate ID and token credentials.
  description: This is a subset of the full specification, limited to the `POST /cars/constants` operation.
servers:
  - url: https://demandapi.booking.com/3.1
    description: Production environment
  - url: https://demandapi-sandbox.booking.com/3.1
    description: Sandbox environment
security:
  - BearerAuth: []
tags:
  - name: Cars
    x-displayName: Car rentals
    description: This API collection is specific to the car rentals part of the connected trip.</br></br> Use these endpoints to search for car rentals, check car details and look for depots and suppliers.
x-tagGroups:
  - name: Travel services
    tags:
      - Cars
paths:
  /cars/constants:
    post:
      summary: Car constants
      description: This endpoint returns a list of relevant car constants names in the specified languages. For example, calling with the parameters {"languages":"en-us","fr"} will return the list in English (US) and French. To retrieve the full list, make the request with an empty body.
      operationId: /constants
      parameters:
        - $ref: '#/components/parameters/AffiliateIdHeader'
      tags:
        - Cars
      requestBody:
        content:
          application/json:
            schema:
              title: CarsConstantsInput
              type: object
              properties:
                constants:
                  description: A list of car rental constant types to filter the results by. This allows you to narrow down the result based on particular criteria, such as fuel_policy, payment_timings etc.
                  type: array
                  items:
                    type: string
                    enum:
                      - depot_services
                      - fuel_policies
                      - fuel_types
                      - general
                      - payment_timings
                      - transmission
                languages:
                  type: array
                  items:
                    description: 'A [IETF language tag code](https://en.wikipedia.org/wiki/IETF_language_tag) that uniquely identifies a supported human language or dialect. **Note:** Demand API only accepts lowercase for the language codes. Examples: "nl" for Dutch/Nederlands or "en-us" for English (US). To retrieve the full list of supported languages, call the `/common/languages` endpoint in the same Demand API version you are using.'
                    type: string
                    pattern: ^[a-z]{2}(-[a-z]{2})?$
                    example: en-us
                  default:
                    - en-gb
            example:
              languages:
                - de
                - en-gb
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                title: CarsConstantsOutput
                type: object
                properties:
                  request_id:
                    description: Uniquely identifies the request. Please provide this identifier when contacting support.
                    type: string
                  data:
                    title: ConstantsDataOutput
                    type: object
                    properties:
                      depot_services:
                        title: CarsConstant
                        description: Id and translated names for the constant.
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            title: TranslatedString
                            description: A string localised in multiple languages.
                            type: object
                            patternProperties:
                              ^[a-z]{2}(-[a-z]{2})$:
                                description: The content localised in this language.
                                type:
                                  - string
                                  - 'null'
                      fuel_policies:
                        title: CarsConstant
                        description: Id and translated names for the constant.
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            title: TranslatedString
                            description: A string localised in multiple languages.
                            type: object
                            patternProperties:
                              ^[a-z]{2}(-[a-z]{2})$:
                                description: The content localised in this language.
                                type:
                                  - string
                                  - 'null'
                      fuel_types:
                        title: CarsConstant
                        description: Id and translated names for the constant.
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            title: TranslatedString
                            description: A string localised in multiple languages.
                            type: object
                            patternProperties:
                              ^[a-z]{2}(-[a-z]{2})$:
                                description: The content localised in this language.
                                type:
                                  - string
                                  - 'null'
                      general:
                        title: CarsConstant
                        description: Id and translated names for the constant.
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            title: TranslatedString
                            description: A string localised in multiple languages.
                            type: object
                            patternProperties:
                              ^[a-z]{2}(-[a-z]{2})$:
                                description: The content localised in this language.
                                type:
                                  - string
                                  - 'null'
                      payment_timings:
                        title: CarsConstant
                        description: Id and translated names for the constant.
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            title: TranslatedString
                            description: A string localised in multiple languages.
                            type: object
                            patternProperties:
                              ^[a-z]{2}(-[a-z]{2})$:
                                description: The content localised in this language.
                                type:
                                  - string
                                  - 'null'
                      transmission:
                        title: CarsConstant
                        description: Id and translated names for the constant.
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            title: TranslatedString
                            description: A string localised in multiple languages.
                            type: object
                            patternProperties:
                              ^[a-z]{2}(-[a-z]{2})$:
                                description: The content localised in this language.
                                type:
                                  - string
                                  - 'null'
              example:
                request_id: 01jpvx9va93ghgwxq7zypagvdr
                data:
                  depot_services:
                    - id: meet_greet
                      name:
                        de: Meet & Greet
                        en-gb: Meet & Greet
                    - id: shuttle
                      name:
                        de: Shuttlebus
                        en-gb: Shuttle Bus
                  fuel_policies:
                    - id: free_tank
                      name:
                        de: Kostenlose Tankfüllung
                        en-gb: Free Tank
                    - id: prepay_no_refunds
                      name:
                        de: Vorab-Einkauf
                        en-gb: Pre-Purchase
                    - id: prepay_part_refunds
                      name:
                        de: Vorab-Einkauf (Teilerstattung)
                        en-gb: Pre-purchase (partial refund)
                    - id: prepay_refunds
                      name:
                        de: Vorab-Einkauf
                        en-gb: Pre-Purchase
                    - id: return_same
                      name:
                        de: Gleiche Tankfüllung
                        en-gb: Like for like
                  fuel_types:
                    - id: electric
                      name:
                        de: Rein elektrisch
                        en-gb: Fully electric
                    - id: hybrid
                      name:
                        de: Hybrid
                        en-gb: Hybrid
                    - id: petrol
                      name:
                        de: Benzin
                        en-gb: Petrol
                    - id: plug_in_hybrid
                      name:
                        de: Plug-in-Hybrid
                        en-gb: Plug-in hybrid
                  general:
                    - id: air_conditioning
                      name:
                        de: Flughafen (im Terminal)
                        en-gb: Airport (in terminal)
                    - id: airport
                      name:
                        de: Klimaanlage
                        en-gb: Air Conditioning
                    - id: free_cancellation
                      name:
                        de: Kostenlose Stornierung
                        en-gb: Free cancellation
                    - id: kilometers
                      name:
                        de: km
                        en-gb: km
                    - id: limited
                      name:
                        de: Begrenzt
                        en-gb: Limited
                    - id: miles
                      name:
                        de: Meilen
                        en-gb: miles
                    - id: n_large_bags
                      name:
                        de: N große Koffer
                        en-gb: N Large bags
                    - id: n_small_bags
                      name:
                        de: N kleine Koffer
                        en-gb: N Small bags
                  payment_timings:
                    - id: part_pay
                      name:
                        de: Teils jetzt zahlen, teils später
                        en-gb: Pay part now, part later
                    - id: pay_now
                      name:
                        de: Jetzt zahlbar
                        en-gb: Pay now
                  transmission:
                    - id: automatic
                      name:
                        de: Automatik
                        en-gb: Automatic
                    - id: manual
                      name:
                        de: Schaltgetriebe
                        en-gb: Manual
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: string
  parameters:
    AffiliateIdHeader:
      in: header
      name: X-Affiliate-Id
      schema:
        type: integer
      required: true
      description: Include here your Affiliate identifier number
```
