{"id":1509,"date":"2020-04-01T12:31:28","date_gmt":"2020-04-01T10:31:28","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=1509"},"modified":"2025-12-29T11:13:07","modified_gmt":"2025-12-29T10:13:07","slug":"get-vehicle-offer-by-id","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/vehicles\/getting-lists-vehicles\/get-vehicle-offer-by-id\/","title":{"rendered":"Get vehicle offer by id"},"content":{"rendered":"\n<p>Allows to get details of sin\u00adgle vehi\u00adcle offer<\/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:<\/strong>&nbsp;https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint:<\/strong> \/ext\/vehicles-api\/v1\/vehicles\/{id}<\/li>\n\n\n\n<li><strong>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>Con\u00adtent-type: application\/json<\/li>\n\n\n\n<li>Accept: 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<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/general-information\/authorization-process\/\" target=\"_blank\" rel=\"noopener\" title>is described 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<p>Impor\u00adtant!<br>Weight is always rep\u00adre\u00adsent\u00aded in tonnes.<br>Height, length and width are always rep\u00adre\u00adsent\u00aded in meters.<br>Vol\u00adume is always rep\u00adre\u00adsent\u00aded in cubic meters.<\/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  \"created_at\": \"2021-03-05T09:05:35+00:00\",\n  \"expiration_date\": \"2021-03-08T23:59:59+02:00\",\n  \"id\": \"ABCBNBKA38TQ2HSTT5YNT123456\",\n  \"offer_id\": 202343637,\n  \"status\": \"active\",\n  \"vehicle\": {\n    \"adr_classes\": [],\n    \"available_on\": {\n      \"begin\": \"2021-03-05T11:10:36+02:00\",\n      \"end\": \"2021-03-08T23:59:59+02:00\"\n    },\n    \"available_ways_of_loading\": [],\n    \"cargo\": {\n      \"capacity\": 24\n    },\n    \"equipment\": [],\n    \"has_adr\": false,\n    \"has_hds\": false,\n    \"has_lift\": false,\n    \"loading_place\": {\n      \"address\": {\n        \"country\": \"pl\",\n        \"locality\": \"Wroclaw\",\n        \"postal_code\": \"00-000\"\n      },\n      \"coordinates\": {}\n    },\n    \"size\": \"solo\",\n    \"truck_body\": \"cooler\",\n    \"unloading_place\": {\n      \"address\": {\n        \"country\": \"de\",\n        \"locality\": \"Berlin\",\n        \"postal_code\": \"00-000\"\n      },\n      \"coordinates\": {}\n    },\n    \"unloading_places\": [\n      {\n        \"address\": {\n          \"country\": \"de\",\n          \"locality\": \"Berlin\",\n          \"postal_code\": \"00-000\"\n        },\n        \"coordinates\": {}\n      }\n    ]\n  }\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to get details of sin\u00adgle vehi\u00adcle offer<\/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":[112],"tags":[],"class_list":["post-1509","post","type-post","status-publish","format-standard","hentry","category-getting-lists-vehicles"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":1509},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1509","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=1509"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1509\/revisions"}],"predecessor-version":[{"id":5561,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1509\/revisions\/5561"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=1509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=1509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=1509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}