{"id":3962,"date":"2022-06-29T12:34:19","date_gmt":"2022-06-29T10:34:19","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=3962"},"modified":"2025-12-29T10:42:38","modified_gmt":"2025-12-29T09:42:38","slug":"get-contractor-fleet","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/partners\/getting-lists-partners\/get-contractor-fleet\/","title":{"rendered":"Get contractor fleet"},"content":{"rendered":"\n<p>This method allows you to down\u00adload part\u00adner fleet<\/p>\n\n\n\n<!--more-->\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:&nbsp;<\/strong>https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint:&nbsp;<\/strong>\/ext\/partners-api\/v1\/partners\/{partnerId}\/fleet<\/li>\n\n\n\n<li><strong>Http Method:<\/strong>&nbsp;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\">Authorization and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process is described&nbsp;<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\">Response example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"has_next_page\": true,\n  \"page\": 1,\n  \"page_size\": 10,\n  \"vehicles\": [\n    {\n      \"gps\": false,\n      \"kind\": \"bus\/van\",\n      \"manufacturer\": \"VOLKSWAGEN\",\n      \"registration_plate_number\": \"DWR9999999\",\n      \"specifications\": {\n        \"cargo_space_capacity\": {\n          \"unit_code\": \"t\",\n          \"value\": null\n        },\n        \"combustion_norm\": \"EURO 6\"\n      },\n      \"type\": \"cooler\"\n    },\n    {\n      \"gps\": false,\n      \"kind\": \"semi-trailer\",\n      \"manufacturer\": \"FIAT\",\n      \"registration_plate_number\": \"PL1211\",\n      \"specifications\": {\n        \"cargo_capacity\": {\n          \"unit_code\": \"t\",\n          \"value\": 24\n        },\n        \"combustion_norm\": null\n      },\n      \"type\": \"tent\"\n    }\n  ]\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Paging<\/h2>\n\n\n\n<p>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\/partners-api\/v1\/partners\/{partnerId}\/fleet?page=4<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">This method allows you to down\u00adload part\u00adner fleet<\/p>\n","protected":false},"author":12,"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":[97],"tags":[],"class_list":["post-3962","post","type-post","status-publish","format-standard","hentry","category-getting-lists-partners"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":3962},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3962","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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=3962"}],"version-history":[{"count":2,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3962\/revisions"}],"predecessor-version":[{"id":5482,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3962\/revisions\/5482"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=3962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=3962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=3962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}