application/json

Body

  • brand string
  • model string
  • registration_number string
  • registration_year integer
  • kilometers integer
  • energy string

    Type de carburant

    Values are Essence SP, Diesel, Electrique, or Hybride.

  • gearbox string

    Type de boite de vitesse

    Values are Manuelle or Automatique.

  • description string
  • nb_places integer

    Nombre de places

  • nb_doors integer

    Nombre de portes

  • gps boolean
  • baby_seat boolean
  • cooling boolean
  • bluetooth boolean
  • reverse_radar boolean

    Radar de recul

  • agency_id number
  • vehicle_category_id number

Responses

  • 200 application/json

    200 response

    Hide response attributes Show response attributes object
    • id integer
    • registration_year integer
    • registration_number string
    • brand string
    • model string
    • category object
      Hide category attributes Show category attributes object
      • id integer
      • name string
    • kilometers integer
    • energy string

      Type de carburant

      Values are Essence SP, Diesel, Electrique, or Hybride.

    • gearbox string

      Type de boite de vitesse

      Values are Manuelle or Automatique.

    • description string
    • nb_places integer
    • nb_doors integer
    • pictures array[object]
      Hide pictures attributes Show pictures attributes object
      • medium_url string
      • small_url string
      • square_url string
      • url string
    • specificities object
      Hide specificities attributes Show specificities attributes object
      • cooling boolean
      • gps boolean
      • bluetooth boolean
      • reverse_radar boolean
      • baby_seat boolean
    • agency object

      Agence

      Hide agency attributes Show agency attributes object
      • id integer
      • name string
      • code string
      • address object
        Hide address attributes Show address attributes object
        • street_line_one string
        • street_line_two string
        • district string
        • postcode integer
        • city string
    • prices array[object]
      Hide prices attributes Show prices attributes object
      • min_days integer
      • max_days integer
      • high_season number
      • medium_season number
      • low_season number
    • options array[object]
      Hide options attributes Show options attributes object
      • name string
      • amount number
      • code_option string
      • pricing_type string

        Type tarification d'option

        Values are per_day or total.

      • count integer
      • icon string
      • option_id integer
    • agencies array[object]

      Agence

      Hide agencies attributes Show agencies attributes object
      • id integer
      • name string
      • code string
      • address object
        Hide address attributes Show address attributes object
        • street_line_one string
        • street_line_two string
        • district string
        • postcode integer
        • city string
    • mileage_levels array[object]
      Hide mileage_levels attributes Show mileage_levels attributes object
      • id integer
      • mileage number
      • is_default boolean
      • amount number
      • unlimited boolean
      • included_in_booking boolean
    • metadata object
POST /vehicles
curl \
 --request POST 'https://api.fleetee.io/vehicles' \
 --header "x-api-key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"brand":"string","model":"string","registration_number":"string","registration_year":42,"kilometers":42,"energy":"Essence SP","gearbox":"Manuelle","description":"string","nb_places":42,"nb_doors":42,"gps":true,"baby_seat":true,"cooling":true,"bluetooth":true,"reverse_radar":true,"agency_id":42.0,"vehicle_category_id":42.0}'
Request examples
{
  "brand": "string",
  "model": "string",
  "registration_number": "string",
  "registration_year": 42,
  "kilometers": 42,
  "energy": "Essence SP",
  "gearbox": "Manuelle",
  "description": "string",
  "nb_places": 42,
  "nb_doors": 42,
  "gps": true,
  "baby_seat": true,
  "cooling": true,
  "bluetooth": true,
  "reverse_radar": true,
  "agency_id": 42.0,
  "vehicle_category_id": 42.0
}
Response examples (200)
{
  "id": 42,
  "registration_year": 42,
  "registration_number": "string",
  "brand": "string",
  "model": "string",
  "category": {
    "id": 42,
    "name": "string"
  },
  "kilometers": 42,
  "energy": "Essence SP",
  "gearbox": "Manuelle",
  "description": "string",
  "nb_places": 42,
  "nb_doors": 42,
  "pictures": [
    {
      "medium_url": "string",
      "small_url": "string",
      "square_url": "string",
      "url": "string"
    }
  ],
  "specificities": {
    "cooling": true,
    "gps": true,
    "bluetooth": true,
    "reverse_radar": true,
    "baby_seat": true
  },
  "agency": {
    "id": 42,
    "name": "string",
    "code": "string",
    "address": {
      "street_line_one": "string",
      "street_line_two": "string",
      "district": "string",
      "postcode": 42,
      "city": "string"
    }
  },
  "prices": [
    {
      "min_days": 42,
      "max_days": 42,
      "high_season": 42.0,
      "medium_season": 42.0,
      "low_season": 42.0
    }
  ],
  "options": [
    {
      "name": "string",
      "amount": 42.0,
      "code_option": "string",
      "pricing_type": "per_day",
      "count": 42,
      "icon": "string",
      "option_id": 42
    }
  ],
  "agencies": [
    {
      "id": 42,
      "name": "string",
      "code": "string",
      "address": {
        "street_line_one": "string",
        "street_line_two": "string",
        "district": "string",
        "postcode": 42,
        "city": "string"
      }
    }
  ],
  "mileage_levels": [
    {
      "id": 42,
      "mileage": 42.0,
      "is_default": true,
      "amount": 42.0,
      "unlimited": true,
      "included_in_booking": true
    }
  ],
  "metadata": {}
}