{"id":2996,"date":"2021-05-25T12:37:03","date_gmt":"2021-05-25T10:37:03","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=2996"},"modified":"2025-12-29T10:59:02","modified_gmt":"2025-12-29T09:59:02","slug":"sending-invitation-to-contractors","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/partners\/manage-contractors\/sending-invitation-to-contractors\/","title":{"rendered":"Sending invitation to contractor"},"content":{"rendered":"\n<p>This method allows you to send invi\u00adta\u00adtion to a com\u00adpa\u00adny that you have not found on the Plat\u00adform.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Authorization and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process is described <a href=\"https:\/\/www.trans.eu\/api\/general-information\/authorization-process\/\" target=\"_blank\" rel=\"noopener\" title>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\">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>\/ex\u00adt\/\u00adpart\u00adners-api\/v1\/\u00adpart\u00adners<\/li>\n\n\n\n<li><strong>Http 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>Accept: application\/json<\/li>\n\n\n\n<li>Con\u00adtent-type: 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\">Description and example values<\/h2>\n\n\n\n<figure class=\"wp-block-table has-small-font-size\"><table><tbody><tr><td><strong>Json<\/strong><\/td><td><strong>Is required<\/strong><\/td><td><strong>Exam\u00adple<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Descrip\u00adtion<\/strong><\/td><\/tr><tr><td>name<\/td><td>Yes<\/td><td>Com\u00adpa\u00adny Name<\/td><td>String<\/td><td>Com\u00adpa\u00adny name<\/td><\/tr><tr><td>given_name<\/td><td>No<\/td><td>Adam<\/td><td>String<\/td><td>Recipent first name<\/td><\/tr><tr><td>family_name<\/td><td>No<\/td><td>Kowal\u00ads\u00adki<\/td><td>String<\/td><td>Recipent last name<\/td><\/tr><tr><td>email<\/td><td>Yes<\/td><td>123@trans.eu<\/td><td>String<\/td><td>Email address to which an invi\u00adta\u00adtion will be sent<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Example request<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"name\": \"Company Name\",\n  \"given_name\": \"Adam\",\n  \"family_name\": \"Kowalski\",\n  \"email\": \"123@trans.eu\"\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Example response<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>HTTP Code: 200<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"message\": \"Invitation sent\"\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">This method allows you to send invi\u00adta\u00adtion to a com\u00adpa\u00adny that you have not found on the Plat\u00adform.<\/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":[95],"tags":[],"class_list":["post-2996","post","type-post","status-publish","format-standard","hentry","category-manage-contractors"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":2996},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2996","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=2996"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2996\/revisions"}],"predecessor-version":[{"id":5516,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/2996\/revisions\/5516"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=2996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=2996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=2996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}