{"id":5240,"date":"2025-09-11T14:17:09","date_gmt":"2025-09-11T12:17:09","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=5240"},"modified":"2025-12-29T10:02:05","modified_gmt":"2025-12-29T09:02:05","slug":"get-the-list-of-exchanges","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/freights\/get-the-list-of-exchanges\/","title":{"rendered":"Get the list of exchanges"},"content":{"rendered":"\n<p>This method allows you to down\u00adload a list of pri\u00advate exchanges and pri\u00advate exchange brand\u00aded. In response you will get a id which you will then use in&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/freights\/new-freight-to-multi-exchange\/\" title>pub\u00adli\u00adca\u00adtion method<\/a>.<\/p>\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:&nbsp;<\/strong>\/ex\u00adt\/ex\u00adchange-api\/v1\/ex\u00adchanges<\/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 response example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n    \"exchanges\": [\n        {\n            \"id\": \"1883060f-c4a3-4170-a854-ce8ecbXXXXXX\",\n            \"name\": \"prywatna\",\n            \"type\": \"1_private\",\n            \"created_at\": \"2025-01-09T11:09:18.091Z\"\n        },\n        {\n            \"id\": \"773603a3-2b2a-40f8-9424-0ed17eXXXXXX\",\n            \"name\": \"Biznes\",\n            \"type\": \"2_corporate\",\n            \"created_at\": \"2024-05-28T08:24:23.725Z\"\n        },\n        {\n            \"id\": \"dba2b0fe-5485-4bd7-8ab4-1f554eXXXXXX\",\n            \"name\": \"prywatna\",\n            \"type\": \"1_private\",\n            \"created_at\": \"2024-02-23T20:57:54.000Z\"\n        },\n        {\n            \"id\": \"e14d2b0c-799c-4b9e-8de5-b58d1fXXXXXX\",\n            \"name\": \"Exchange test\",\n            \"type\": \"2_corporate\",\n            \"created_at\": \"2024-09-18T12:02:45.833Z\"\n        }\n    ],\n    \"page\": 1,\n    \"page_size\": 4,\n    \"has_next_page\": false\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">This method allows you to down\u00adload a list of pri\u00advate exchanges and pri\u00advate exchange brand\u00aded. In response you will get \u2026<\/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":[83,42],"tags":[],"class_list":["post-5240","post","type-post","status-publish","format-standard","hentry","category-create-new-freight","category-freights"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":5240},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5240","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=5240"}],"version-history":[{"count":4,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5240\/revisions"}],"predecessor-version":[{"id":5445,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5240\/revisions\/5445"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=5240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=5240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=5240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}