{"id":4152,"date":"2022-12-27T11:22:29","date_gmt":"2022-12-27T10:22:29","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=4152"},"modified":"2025-12-29T10:40:59","modified_gmt":"2025-12-29T09:40:59","slug":"get-werehouse-by-id","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/dock-scheduler\/warehouses\/get-werehouse-by-id\/","title":{"rendered":"Get werehouse by ID"},"content":{"rendered":"\n<p>Get exist\u00ading ware\u00adhouse by Warehouse_ID.<span id=\"more-2261\"><\/span><\/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&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\">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:<\/strong> \/ext\/dock-scheduler-api\/v1\/warehouse\/{Warehouse_id}<\/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\">Example request<\/h2>\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\/dock-scheduler-api\/v1\/warehouse\/29<\/code><\/pre><\/div>\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  \"address\": {\n    \"coordinates\": {\n      \"latitude\": 90,\n      \"longitude\": 999\n    },\n    \"country\": \"pl\",\n    \"locality\": \"Warszawa\",\n    \"name\": \"Magazyn_jeden\",\n    \"number\": \"12\",\n    \"postal_code\": \"00-950\",\n    \"remarks\": null,\n    \"street\": \"Nowa\"\n  },\n  \"id\": 29,\n  \"is_active\": true,\n  \"is_locked\": false,\n  \"name\": \"Magazyn_jeden\",\n  \"operation_time\": 15,\n  \"ramps\": [\n    {\n      \"id\": 14532,\n      \"is_active\": true,\n      \"is_locked\": false,\n      \"name\": \"Rampa_11\",\n      \"operation_type\": \"any\",\n      \"ramp_type\": \"RAMP\"\n    },\n    {\n      \"id\": 14533,\n      \"is_active\": true,\n      \"is_locked\": false,\n      \"name\": \"Rampa_2B\",\n      \"operation_type\": \"any\",\n      \"ramp_type\": \"RAMP\"\n    }\n  ],\n  \"time_zone\": {\n    \"id\": \"Europe\/Warsaw\",\n    \"offset\": \"+01:00\"\n  }\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Get exist\u00ading ware\u00adhouse by Warehouse_ID.<\/p>\n","protected":false},"author":7,"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":[91],"tags":[],"class_list":["post-4152","post","type-post","status-publish","format-standard","hentry","category-warehouses"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":4152},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/4152","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=4152"}],"version-history":[{"count":4,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/4152\/revisions"}],"predecessor-version":[{"id":5472,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/4152\/revisions\/5472"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=4152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=4152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=4152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}