{"id":2393,"date":"2020-10-23T12:42:48","date_gmt":"2020-10-23T10:42:48","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=2393"},"modified":"2026-03-19T07:49:30","modified_gmt":"2026-03-19T06:49:30","slug":"find-transport-order-using-freight-no","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/orders\/order-handling\/find-transport-order-using-freight-no\/","title":{"rendered":"Find transport order using freight number"},"content":{"rendered":"\n<p>Allows to access details cre\u00adat\u00aded trans\u00adport order using ref\u00ader\u00adence num\u00adber of freight, on the basis of which it was cre\u00adat\u00aded.<\/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<p>Method is avail\u00adable for orders cre\u00adat\u00aded and received, please make sure of using the cor\u00adrect address<\/p>\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> <code>\/ext\/orders-api\/v1\/orders-created?search={\"reference_number\":\"number\"}<\/code><\/li>\n\n\n\n<li><strong>End\u00adpoint:<\/strong> <code>\/ext\/orders-api\/v1\/orders-received?search={\"reference_number\":\"number\"}<\/code><\/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 <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>Full descrip\u00adtion of order details and para\u00adme\u00adters 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\">Json example:<\/h2>\n\n\n\n<p>Exam\u00adple of details of received order<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>[\n  {\n    \"attachments\": [],\n    \"created_at\": \"2021-05-24T12:29:02.232Z\",\n    \"driver\": {\n      \"account_id\": 771476,\n      \"family_name\": \"Kierowca\",\n      \"full_name\": \"Jan Kierowca\",\n      \"given_name\": \"Jan\",\n      \"phone\": null\n    },\n    \"freight\": {\n      \"carrier\": {\n        \"assignee\": {\n          \"account_id\": 759284,\n          \"family_name\": \"Demczyszak\",\n          \"given_name\": \"Barbara\",\n          \"trans_id\": \"1013865-1\"\n        },\n        \"legal_name\": \"Firma Testowa Przewo\u017anik IIT 2\",\n        \"vat_id\": \"4574663803\"\n      },\n      \"id\": \"ef7bead6-67a5-4ad3-8e00-49d6971cae90\",\n      \"reference_number\": \"FR\/2021\/05\/24\/BW62\",\n      \"shipper\": {\n        \"assignee\": {\n          \"account_id\": 749989,\n          \"family_name\": \"Demczyszak\",\n          \"given_name\": \"Barbara\",\n          \"trans_id\": \"1007374-1\"\n        },\n        \"legal_name\": \"Firma Testowa Spedycja IIT\",\n        \"vat_id\": \"PL8370257415\"\n      },\n      \"spots\": [\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-05-27T12:26:27.000Z\",\n                \"end\": \"2021-05-27T14:26:27.000Z\"\n              },\n              \"type\": \"loading\"\n            }\n          ],\n          \"place\": {\n            \"address\": {\n              \"country\": \"pl\",\n              \"description\": null,\n              \"locality\": \"MORDOR\",\n              \"number\": null,\n              \"postal_code\": \"12345\",\n              \"street\": null\n            },\n            \"coordinates\": null\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-05-30T12:26:27.000Z\",\n                \"end\": \"2021-05-30T14:26:27.000Z\"\n              },\n              \"type\": \"unloading\"\n            }\n          ],\n          \"place\": {\n            \"address\": {\n              \"country\": \"de\",\n              \"description\": null,\n              \"locality\": \"NARNIA\",\n              \"number\": null,\n              \"postal_code\": \"09876\",\n              \"street\": null\n            },\n            \"coordinates\": null\n          },\n          \"spot_order\": 2\n        }\n      ]\n    },\n    \"id\": \"ef7bead6-67a5-4ad3-8e00-49d6971cae90\",\n    \"invoice\": {\n      \"invoice_id\": \"SI:f6ddf941-7756-4734-ab14-0207cb40ec78\",\n      \"invoice_issuance_date\": \"2021-06-01T00:00:00.000Z\",\n      \"invoice_number\": \"FV0001\/06\/2021\"\n    },\n    \"legacy_freight_id\": 708481,\n    \"monitoring\": {\n      \"providers\": [\n        \"trans_task\"\n      ],\n      \"required\": false\n    },\n    \"number\": \"2021\/05\/24\/5\",\n    \"payment\": {\n      \"days\": 5,\n      \"period\": \"deferred\",\n      \"price\": {\n        \"currency\": \"eur\",\n        \"protected\": true,\n        \"type\": \"route\",\n        \"value\": 115\n      }\n    },\n    \"source\": null,\n    \"status\": {\n      \"comment\": null,\n      \"value\": \"waiting-for-confirmation\"\n    },\n    \"vehicle\": {\n      \"semi_trailer\": null,\n      \"truck\": {\n        \"dispatcher_id\": 42026,\n        \"id\": 236987,\n        \"registration_plate_number\": \"DWR9999999\",\n        \"revision\": 2\n      }\n    }\n  }\n]<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to access details cre\u00adat\u00aded trans\u00adport order using ref\u00ader\u00adence num\u00adber of freight, on the basis of which it was cre\u00adat\u00aded.<\/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":[110],"tags":[],"class_list":["post-2393","post","type-post","status-publish","format-standard","hentry","category-order-handling"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":2393},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2393","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=2393"}],"version-history":[{"count":3,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2393\/revisions"}],"predecessor-version":[{"id":6407,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2393\/revisions\/6407"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=2393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=2393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=2393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}