{"id":2261,"date":"2020-10-07T13:56:04","date_gmt":"2020-10-07T11:56:04","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=2261"},"modified":"2025-12-29T11:02:58","modified_gmt":"2025-12-29T10:02:58","slug":"get-list-of-existing-vehicles","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/fleet\/getting-lists-fleet\/get-list-of-existing-vehicles\/","title":{"rendered":"Get list of existing vehicles"},"content":{"rendered":"\n<p>Get list of exist\u00ading vehi\u00adcles.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Authorization and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process is described <a href=\"https:\/\/www.trans.eu\/api\/general-information\/authorization-process\/\" target=\"_blank\" rel=\"noopener\" title>here<\/a>. Each API request must also con\u00adsist of unique Api-key obtained dur\u00ading appli\u00adca\u00adtion reg\u00adis\u00adtra\u00adtion togeth\u00ader with client_id and client_secret.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Url parameters and connection settings<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL: <\/strong>https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint: <\/strong>\/ex\u00adt\/fleet-api\/v1\/ve\u00adhi\u00adcles<\/li>\n\n\n\n<li><strong>Http Method:<\/strong> GET<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Headers<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Accept: application\/json<\/li>\n\n\n\n<li>Con\u00adtent-type: application\/json<\/li>\n\n\n\n<li>Autho\u00adriza\u00adtion: Bear\u00ader {access_token}<\/li>\n\n\n\n<li>Api-key: {unique_ap\u00adp_api-key}<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Example response<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"page\": 1,\n  \"page_count\": 5,\n  \"page_size\": 10,\n  \"total_items\": 45,\n  \"vehicles\": [\n    {\n      \"id\": 45101,\n      \"kind\": \"lorry\",\n      \"manufacturer\": \"VOLVO\",\n      \"model\": \"F10\",\n      \"name\": null,\n      \"registration_plate_number\": \"D000000\",\n      \"specifications\": {\n        \"cargo_space_capacity\": 24,\n        \"combustion_norm\": \"EURO 6\",\n        \"pallets\": {\n          \"amount\": 5,\n          \"type\": \"europalette\"\n        }\n      },\n      \"type\": \"food-tanker\",\n      \"vehicle_id\": \"207fcf0e-3afc-4d6f-b4d2-bbe772e82199\",\n      \"vin\": \"123456789101112\"\n    },\n    {\n      \"next_vehicle_example\": \"next_vehicle_example\"\n    }\n  ]\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Paging<\/h2>\n\n\n\n<p>The returned results are pag\u00adi\u00adnat\u00aded, with a max\u00adi\u00admum of 30 per page.<br>When call\u00ading GET method, page should be added as para\u00adme\u00adter in the URL, for exam\u00adple:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>GET https:\/\/api.platform.trans.eu\/ext\/fleet-api\/v1\/vehicles?page=4<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Get list of exist\u00ading vehi\u00adcles.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[118],"tags":[],"class_list":["post-2261","post","type-post","status-publish","format-standard","hentry","category-getting-lists-fleet"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":2261},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=2261"}],"version-history":[{"count":5,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2261\/revisions"}],"predecessor-version":[{"id":5533,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2261\/revisions\/5533"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=2261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=2261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=2261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}