{"id":4969,"date":"2024-11-18T14:39:29","date_gmt":"2024-11-18T13:39:29","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=4969"},"modified":"2025-12-29T10:36:18","modified_gmt":"2025-12-29T09:36:18","slug":"get-announcement-by-id","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/dock-scheduler\/announcements\/get-announcement-by-id\/","title":{"rendered":"Get announcement by ID"},"content":{"rendered":"\n<p>This method allows you to down\u00adload details of announce\u00adment by ID<\/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\/announcement\/{announcementID}<\/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\">Json example request<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>curl --location 'https:\/\/api.platform.trans.eu\/ext\/dock-scheduler-api\/v1\/announcement\/197883' \\<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Json response example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n    \"arrival_delay\": 0,\n    \"attachments\": null,\n    \"cargo\": null,\n    \"carrier\": {\n        \"address\": {\n            \"country\": \"PL\",\n            \"locality\": \"Ole\u015bnica\",\n            \"postal_code\": \"53-604\",\n            \"street\": \"Kucyk\u00f3w 93\"\n        },\n        \"email\": \"bdemczyszak@trans.eu\",\n        \"id\": 1013865,\n        \"legal_name\": \"Firma Testowa Przewo\u017anik IIT 2\",\n        \"telephone\": \"(0048) 633833929\",\n        \"type\": \"REGISTERED\"\n    },\n    \"date_from\": \"2024-11-18T15:00:00\",\n    \"date_to\": \"2024-11-18T16:00:00\",\n    \"driver\": {\n        \"country\": null,\n        \"documents\": [\n            {\n                \"issuing_authority\": null,\n                \"number\": \"nrdowodu\",\n                \"type\": \"IDENTITY_CARD\"\n            }\n        ],\n        \"first_document\": {\n            \"issuing_authority\": null,\n            \"number\": \"nrdowodu\",\n            \"type\": \"IDENTITY_CARD\"\n        },\n        \"full_name\": \"Stasia Stanis\u0142awska\",\n        \"languages\": [],\n        \"phone_number\": \"45645151\",\n        \"second_document\": null\n    },\n    \"external_reference_number\": null,\n    \"forward\": null,\n    \"forward_permissions\": {\n        \"allow\": true,\n        \"disallow\": null,\n        \"require_carrier_data\": false\n    },\n    \"freight_order\": null,\n    \"id\": 81567,\n    \"notes\": [\n        {\n            \"id\": 26504,\n            \"note\": \"notatka zaladowcy\",\n            \"type\": \"SHIPPER\"\n        },\n        {\n            \"id\": 26505,\n            \"note\": \"wewnetrzna\",\n            \"type\": \"SHIPPER_INTERNAL\"\n        }\n    ],\n    \"operation_time\": \"PT1H\",\n    \"operation_type\": \"loading\",\n    \"ramp\": {\n        \"id\": 3222,\n        \"is_active\": true,\n        \"is_locked\": false,\n        \"name\": \"Rampa 2\",\n        \"operation_type\": \"any\",\n        \"ramp_type\": \"RAMP\",\n        \"warehouse\": {\n            \"address\": {\n                \"coordinates\": {\n                    \"latitude\": 90,\n                    \"longitude\": 999\n                },\n                \"country\": \"pl\",\n                \"id\": 29,\n                \"locality\": \"Warszawa\",\n                \"number\": \"12\",\n                \"postal_code\": \"00-950\",\n                \"remarks\": null,\n                \"street\": \"Nowa\"\n            },\n            \"configurations\": [\n                {\n                    \"id\": 274,\n                    \"quantity_of_slots\": 3,\n                    \"slot\": 15,\n                    \"valid_from\": \"2018-11-10\",\n                    \"valid_until\": null\n                }\n            ],\n            \"id\": 29,\n            \"is_active\": true,\n            \"is_locked\": false,\n            \"name\": \"Magazyn_jeden\",\n            \"operation_type\": \"any\",\n            \"quantity_of_slots\": 3,\n            \"rules_file_id\": null,\n            \"rules_file_name\": null,\n            \"rules_file_original_name\": null,\n            \"slot\": 15,\n            \"time_zone\": {\n                \"id\": \"Europe\/Warsaw\",\n                \"offset\": \"+01:00\",\n                \"offset_minutes\": 60\n            }\n        }\n    },\n    \"reason_for_refusing_to_load\": \"fffc\",\n    \"reference_number\": \"DS\/1759052\/1\",\n    \"route\": {\n        \"spots\": [\n            {\n                \"address\": {\n                    \"coordinates\": {\n                        \"latitude\": 90,\n                        \"longitude\": 999\n                    },\n                    \"country\": \"pl\",\n                    \"description\": null,\n                    \"locality\": \"Warszawa\",\n                    \"name\": \"Magazyn_jeden\",\n                    \"number\": \"12\",\n                    \"postal_code\": \"00-950\",\n                    \"street\": \"Nowa\"\n                },\n                \"operations\": [\n                    {\n                        \"operation_type\": \"loading\",\n                        \"order\": 1,\n                        \"time_window_id\": null\n                    }\n                ],\n                \"order\": 1\n            }\n        ]\n    },\n    \"second_driver\": {\n        \"country\": null,\n        \"documents\": [\n            {\n                \"issuing_authority\": null,\n                \"number\": \"ndjfnh45252\",\n                \"type\": \"DRIVING_LICENSE\"\n            }\n        ],\n        \"first_document\": {\n            \"issuing_authority\": null,\n            \"number\": \"ndjfnh45252\",\n            \"type\": \"DRIVING_LICENSE\"\n        },\n        \"full_name\": \"drugikiero\",\n        \"languages\": [],\n        \"phone_number\": \"789558\",\n        \"second_document\": null\n    },\n    \"shipper\": {\n        \"address\": {\n            \"country\": \"PL\",\n            \"locality\": \"Vhqwtwrqgi\",\n            \"postal_code\": \"74-507\",\n            \"street\": \"Orfaliko 03\"\n        },\n        \"email\": \"bdemczyszak@trans.eu\",\n        \"id\": 1007386,\n        \"legal_name\": \"Firma Testowa Za\u0142adowca IIT\",\n        \"telephone\": \"(0048) 660490583\"\n    },\n    \"stage\": \"REFUSED\",\n    \"status\": \"FINISHED\",\n    \"template_parameters\": [\n        {\n            \"default_value\": null,\n            \"group\": \"VEHICLE\",\n            \"is_mandatory\": true,\n            \"name\": \"TRUCK_PLATE_NUMBER\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"VEHICLE\",\n            \"is_mandatory\": false,\n            \"name\": \"TRAILER_PLATE_NUMBER\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"DRIVER\",\n            \"is_mandatory\": false,\n            \"name\": \"DRIVER_NAME\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"DRIVER\",\n            \"is_mandatory\": false,\n            \"name\": \"DRIVER_PHONE_NUMBER\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"DRIVER\",\n            \"is_mandatory\": false,\n            \"name\": \"DRIVER_DOCUMENT_TYPE_AND_NUMBER\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"OTHER\",\n            \"is_mandatory\": false,\n            \"name\": \"SHIPPER_NOTE\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"OTHER\",\n            \"is_mandatory\": false,\n            \"name\": \"CARRIER_NOTE\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"ATTACHMENT\",\n            \"is_mandatory\": false,\n            \"name\": \"SHIPPER_ATTACHMENT\"\n        },\n        {\n            \"default_value\": null,\n            \"group\": \"ATTACHMENT\",\n            \"is_mandatory\": false,\n            \"name\": \"CARRIER_ATTACHMENT\"\n        }\n    ],\n    \"time_window\": null,\n    \"trans_task\": null,\n    \"transport\": null,\n    \"vehicle\": {\n        \"combustion_norm\": null,\n        \"trailer_plate_number\": \"naczepa\",\n        \"truck_plate_number\": \"pojazd\",\n        \"vehicle_manufacturer\": null,\n        \"weight\": null\n    }\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">This method allows you to down\u00adload details of announce\u00adment by 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":[93],"tags":[],"class_list":["post-4969","post","type-post","status-publish","format-standard","hentry","category-announcements"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":4969},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/4969","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=4969"}],"version-history":[{"count":3,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/4969\/revisions"}],"predecessor-version":[{"id":5461,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/4969\/revisions\/5461"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=4969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=4969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=4969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}