{"id":1655,"date":"2020-04-28T08:47:58","date_gmt":"2020-04-28T06:47:58","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=1655"},"modified":"2026-03-16T14:16:48","modified_gmt":"2026-03-16T13:16:48","slug":"reject-freight-offer","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/freights\/reject-freight-offer\/","title":{"rendered":"Reject freight offer"},"content":{"rendered":"\n<p>Allows to reject received freight offer.<\/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\/freights-api\/v1\/freights\/offers\/{offer-id}\/reject<\/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\/\" 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\">Usage<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Request:<\/h3>\n\n\n\n<p>For reject\u00ading freight offer it is required to send emp\u00adty request using <strong>POST<\/strong> method.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>https:\/\/api.platform.trans.eu\/ext\/freights-api\/v1\/freights\/offers\/{offer-id}\/reject<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Response:<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\" data-show-lang=\"1\"><code>{\n  \"carrier\": {\n    \"company_id\": 1013865,\n    \"cooperation\": {\n      \"is_suspended\": false\n    },\n    \"legal_name\": \"Firma Testowa Przewo\u017anik IIT 2\",\n    \"vat_id\": \"PL11111111111\"\n  },\n  \"created_at\": \"2021-03-08T12:20:34+01:00\",\n  \"id\": \"4a2dbtsd-bd6b-4c24-6t2c-256af1005591\",\n  \"price\": {\n    \"currency\": \"eur\",\n    \"value\": 150\n  },\n  \"requirements\": null,\n  \"version\": 4,\n  \"was_negotiated\": true\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Allows to reject received freight offer.<\/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-1655","post","type-post","status-publish","format-standard","hentry","category-freights"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":1655},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1655","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=1655"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1655\/revisions"}],"predecessor-version":[{"id":5554,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/1655\/revisions\/5554"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=1655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=1655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=1655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}