{"id":1636,"date":"2020-04-29T13:16:35","date_gmt":"2020-04-29T11:16:35","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=1636"},"modified":"2025-12-29T11:08:01","modified_gmt":"2025-12-29T10:08:01","slug":"list-of-created-orders","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/orders\/getting-lists-orders\/list-of-created-orders\/","title":{"rendered":"List of created orders"},"content":{"rendered":"\n<p>Allows to access list of cre\u00adat\u00aded trans\u00adport orders.<\/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> https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint:<\/strong> \/ex\u00adt\/orders-api\/v1\/orders-cre\u00adat\u00aded<\/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 and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process <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<h2 class=\"wp-block-heading\">Order<\/h2>\n\n\n\n<p>Details of order para\u00adme\u00adters, data range and descrip\u00adtion can be found <a href=\"https:\/\/www.trans.eu\/api\/orders\/orders-description\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Available filters<\/h2>\n\n\n\n<p>List of avail\u00adable fil\u00adters<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sta\u00adtus (<span data-offset-key=\"acp32-1-0\">?fil\u00adter=<\/span><span data-offset-key=\"acp32-2-0\">{\u201cstatus\u201d:\u201cproposal-rejected\u201d})<\/span><\/li>\n\n\n\n<li>has_attachments (?fil\u00adter<span data-offset-key=\"acp32-1-0\">=<\/span><span data-offset-key=\"acp32-2-0\">{\u201chas_attachments\u201d: true})<\/span><\/li>\n\n\n\n<li>has_invoice (?filter={\u201chas_invoice\u201d:true})<\/li>\n\n\n\n<li>vat_id (?filter={\u201cvat_id\u201d:\u201c1111111111\u201d})<\/li>\n\n\n\n<li>cre\u00adat\u00aded at: ?filter={\u201ccreated_at\u201d:{\u201c$gt\u201d: \u201c2023\u201309-04T13:24:00.000Z\u201d, \u201c$lt\u201d: \u201c2023\u201311-03T13:24:00.000Z\u201d}}<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Filter example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>https:\/\/api.platform.trans.eu\/ext\/orders-api\/v1\/orders-created?filter={\"created_at\":{\"$gt\": \"2023-09-04T13:24:00.000Z\", \"$lt\": \"2023-11-03T13:24:00.000Z\"}}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Sort by<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>num\u00adber (?sortBy=number&amp;order=asc)<\/li>\n\n\n\n<li>load\u00ading date (?sortBy=freight.first_loading_place.date&amp;order=desc)<\/li>\n\n\n\n<li>unload\u00ading date (?sortBy=freight.last_unloading_place.date&amp;order=asc)<\/li>\n\n\n\n<li>cre\u00adation date (?sortBy=created_at&amp;order=asc)<\/li>\n\n\n\n<li>sta\u00adtus (?sortBy=status.value&amp;order=desc)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Paging<\/h2>\n\n\n\n<p>The returned results are pag\u00adi\u00adnat\u00aded, with a max\u00adi\u00admum of 30 per page.<br>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-html\" data-lang=\"HTML\"><code>https:\/\/api.platform.trans.eu\/ext\/orders-api\/v1\/orders-created?page=4<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Search<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span data-offset-key=\"csmbi-1-0\">ship\u00adment exter\u00adnal id (?search={\u201cshipment_external_id\u201d: \u201c1\/1\/1235\u201d})<\/span><\/li>\n\n\n\n<li>reference_number (?search={\u201creference_number\u201d:\u201cFR\/2024\/06\/12\/2HSBC\u201d})<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Json example<\/h2>\n\n\n\n<p>List of orders con\u00adtain\u00ading one enti\u00adty, each addi\u00adtion\u00adal enti\u00adty will repeat sim\u00adi\u00adlar pay\u00adload struc\u00adture<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>[\n  {\n    \"attachments\": [\n      {\n        \"description\": \"description\",\n        \"media_id\": \"5425ef8b-6bd6-47e5-bd8a-f452f5af6fa7\",\n        \"media_name\": \"9c2f2f2fac7ddef2c23be429e8f8862a.png\",\n        \"type_id\": \"2_transport_order\"\n      }\n    ],\n    \"created_at\": \"2021-07-01T08:54:07.008Z\",\n    \"driver\": {\n      \"account_id\": 771476,\n      \"contact_phone\": {\n        \"number\": \"11111111111\",\n        \"prefix\": \"0048\"\n      },\n      \"family_name\": \"Driver\",\n      \"full_name\": \"Jan Driver\",\n      \"given_name\": \"Jan\"\n    },\n    \"freight\": {\n      \"carrier\": {\n        \"assignee\": null,\n        \"legal_name\": \"Test company\",\n        \"vat_id\": \"11111111111\"\n      },\n      \"reference_number\": null,\n      \"shipper\": {\n        \"assignee\": {\n          \"account_id\": 749989,\n          \"family_name\": \"Kowalski\",\n          \"given_name\": \"Krzysztof\",\n          \"trans_id\": \"1007374-1\"\n        },\n        \"legal_name\": \"Test spedition company\",\n        \"vat_id\": \"22222222222\"\n      },\n      \"spots\": [\n        {\n          \"description\": \"Example description\",\n          \"name\": \"Magazine 1\",\n          \"operations\": [\n            {\n              \"loads\": [],\n              \"operation_order\": 1,\n              \"time_window\": null,\n              \"time_window_reason\": null,\n              \"timespans\": {\n                \"begin\": \"2021-06-22T09:00:00.000Z\",\n                \"end\": \"2021-06-22T10:00:00.000Z\"\n              },\n              \"type\": \"loading\"\n            }\n          ],\n          \"place\": {\n            \"address\": {\n              \"country\": \"pl\",\n              \"description\": null,\n              \"locality\": \"Krak\u00f3w\",\n              \"number\": \"5\",\n              \"postal_code\": \"31-001\",\n              \"street\": \"Wawel\"\n            },\n            \"coordinates\": {\n              \"latitude\": 50.06143,\n              \"longitude\": 19.93658\n            }\n          },\n          \"spot_order\": 1\n        },\n        {\n          \"description\": null,\n          \"name\": null,\n          \"operations\": [\n            {\n              \"loads\": [],\n              \"operation_order\": 1,\n              \"time_window\": null,\n              \"time_window_reason\": null,\n              \"timespans\": {\n                \"begin\": \"2021-06-23T09:00:00.000Z\",\n                \"end\": \"2021-06-23T09:00:00.000Z\"\n              },\n              \"type\": \"unloading\"\n            }\n          ],\n          \"place\": {\n            \"address\": {\n              \"country\": \"pl\",\n              \"description\": null,\n              \"locality\": \"D\u0105browa \u015arodkowa\",\n              \"number\": \"34\",\n              \"postal_code\": \"59-330\",\n              \"street\": \"\u015arednia\"\n            },\n            \"coordinates\": {\n              \"latitude\": 51.41828,\n              \"longitude\": 16.33485\n            }\n          },\n          \"spot_order\": 2\n        }\n      ]\n    },\n    \"id\": \"da012de9-faca-4b14-b380-9b94aadff6fa\",\n    \"invoice\": null,\n    \"legacy_freight_id\": null,\n    \"monitoring\": {\n      \"providers\": [\n        \"trans_task\",\n        \"external_telematics\"\n      ],\n      \"required\": true\n    },\n    \"number\": \"2021\/07\/01\/1\",\n    \"payment\": {\n      \"days\": 30,\n      \"price\": {\n        \"currency\": \"pln\",\n        \"protected\": false,\n        \"type\": \"km\",\n        \"value\": 1500\n      }\n    },\n    \"source\": null,\n    \"status\": {\n      \"comment\": null,\n      \"value\": \"waiting-for-confirmation\"\n    },\n    \"vehicle\": {\n      \"semi_trailer\": {\n        \"dispatcher_id\": 54083,\n        \"id\": 501737,\n        \"kind\": \"4_semi_trailer\",\n        \"registration_plate_number\": \"PL11111111\",\n        \"type\": \"5_tent\"\n      },\n      \"truck\": {\n        \"dispatcher_id\": 41483,\n        \"id\": 236503,\n        \"kind\": \"5_truck\",\n        \"registration_plate_number\": \"DW1111111\",\n        \"revision\": 1,\n        \"type\": null\n      }\n    }\n  },\n  {\n    \"next_order\": \"next_order\"\n  }\n]<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to access list of cre\u00adat\u00aded trans\u00adport orders.<\/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":[85],"tags":[],"class_list":["post-1636","post","type-post","status-publish","format-standard","hentry","category-getting-lists-orders"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":1636},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1636","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=1636"}],"version-history":[{"count":4,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1636\/revisions"}],"predecessor-version":[{"id":5549,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1636\/revisions\/5549"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}