{"id":1653,"date":"2020-04-28T08:48:32","date_gmt":"2020-04-28T06:48:32","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=1653"},"modified":"2026-03-16T14:16:35","modified_gmt":"2026-03-16T13:16:35","slug":"accept-freight-offer","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/freights\/accept-freight-offer\/","title":{"rendered":"Accept freight offer"},"content":{"rendered":"\n<p>Allows to accept received freight offer. For each freight only one accep\u00adtance is pos\u00adsi\u00adble.<\/p>\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\/freights-api\/v1\/freights\/offers\/{offer-id}\/accept<\/li>\n\n\n\n<li><strong>Method:<\/strong> POST<\/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\/\" 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\">Usage<\/h2>\n\n\n\n<p>Allows to accept recieved price offer by giv\u00aden ver\u00adsion. All oth\u00ader offers sent by oth\u00ader car\u00adri\u00aders are immidi\u00adate\u00adly reject\u00aded.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Json example Request:<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"version\": 4\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Status codes:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>200 ok if the offer num\u00adber and ver\u00adsion was cor\u00adrect<\/li>\n\n\n\n<li>400 if either offer num\u00adber or ver\u00adsion were incor\u00adrect<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Json example Response<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"carrier\": {\n    \"company_id\": 1013865,\n    \"cooperation\": {\n      \"is_suspended\": false\n    },\n    \"legal_name\": \"FirmaTestowaPrzewo\u017anikIIT2\",\n    \"vat_id\": \"PL11111111111\"\n  },\n  \"created_at\": \"2021-03-08T10:58:59+01:00\",\n  \"id\": \"4a2dbtsd-bd6b-4c24-6t2c-256af1005591\",\n  \"price\": {\n    \"currency\": \"eur\",\n    \"value\": 140\n  },\n  \"requirements\": \"\",\n  \"version\": 5,\n  \"was_negotiated\": true\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to accept received freight offer. For each freight only one accep\u00adtance is pos\u00adsi\u00adble. Url para\u00adme\u00adters and con\u00adnec\u00adtion set\u00adtings Head\u00aders: \u2026<\/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":[42],"tags":[],"class_list":["post-1653","post","type-post","status-publish","format-standard","hentry","category-freights"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":1653},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1653","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=1653"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1653\/revisions"}],"predecessor-version":[{"id":5553,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1653\/revisions\/5553"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=1653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=1653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=1653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}