{"id":1968,"date":"2020-06-16T12:21:51","date_gmt":"2020-06-16T10:21:51","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=1968"},"modified":"2025-12-29T11:04:17","modified_gmt":"2025-12-29T10:04:17","slug":"details-of-created-order","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/orders\/create-new-order\/details-of-created-order\/","title":{"rendered":"Details of created order"},"content":{"rendered":"\n<p>Allows to access details of cre\u00adat\u00aded trans\u00adport order.<\/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> \/ext\/orders-api\/v1\/orders-created\/{order-id}<\/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  \"additional_terms\": null,\n  \"archived_at\": null,\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  \"can_archive\": false,\n  \"cancellation\": null,\n  \"cooperation\": {\n    \"status\": \"ACTIVE\"\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    \"email\": \"trans@trans.eu\",\n    \"employee_id\": 999446,\n    \"family_name\": \"Driver\",\n    \"full_name\": \"Jan Driver\",\n    \"given_name\": \"Jan\",\n    \"identity_document_number\": null,\n    \"phone\": null\n  },\n  \"freight\": {\n    \"carrier\": {\n      \"assignee\": null,\n      \"legal_name\": \"Test Company\",\n      \"vat_id\": \"11111111111\"\n    },\n    \"reference_number\": null,\n    \"requirements\": {\n      \"is_ftl\": true,\n      \"other_requirements\": [\n        \"lift\",\n        \"hds\"\n      ],\n      \"required_adr_classes\": [\n        \"adr_1\"\n      ],\n      \"required_truck_bodies\": [\n        \"cooler\",\n        \"isotherm\"\n      ],\n      \"required_ways_of_loading\": [\n        \"top\"\n      ],\n      \"shipping_remarks\": \"Shipping remarks\",\n      \"temperature\": {\n        \"max\": 100,\n        \"min\": 10\n      },\n      \"vehicle_size_id\": \"bus\"\n    },\n    \"shipper\": {\n      \"assignee\": {\n        \"account_id\": 749989,\n        \"email\": \"test@trans.eu\",\n        \"family_name\": \"Kowalski\",\n        \"fax\": null,\n        \"given_name\": \"Krzysztof\",\n        \"telephone\": \"0048 111111111\",\n        \"trans_id\": \"1007374-1\"\n      },\n      \"legal_name\": \"Test spedition company\",\n      \"vat_id\": \"222222222222\"\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  \"is_archived_permanently\": false,\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      \"type\": \"km\",\n      \"value\": 1500\n    }\n  },\n  \"related\": [],\n  \"source\": {\n    \"author_account_id\": 749989,\n    \"source_date\": \"2021-07-01T08:54:07.008Z\",\n    \"source_id\": null,\n    \"type\": \"api\"\n  },\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\": \"PL1111111\",\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}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to access details of cre\u00adat\u00aded trans\u00adport order.<\/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":[106],"tags":[],"class_list":["post-1968","post","type-post","status-publish","format-standard","hentry","category-create-new-order"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":1968},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1968","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=1968"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1968\/revisions"}],"predecessor-version":[{"id":5537,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1968\/revisions\/5537"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=1968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=1968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=1968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}