{"info":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","description":"<html><head></head><body><p>The Fleet API manages vehicle risk for your fleets corresponding with a master policy.</p>\n<p>The system is built to support in-fleeting and out-fleeting of mobility risk via an API. Once you have a <strong>master policy</strong> in place with us, you can use the API to in-fleet a vehicle/risk. We will then manage the green card and all needed local reporting.</p>\n<p>The solution also allows you to indicate if a risk is currently leased out to a client or just standing on the parking lot waiting for a client (using the <code>package</code>). This depends on the specific product options you subscribe to.</p>\n<p>Via a simple API call, you can also remove the vehicle/risk. We will then inform the local authorities that the risk is no longer insured.</p>\n<p>Invoicing will happen on a monthly or quarterly basis.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18910632","collectionId":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","publishedId":"UVsJw6w3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-20T10:56:35.000Z"},"item":[{"name":"Fleets","item":[{"name":"Get Fleets","id":"489ddce2-d31c-4fe2-a2ad-0276b3d90b52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"489ddce2-d31c-4fe2-a2ad-0276b3d90b52"}],"id":"a8ea749e-f196-4434-bf64-8908deb608b9","_postman_id":"a8ea749e-f196-4434-bf64-8908deb608b9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}}},{"name":"Fleet","item":[{"name":"Get Fleet","id":"f83d6d10-78a5-4e7a-a5f6-822ccb47eb6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f83d6d10-78a5-4e7a-a5f6-822ccb47eb6f"},{"name":"Get Effective Version","id":"f9b3cc50-bb11-4d81-8f31-eecb2af37b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/versions/effective","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","versions","effective"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9b3cc50-bb11-4d81-8f31-eecb2af37b3c"},{"name":"Get Subject Schema","id":"bc964ef1-93c7-4c72-9d5b-8cd10a3e95ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/subject-schema?country=BE&package=FULL&coverages=mtpl.default, mod.default,assistance.default","description":"<p>Adds a vehicle to the specified fleet, as part of the risk of the corresponding master policy.</p>\n<p>We will issue a green card and do the local mandatory reporting.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","subject-schema"],"host":["api","{{env}}","qover","io"],"query":[{"key":"country","value":"BE"},{"key":"package","value":"FULL"},{"key":"coverages","value":"mtpl.default, mod.default,assistance.default"}],"variable":[]}},"response":[],"_postman_id":"bc964ef1-93c7-4c72-9d5b-8cd10a3e95ca"},{"name":"Get Configuration","id":"ad09ac1b-c4a5-4384-8391-129008c6f9a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/product-configuration","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","product-configuration"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad09ac1b-c4a5-4384-8391-129008c6f9a5"},{"name":"Get Vehicles","event":[{"listen":"test","script":{"id":"23be3cae-2688-4cf1-a6fc-95aeb8d5218c","exec":["const jsonData = pm.response.json();","pm.collectionVariables.set(\"vehicleId\", jsonData.items[0].id);"],"type":"text/javascript"}}],"id":"65e3ce3f-b011-4a97-a88f-8867ecdd672c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles?pageIndex=0&pageSize=10","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","vehicles"],"host":["api","{{env}}","qover","io"],"query":[{"key":"pageIndex","value":"0"},{"key":"pageSize","value":"10"}],"variable":[]}},"response":[],"_postman_id":"65e3ce3f-b011-4a97-a88f-8867ecdd672c"}],"id":"6275b51f-d860-4a8e-88c6-07c178cbacc6","_postman_id":"6275b51f-d860-4a8e-88c6-07c178cbacc6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}}},{"name":"Vehicle","item":[{"name":"Add Vehicle","id":"fa795939-d16a-4515-86ea-af6397dd6cb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reference\": \"optional-customer-reference\",\n    \"contractPeriod\": {\n        \"startDate\" : \"2022-07-01\"\n    },\n    \"country\": \"BE\",\n    \"package\": { \"name\": \"FULL\"},\n    \"subject\":{\n        \"vin\": \"JD83J4MFF729DK38E\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"weightClass\":\"A\",\n        \"insuredValue\": 12000,\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles","description":"<p>Adds a vehicle to the specified fleet, as part of the risk of the corresponding master policy.</p>\n<p>We will issue a green card and do the local mandatory reporting.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","vehicles"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[{"id":"44d6b2b6-4279-43e1-aa7d-02b91a3dc072","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \n    \"contractPeriod\": {\n        \"startDate\" : \"2022-07-01\"\n    },\n    \"country\": \"BE\",\n    \"package\": { \"name\": \"FULL\"},\n    \"subject\":{\n        \"vin\": \"JD83J4MFF729DK38E\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"weightClass\":\"A\",\n        \"insuredValue\": 12000,\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"624f3edb73de08a846ae24c5\",\n    \"version\": 1,\n    \"_stamps\": {\n        \"createdAt\": \"2022-03-23T18:26:33.234Z\",\n        \"createdBy\": \"...\"   \n    },\n    \"_effectivePeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-04-01\",\n        \"startsAt\": \"2022-03-31T23:00:00.000Z\"\n    },\n    \"fleet\": { \"id\": \"624f3edb73de08a846dd14f3\", \"version\": 1 },\n    \"reference\": \"optional-customer-reference\",\n    \"metadata\": {},\n    \"contractPeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\" : \"2022-04-01\",\n        \"startsAt\": \"2022-03-31T23:00:00.000Z\"\n    },\n    \"country\": \"BE\",\n    \"packageName\": \"FULL\",\n    \"subject\":{\n        \"vin\": \"JD83J4MFF729DK38\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"isLeased\": true,\n        \"power\": \"200\",\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}"}],"_postman_id":"fa795939-d16a-4515-86ea-af6397dd6cb1"},{"name":"Get Vehicle","id":"aa43b1c7-0696-49ed-a0c3-8321c9267e6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","vehicles","{{vehicleId}}"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[{"id":"edd0dbb2-faea-458e-97a2-09a4a7a30663","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"624f3edb73de08a846ae24c5\",\n    \"version\": 3,\n    \"_stamps\": {\n        \"createdAt\": \"2022-03-23T18:26:33.234Z\",\n        \"createdBy\": \"...\",\n        \"updatedAt\": \"2022-05-15T18:15:35.584Z\",\n        \"updatedBy\": \"...\"\n    },\n    \"_effectivePeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-05-15\",\n        \"startsAt\": \"2022-05-14T23:00:00.000Z\"\n    },\n    \"fleet\": {\n        \"id\": \"624f3edb73de08a846dd14f3\",\n        \"version\": 1\n    },\n    \"reference\": \"optional-customer-reference\",\n    \"metadata\": {},\n    \"contractPeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-04-01\",\n        \"startsAt\": \"2022-03-31T23:00:00.000Z\",\n        \"endDate\": \"2022-06-25\",\n        \"endsAt\": \"2022-06-25T23:00:00.000Z\"\n    },\n    \"country\": \"BE\",\n    \"packageName\": \"PARKING\",\n    \"subject\": {\n        \"vin\": \"JD83J4MFF729DK38\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"isLeased\": true,\n        \"power\": \"200\",\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}"}],"_postman_id":"aa43b1c7-0696-49ed-a0c3-8321c9267e6b"},{"name":"Get Vehicle Versions","id":"05d98538-ca40-4450-84c4-efa868f74442","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}/versions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","vehicles","{{vehicleId}}","versions"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[{"id":"08070341-754e-4966-8b7d-bc31507b711e","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"624f3edb73de08a846ae24c5\",\n    \"version\": 3,\n    \"_stamps\": {\n        \"createdAt\": \"2022-03-23T18:26:33.234Z\",\n        \"createdBy\": \"...\",\n        \"updatedAt\": \"2022-05-15T18:15:35.584Z\",\n        \"updatedBy\": \"...\"\n    },\n    \"_effectivePeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-05-15\",\n        \"startsAt\": \"2022-05-14T23:00:00.000Z\"\n    },\n    \"fleet\": {\n        \"id\": \"624f3edb73de08a846dd14f3\",\n        \"version\": 1\n    },\n    \"reference\": \"optional-customer-reference\",\n    \"metadata\": {},\n    \"contractPeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-04-01\",\n        \"startsAt\": \"2022-03-31T23:00:00.000Z\",\n        \"endDate\": \"2022-06-25\",\n        \"endsAt\": \"2022-06-25T23:00:00.000Z\"\n    },\n    \"country\": \"BE\",\n    \"packageName\": \"PARKING\",\n    \"subject\": {\n        \"vin\": \"JD83J4MFF729DK38\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"isLeased\": true,\n        \"power\": \"200\",\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}"}],"_postman_id":"05d98538-ca40-4450-84c4-efa868f74442"},{"name":"Get Vehicle Green Card","id":"744f50e0-40fb-447f-b8da-f7f71da447f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}/green-card","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","vehicles","{{vehicleId}}","green-card"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[{"id":"14e48fb2-f9ee-4abd-974f-572260096a81","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"624f3edb73de08a846ae24c5\",\n    \"version\": 3,\n    \"_stamps\": {\n        \"createdAt\": \"2022-03-23T18:26:33.234Z\",\n        \"createdBy\": \"...\",\n        \"updatedAt\": \"2022-05-15T18:15:35.584Z\",\n        \"updatedBy\": \"...\"\n    },\n    \"_effectivePeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-05-15\",\n        \"startsAt\": \"2022-05-14T23:00:00.000Z\"\n    },\n    \"fleet\": {\n        \"id\": \"624f3edb73de08a846dd14f3\",\n        \"version\": 1\n    },\n    \"reference\": \"optional-customer-reference\",\n    \"metadata\": {},\n    \"contractPeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-04-01\",\n        \"startsAt\": \"2022-03-31T23:00:00.000Z\",\n        \"endDate\": \"2022-06-25\",\n        \"endsAt\": \"2022-06-25T23:00:00.000Z\"\n    },\n    \"country\": \"BE\",\n    \"packageName\": \"PARKING\",\n    \"subject\": {\n        \"vin\": \"JD83J4MFF729DK38\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"isLeased\": true,\n        \"power\": \"200\",\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}"}],"_postman_id":"744f50e0-40fb-447f-b8da-f7f71da447f9"},{"name":"Update Vehicle","event":[{"listen":"test","script":{"id":"7c798a60-779f-45e5-b33e-c6107299141d","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"2ac6c79d-0bf1-4e10-9c16-510cc66402f1","exec":[""],"type":"text/javascript"}}],"id":"38df17a1-ee87-4acf-9802-6d15ae74d3ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"subject\": {\n        \"weightClass\": \"B\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}","description":"<p>The following information of an existing vehicle can be updated:</p>\n<ul>\n<li>packageName: defines the coverage of the vehicle</li>\n<li>subject: details about the vehicle like vrn, driver, ...</li>\n<li>metadata: general-purpose metadata</li>\n<li>reference: the customer reference</li>\n</ul>\n<p>All these fields are optional, only the specified information will be updated using a JSON merge patch.</p>\n<p>Optionally an <code>_effectiveDate</code> can be specified, This allows to specify when this new information is to be applied.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","vehicles","{{vehicleId}}"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[{"id":"2cf04406-1312-41ad-b0ab-f03783253ff2","name":"200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"_effectiveDate\": \"2022-05-01\",\n    \"packageName\": \"PARKING\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"624f3edb73de08a846ae24c5\",\n    \"version\": 2,\n    \"_stamps\": {\n        \"createdAt\": \"2022-03-23T18:26:33.234Z\",\n        \"createdBy\": \"...\",\n        \"updatedAt\": \"2022-04-25T18:15:35.584Z\",\n        \"updatedBy\": \"...\"\n    },\n    \"_effectivePeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-05-01\",\n        \"startsAt\": \"2022-04-30T23:00:00.000Z\"\n    },\n    \"fleet\": {\n        \"id\": \"624f3edb73de08a846dd14f3\",\n        \"version\": 1\n    },\n    \"reference\": \"optional-customer-reference\",\n    \"metadata\": {},\n    \"contractPeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-04-01\",\n        \"startsAt\": \"2022-03-31T23:00:00.000Z\"\n    },\n    \"country\": \"BE\",\n    \"packageName\": \"PARKING\",\n    \"subject\": {\n        \"vin\": \"JD83J4MFF729DK38\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"isLeased\": true,\n        \"power\": \"200\",\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}"}],"_postman_id":"38df17a1-ee87-4acf-9802-6d15ae74d3ad"},{"name":"Remove Vehicle (end contract)","event":[{"listen":"test","script":{"id":"c4ed617c-0910-4834-a9ee-81bfd9ed3c00","exec":["","if (responseCode.code < 400) {","    pm.environment.set('vehicleId', pm.response.json().id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"e5f0a5bc-9d15-4558-9dbd-eaa4839f104a","exec":[""],"type":"text/javascript"}}],"id":"959c641b-2a60-4432-8c56-4b25f3f1c38f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"endDate\": \"2022-08-31\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}/contract-period","description":"<p>Removing a vehicle from the fleet consist of setting its contractual endDate.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}},"urlObject":{"protocol":"https","path":["automotive","v1","fleets","{{fleetId}}","vehicles","{{vehicleId}}","contract-period"],"host":["api","{{env}}","qover","io"],"query":[],"variable":[]}},"response":[{"id":"841405b4-6d19-4db6-a85c-a9ed555807fa","name":"200 OK","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"endDate\": \"2022-08-31\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.{{env}}.qover.io/automotive/v1/fleets/{{fleetId}}/vehicles/{{vehicleId}}/contract-period"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"624f3edb73de08a846ae24c5\",\n    \"version\": 3,\n    \"_stamps\": {\n        \"createdAt\": \"2022-03-23T18:26:33.234Z\",\n        \"createdBy\": \"...\",\n        \"updatedAt\": \"2022-05-15T18:15:35.584Z\",\n        \"updatedBy\": \"...\"\n    },\n    \"_effectivePeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-05-15\",\n        \"startsAt\": \"2022-05-14T23:00:00.000Z\"\n    },\n    \"fleet\": {\n        \"id\": \"624f3edb73de08a846dd14f3\",\n        \"version\": 1\n    },\n    \"reference\": \"optional-customer-reference\",\n    \"metadata\": {},\n    \"contractPeriod\": {\n        \"timeZone\": \"Europe/Brussels\",\n        \"startDate\": \"2022-04-01\",\n        \"startsAt\": \"2022-03-31T23:00:00.000Z\",\n        \"endDate\": \"2022-06-25\",\n        \"endsAt\": \"2022-06-25T23:00:00.000Z\"\n    },\n    \"country\": \"BE\",\n    \"packageName\": \"PARKING\",\n    \"subject\": {\n        \"vin\": \"JD83J4MFF729DK38\",\n        \"vrn\": \"ABC123\",\n        \"make\": \"make\",\n        \"model\": \"model\",\n        \"isLeased\": true,\n        \"power\": \"200\",\n        \"driver\": {\n            \"firstName\": \"firstName\",\n            \"lastName\": \"lastName\",\n            \"email\": \"company@qover.com\",\n            \"birthDate\": \"1980-01-01\",\n            \"location\": {\n                \"country\": \"BE\",\n                \"zip\": \"1000\"\n            }\n        }\n    }\n}"}],"_postman_id":"959c641b-2a60-4432-8c56-4b25f3f1c38f"}],"id":"11345d39-eaa1-41c6-ac8c-cb08ffe251ff","_postman_id":"11345d39-eaa1-41c6-ac8c-cb08ffe251ff","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","id":"d7be3487-67ca-4af4-98d4-322e3f12e6fe","name":"Fleet Partner API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"e4613d95-743c-46f1-b5a6-ad24a727c94c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"73d11e9b-9b9f-4786-aa25-6906da99e797","type":"text/javascript","exec":[""]}}],"variable":[{"key":"env","value":"{{env}}"},{"key":"fleetId","value":"{{fleetId}}","type":"string"},{"key":"vehicleId","value":"{{vehicleId}}","type":"string"},{"key":"fleetVersion","value":"{{fleetVersion}}"}]}