{
  "info": {
    "name": "Catalogue — Fleet",
    "description": "JATO France backed vehicle catalogue. Base URL points to dev2.dadycar.fr. Set {{token}} to a valid auth.service bearer token (a company user with view_vehicles; edit_vehicles for 'Request vehicle'). {{instance_id}} is a JATO instanceId from the list response.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{token}}", "type": "string" }]
  },
  "variable": [
    { "key": "base_url", "value": "https://dev2.dadycar.fr" },
    { "key": "token", "value": "" },
    { "key": "instance_id", "value": "012ae3b3-0000-0000-ffff-ffffffffffff" },
    { "key": "car_policy_id", "value": "1" }
  ],
  "item": [
    {
      "name": "Listing & Detail",
      "item": [
        {
          "name": "Catalogue — List",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/list?per_page=24&page=1&sort=relevance",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "list"],
              "query": [
                { "key": "per_page", "value": "24" },
                { "key": "page", "value": "1" },
                { "key": "sort", "value": "relevance" },
                { "key": "sample", "value": "true", "disabled": true },
                { "key": "search", "value": "", "disabled": true },
                { "key": "make", "value": "", "disabled": true },
                { "key": "motorisation", "value": "electric", "disabled": true },
                { "key": "segment", "value": "", "disabled": true },
                { "key": "tco_min", "value": "", "disabled": true },
                { "key": "tco_max", "value": "", "disabled": true },
                { "key": "co2_min", "value": "", "disabled": true },
                { "key": "co2_max", "value": "", "disabled": true },
                { "key": "compliant_only", "value": "true", "disabled": true }
              ]
            }
          }
        },
        {
          "name": "Catalogue — Filters (facets + counts)",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/filters",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "filters"]
            }
          }
        },
        {
          "name": "Vehicle — Detail",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/show/{{instance_id}}",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "show", "{{instance_id}}"]
            }
          }
        },
        {
          "name": "Vehicle — Sample Detail (FE design fixture, every field populated)",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "description": "Reserved instance_id `sample` returns a fully populated Tesla Model 3 Long Range fixture — same response shape as the live detail endpoint but with every field filled in. Use this to design against the full schema regardless of how sparse JATO data is for a given real vehicle.",
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/show/sample",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "show", "sample"]
            }
          }
        },
        {
          "name": "Vehicle — Compatible Policies",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/{{instance_id}}/compatible-policies",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "{{instance_id}}", "compatible-policies"]
            }
          }
        },
        {
          "name": "Sync Status",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/sync-status",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "sync-status"]
            }
          }
        }
      ]
    },
    {
      "name": "Filter Options",
      "item": [
        {
          "name": "Options — Motorisations",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/motorisations",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "motorisations"]
            }
          }
        },
        {
          "name": "Options — Brands",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/brands",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "brands"]
            }
          }
        },
        {
          "name": "Options — Segments",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/segments",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "segments"]
            }
          }
        },
        {
          "name": "Options — Badges",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/badges",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "badges"]
            }
          }
        },
        {
          "name": "Options — Availability",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/availability",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "availability"]
            }
          }
        },
        {
          "name": "Options — LOM Tiers",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/lom-tiers",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "lom-tiers"]
            }
          }
        },
        {
          "name": "Options — Sorts",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/sorts",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "sorts"]
            }
          }
        },
        {
          "name": "Options — Ranges (TCO / CO2 slider bounds)",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/options/ranges",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "options", "ranges"]
            }
          }
        }
      ]
    },
    {
      "name": "Actions",
      "item": [
        {
          "name": "Compare Vehicles",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Accept", "value": "application/json" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"benchmark_instance_id\": \"{{instance_id}}\",\n  \"comparison_instance_ids\": [\n    \"012ae3b3-0000-0000-ffff-fffffffffffe\"\n  ]\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/compare",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "compare"]
            }
          }
        },
        {
          "name": "Compare Vehicles — Sample (FE design fixture)",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Accept", "value": "application/json" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "description": "Any `sample` / `sample-*` ID short-circuits to the normalized comparator fixture: `{vehicles, sections, footer_note}`. Sections: IDENTITÉ / MOTEUR / PERFORMANCES / CO2 & ÉNERGIE / TCO ESTIMÉ / ÉQUIPEMENTS CLÉS / OPTIONS DISPONIBLES / DISPONIBILITÉ. FE renders each section's rows as comparison columns.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"benchmark_instance_id\": \"sample-tesla-m3\",\n  \"comparison_instance_ids\": [\n    \"sample-peugeot-e208\",\n    \"sample-renault-me\"\n  ]\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/compare",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "compare"]
            }
          }
        },
        {
          "name": "Request Vehicle (\"Demander ce véhicule\")",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Accept", "value": "application/json" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"options\": [\"Toit panoramique\", \"Peinture métallisée\"],\n  \"car_policy_id\": {{car_policy_id}},\n  \"comment\": \"Demande pour Thomas Bernard\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/fleet/catalogue/{{instance_id}}/request",
              "host": ["{{base_url}}"],
              "path": ["api", "v1", "fleet", "catalogue", "{{instance_id}}", "request"]
            }
          }
        }
      ]
    }
  ]
}
