{"id":6664,"date":"2026-05-15T17:14:38","date_gmt":"2026-05-15T15:14:38","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=6664"},"modified":"2026-05-15T17:14:40","modified_gmt":"2026-05-15T15:14:40","slug":"uploading-files-and-adding-files-as-an-attachment-to-an-order","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/","title":{"rendered":"Uploading files and adding files as an attachment to an order"},"content":{"rendered":"\n<p>Descrip\u00adtion of usage of APIs to upload a file, attach\u00ading it to an order, down\u00adload\u00ading an order attach\u00adment, as well as delet\u00ading an attach\u00adment from an order.&nbsp;<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Scenario<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Car\u00adri\u00ader and ship\u00adper are both present on Trans.eu plat\u00adform <\/li>\n\n\n\n<li>The Ship\u00adper has assigned an Order to a Car\u00adri\u00ader<\/li>\n\n\n\n<li>The Order is not can\u00adcelled nor archived<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Authorize access<\/h2>\n\n\n\n<p>Before it is pos\u00adsi\u00adble to send any request, user needs to&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/general-information\/authorization-process\/\" title>autho\u00adrize access<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>client app was reg\u00adis\u00adtered using reg\u00adis\u00adtra\u00adtion form<\/li>\n\n\n\n<li>exter\u00adnal app was grant\u00aded api keys (client_id and client_secret)<\/li>\n\n\n\n<li>autho\u00adriza\u00adtion process has been imple\u00adment\u00aded in exter\u00adnal app<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Uploading attachments<\/h2>\n\n\n\n<p>Before a file can be added to an order as an attach\u00adment, it has to be uploaded via the fol\u00adlow\u00ading end\u00adpoint to be iden\u00adti\u00adfied with a media_id.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Endpoint<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>PUT https:\/\/api.platform.trans.eu\/ext\/media-storage-api\/v1\/assets<\/code><\/pre><\/div>\n\n\n\n<p>The endpoint\u2019s con\u00adtent type is mul\u00adti\u00adpart\/\u00adform-data, and the avail\u00adable file types are list\u00aded below:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JPG, GIF, PNG, BMP, PDF, ODT, DOC, TXT, DOCX, TIFF, ODS, XLS, XLSX, PPT, RTF<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Response:<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n    \"id\": \"3e7272cd-e805-42c5-bd55-dd9b9a43bc38\",\n    \"path\": \"https:\/\/api.media-storage.service\/v1\/assets\/3e7272cd-e805-42c5-bd55-dd9b9a43bc38\",\n    \"ttl\": {\n        \"validTime\": \"not specified\",\n        \"expirationDate\": null\n    },\n    \"file\": {\n        \"etag\": \"\\\"1a9f3ffe9b03568b7d65b5436431a38f\\\"\",\n        \"size\": 43543,\n        \"type\": \"image\/jpeg\",\n        \"name\": \"cargo_photo.jpg\",\n        \"hash\": {\n            \"md5\": \"1a9f3ffe9b03568b7d65b5436431a38f\",\n            \"sha256\": \"390e2f4af92946e773fe0cdef6c25f694ae6844290cfb411daea8f677237b072\"\n        },\n        \"permissions\": {\n            \"isPublic\": true,\n            \"acl\": {\n                \"1158167\": \"OWNER\",\n                \"public\": \"READER\",\n                \"guest\": \"READER\"\n            }\n        },\n        \"image\": {\n            \"width\": 363,\n            \"height\": 471\n        }\n    }\n}<\/code><\/pre><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Adding uploaded attachment to order<\/h2>\n\n\n\n<p>The uploaded file can be added as an attach\u00adment to the order via the fol\u00adlow\u00ading end\u00adpoint. The end\u00adpoint has the orderId as a path vari\u00adable \u2014 the orderId can be obtained from the response of the end\u00adpoint <a href=\"https:\/\/www.trans.eu\/api\/orders\/getting-lists-orders\/list-of-created-orders\/\" title>here<\/a> (if ship\u00adper) and <a href=\"https:\/\/www.trans.eu\/api\/orders\/getting-lists-orders\/list-of-received-orders\/\" title>here<\/a> (if car\u00adri\u00ader).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Endpoint<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>POST https:\/\/api.platform.trans.eu\/orders-api\/v1\/orders\/{orderId}\/attachments<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Example of use<\/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\/orders-api\/v1\/orders\/{b093cdfe-12cf-4958-a5da-0170141e9c71}\/attachments<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Request example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"media_id\": \"3e7272cd-e805-42c5-bd55-dd9b9a43bc38\",\n  \"media_name\": \"damaged pallet\",\n  \"type_id\": \"cargo_photo\",\n  \"visible_to_contractor\": true,\n  \"description\": \"goods damaged on pallet due to accident\"\n}<\/code><\/pre><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Downloading attachments<\/h2>\n\n\n\n<p>Any attach\u00adment of an order can be down\u00adloaded by pro\u00advid\u00ading the medi\u00adaId path vari\u00adable with the fol\u00adlow\u00ading end\u00adpoint.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Endpoint<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>GET https:\/\/api.platform.trans.eu\/ext\/media-storage-api\/v1\/assets\/{mediaId}<\/code><\/pre><\/div>\n\n\n\n<p>The file will be pro\u00advid\u00aded in the response.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Deleting order attachments<\/h2>\n\n\n\n<p>To delete an attach\u00adment of an order, use the fol\u00adlow\u00ading end\u00adpoint. This end\u00adpoint requires two path vari\u00adables \u2014 orderId and attach\u00admen\u00adtId, which is the same val\u00adue as the afore\u00admen\u00adtioned media_id.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Endpoint<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>DELETE https:\/\/api.platform.trans.eu\/orders-api\/v1\/orders\/:orderId\/attachments\/:attachmentId<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Example of use<\/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\/orders-api\/v1\/orders\/{b093cdfe-12cf-4958-a5da-0170141e9c71}\/attachments\/{3e7272cd-e805-42c5-bd55-dd9b9a43bc38}<\/code><\/pre><\/div>\n\n\n\n<p><strong><em>Impor\u00adtant<\/em><\/strong> \u2014 only the user from the author com\u00adpa\u00adny can remove attach\u00adments \u2014 for exam\u00adple, if a ship\u00adper attached a file to an order, the car\u00adri\u00ader is for\u00adbid\u00adden from remov\u00ading the attach\u00adment as well as vice ver\u00adsa. This will result in a 403 error (For\u00adbid\u00adden).<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\">Getting attachmentId<\/h2>\n\n\n\n<p>If the attach\u00admen\u00adtId is unknown to the user, the infor\u00adma\u00adtion can be found in the response of one of the two end\u00adpoints:<\/p>\n\n\n\n<p>For ship\u00adper:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>GET https:\/\/api.platform.trans.eu\/ext\/orders-api\/v1\/orders-created\/{order-id}<\/code><\/pre><\/div>\n\n\n\n<p>For car\u00adri\u00ader:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>GET https:\/\/api.platform.trans.eu\/ext\/orders-api\/v1\/orders-received\/{order-id}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Response example<\/h2>\n\n\n\n<p>With\u00adin the response for either of these end\u00adpoints, the fol\u00adlow\u00ading infor\u00adma\u00adtion can be found:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>    \"attachments\": [\n        {\n            \"author\": null,\n            \"company\": {\n                \"legal_name\": \"(P3DT) CargoON Test\",\n                \"company_id\": 1079411\n            },\n            \"created_at\": \"2026-05-15T13:55:59.514Z\",\n            \"description\": \"goods damaged on pallet due to accident\",\n            \"media_id\": \"3e7272cd-e805-42c5-bd55-dd9b9a43bc38\",\n            \"media_name\": \"damaged pallet\",\n            \"protected\": false,\n            \"source\": \"orders\",\n            \"source_id\": null,\n            \"type_id\": \"cargo_photo\",\n            \"visible_to_contractor\": true\n        }\n    ],<\/code><\/pre><\/div>\n\n\n\n<p>The media_id val\u00adue cor\u00adre\u00adsponds to the attach\u00admen\u00adtId val\u00adue.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Descrip\u00adtion of usage of APIs to upload a file, attach\u00ading it to an order, down\u00adload\u00ading an order attach\u00adment, as well \u2026<\/p>\n","protected":false},"author":19,"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":[58],"tags":[],"class_list":["post-6664","post","type-post","status-publish","format-standard","hentry","category-integration-scenarios"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Eryk Jakubowski\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"pl_PL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Trans.eu Api - Trans.eu Api\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Uploading files and adding files as an attachment to an order - Trans.eu Api\" \/>\n\t\t<meta property=\"og:description\" content=\"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/201805241459329875.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/201805241459329875.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1182\" \/>\n\t\t<meta property=\"og:image:height\" content=\"246\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-05-15T15:14:38+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-05-15T15:14:40+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Uploading files and adding files as an attachment to an order - Trans.eu Api\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/201805241459329875.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#blogposting\",\"name\":\"Uploading files and adding files as an attachment to an order - Trans.eu Api\",\"headline\":\"Uploading files and adding files as an attachment to an order\",\"author\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/cropped-201805241459329875.png\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/#articleImage\",\"width\":512,\"height\":512},\"datePublished\":\"2026-05-15T17:14:38+02:00\",\"dateModified\":\"2026-05-15T17:14:40+02:00\",\"inLanguage\":\"pl-PL\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#webpage\"},\"articleSection\":\"Integration scenarios, English\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.trans.eu\\\/api\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/#listItem\",\"name\":\"Use cases\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/#listItem\",\"position\":2,\"name\":\"Use cases\",\"item\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/#listItem\",\"name\":\"Integration scenarios\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/#listItem\",\"position\":3,\"name\":\"Integration scenarios\",\"item\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#listItem\",\"name\":\"Uploading files and adding files as an attachment to an order\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/#listItem\",\"name\":\"Use cases\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#listItem\",\"position\":4,\"name\":\"Uploading files and adding files as an attachment to an order\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/#listItem\",\"name\":\"Integration scenarios\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/#organization\",\"name\":\"Trans.eu Api\",\"description\":\"Trans.eu Api\",\"url\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/cropped-201805241459329875.png\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#organizationLogo\",\"width\":512,\"height\":512},\"image\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api#author\",\"url\":\"https:\\\/\\\/www.trans.eu\\\/api\",\"name\":\"Eryk Jakubowski\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/565f0a695f49ce18855a0398aac7283551d4e3daa503d03b2e598f90ba9ca51a?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Eryk Jakubowski\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#webpage\",\"url\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/\",\"name\":\"Uploading files and adding files as an attachment to an order - Trans.eu Api\",\"description\":\"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access\",\"inLanguage\":\"pl-PL\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/use-cases\\\/integration-scenarios\\\/uploading-files-and-adding-files-as-an-attachment-to-an-order\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api#author\"},\"datePublished\":\"2026-05-15T17:14:38+02:00\",\"dateModified\":\"2026-05-15T17:14:40+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/#website\",\"url\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/\",\"name\":\"Trans.eu Api\",\"description\":\"Trans.eu Api\",\"inLanguage\":\"pl-PL\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.trans.eu\\\/api\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Uploading files and adding files as an attachment to an order - Trans.eu Api","description":"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access","canonical_url":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#blogposting","name":"Uploading files and adding files as an attachment to an order - Trans.eu Api","headline":"Uploading files and adding files as an attachment to an order","author":{"@id":"https:\/\/www.trans.eu\/api#author"},"publisher":{"@id":"https:\/\/www.trans.eu\/api\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/cropped-201805241459329875.png","@id":"https:\/\/www.trans.eu\/api\/#articleImage","width":512,"height":512},"datePublished":"2026-05-15T17:14:38+02:00","dateModified":"2026-05-15T17:14:40+02:00","inLanguage":"pl-PL","mainEntityOfPage":{"@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#webpage"},"isPartOf":{"@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#webpage"},"articleSection":"Integration scenarios, English"},{"@type":"BreadcrumbList","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api#listItem","position":1,"name":"Home","item":"https:\/\/www.trans.eu\/api","nextItem":{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/#listItem","name":"Use cases"}},{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/#listItem","position":2,"name":"Use cases","item":"https:\/\/www.trans.eu\/api\/use-cases\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/#listItem","name":"Integration scenarios"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/#listItem","position":3,"name":"Integration scenarios","item":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#listItem","name":"Uploading files and adding files as an attachment to an order"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/#listItem","name":"Use cases"}},{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#listItem","position":4,"name":"Uploading files and adding files as an attachment to an order","previousItem":{"@type":"ListItem","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/#listItem","name":"Integration scenarios"}}]},{"@type":"Organization","@id":"https:\/\/www.trans.eu\/api\/#organization","name":"Trans.eu Api","description":"Trans.eu Api","url":"https:\/\/www.trans.eu\/api\/","logo":{"@type":"ImageObject","url":"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/cropped-201805241459329875.png","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#organizationLogo","width":512,"height":512},"image":{"@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.trans.eu\/api#author","url":"https:\/\/www.trans.eu\/api","name":"Eryk Jakubowski","image":{"@type":"ImageObject","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/565f0a695f49ce18855a0398aac7283551d4e3daa503d03b2e598f90ba9ca51a?s=96&d=mm&r=g","width":96,"height":96,"caption":"Eryk Jakubowski"}},{"@type":"WebPage","@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#webpage","url":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/","name":"Uploading files and adding files as an attachment to an order - Trans.eu Api","description":"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access","inLanguage":"pl-PL","isPartOf":{"@id":"https:\/\/www.trans.eu\/api\/#website"},"breadcrumb":{"@id":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/#breadcrumblist"},"author":{"@id":"https:\/\/www.trans.eu\/api#author"},"creator":{"@id":"https:\/\/www.trans.eu\/api#author"},"datePublished":"2026-05-15T17:14:38+02:00","dateModified":"2026-05-15T17:14:40+02:00"},{"@type":"WebSite","@id":"https:\/\/www.trans.eu\/api\/#website","url":"https:\/\/www.trans.eu\/api\/","name":"Trans.eu Api","description":"Trans.eu Api","inLanguage":"pl-PL","publisher":{"@id":"https:\/\/www.trans.eu\/api\/#organization"}}]},"og:locale":"pl_PL","og:site_name":"Trans.eu Api - Trans.eu Api","og:type":"article","og:title":"Uploading files and adding files as an attachment to an order - Trans.eu Api","og:description":"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access","og:url":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/","og:image":"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/201805241459329875.png","og:image:secure_url":"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/201805241459329875.png","og:image:width":1182,"og:image:height":246,"article:published_time":"2026-05-15T15:14:38+00:00","article:modified_time":"2026-05-15T15:14:40+00:00","twitter:card":"summary","twitter:title":"Uploading files and adding files as an attachment to an order - Trans.eu Api","twitter:description":"Description of usage of APIs to upload a file, attaching it to an order, downloading an order attachment, as well as deleting an attachment from an order. Scenario Carrier and shipper are both present on Trans.eu platform The Shipper has assigned an Order to a Carrier The Order is not cancelled nor archived Authorize access","twitter:image":"https:\/\/www.trans.eu\/api\/wp-content\/uploads\/2019\/05\/201805241459329875.png"},"aioseo_meta_data":{"post_id":"6664","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-05-15 14:57:28","updated":"2026-05-15 15:16:21","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.trans.eu\/api\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.trans.eu\/api\/use-cases\/\" title=\"Use cases\">Use cases<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/\" title=\"Integration scenarios\">Integration scenarios<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUploading files and adding files as an attachment to an order\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.trans.eu\/api"},{"label":"Use cases","link":"https:\/\/www.trans.eu\/api\/use-cases\/"},{"label":"Integration scenarios","link":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/"},{"label":"Uploading files and adding files as an attachment to an order","link":"https:\/\/www.trans.eu\/api\/use-cases\/integration-scenarios\/uploading-files-and-adding-files-as-an-attachment-to-an-order\/"}],"lang":"en","translations":{"en":6664},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/6664","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\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=6664"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/6664\/revisions"}],"predecessor-version":[{"id":6665,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/6664\/revisions\/6665"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=6664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=6664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=6664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}