{"id":3522,"date":"2021-11-23T12:41:26","date_gmt":"2021-11-23T11:41:26","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=3522"},"modified":"2025-12-29T10:54:08","modified_gmt":"2025-12-29T09:54:08","slug":"get-invoice-for-transport-document-data","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/orders\/order-attachments\/get-invoice-for-transport-document-data\/","title":{"rendered":"Get invoice for transport document data"},"content":{"rendered":"\n<p>Method allows to down\u00adload basic infor\u00adma\u00adtion about invoice for trans\u00adport doc\u00adu\u00adment. After that you will be able to <a href=\"https:\/\/www.trans.eu\/api\/attachments\/uploading-and-downloading-attachments\/\">down\u00adload<\/a> invoice scan also.<\/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\/{orderId}\/invoice<\/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\">Json response example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"currency\": \"pln\",\n  \"file_link\": \"https:\/\/api.platform.trans.eu\/ext\/media-storage-api\/v1\/assets\/72d71c93-355b-4119-9c5d-2460f368297b\",\n  \"gross_value\": 1512.9,\n  \"invoice_id\": null,\n  \"invoice_issuance_date\": \"2021-12-13\",\n  \"invoice_number\": \"13\/12\/1234\",\n  \"media_id\": \"72d71c93-355b-4119-9c5d-2460f368297b\",\n  \"net_value\": 1230,\n  \"payment_due_date\": \"2021-12-20\",\n  \"payment_offset_days\": 7,\n  \"sales_date\": \"2021-12-13\",\n  \"tax_value\": 23\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Downloading invoice file<\/h2>\n\n\n\n<p>In order to down\u00adload an invoice you have to give media_id and use method described&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/attachments\/uploading-and-downloading-attachments\/\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Method allows to down\u00adload basic infor\u00adma\u00adtion about invoice for trans\u00adport doc\u00adu\u00adment. After that you will be able to down\u00adload invoice \u2026<\/p>\n","protected":false},"author":13,"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":[104],"tags":[],"class_list":["post-3522","post","type-post","status-publish","format-standard","hentry","category-order-attachments"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":3522},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3522","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=3522"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3522\/revisions"}],"predecessor-version":[{"id":5494,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3522\/revisions\/5494"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=3522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=3522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=3522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}