{"id":3955,"date":"2022-06-29T12:21:22","date_gmt":"2022-06-29T10:21:22","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=3955"},"modified":"2025-12-29T10:42:44","modified_gmt":"2025-12-29T09:42:44","slug":"get-contractor-employees","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/partners\/getting-lists-partners\/get-contractor-employees\/","title":{"rendered":"Get contractor employees"},"content":{"rendered":"\n<p>This method allows you to down\u00adload part\u00adner employes<\/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:&nbsp;<\/strong>https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint:&nbsp;<\/strong>\/ext\/partners-api\/v1\/partners\/{partnerId}\/employees<\/li>\n\n\n\n<li><strong>Http Method:<\/strong>&nbsp;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>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\">Authorization and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process is described&nbsp;<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\">Response example<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"_embedded\": [\n    {\n      \"department\": {\n        \"id\": \"custom-department\",\n        \"name\": \"custom-department\",\n        \"name_native\": null\n      },\n      \"email\": \"test1@trans.eu\",\n      \"family_name\": \"Kierowca\",\n      \"foreign_languages\": [],\n      \"given_name\": \"Jan\",\n      \"job_title\": \"innre\",\n      \"last_login_date\": \"2020-09-15T13:19:06.000Z\",\n      \"mobile_telephone\": \"(0048) 2222222222\",\n      \"registration_date\": \"2020-07-22T08:21:36.000Z\",\n      \"telephone\": \"(0048) 12345678\",\n      \"trans_id\": \"1111111-1\"\n    },\n    {\n      \"department\": {\n        \"id\": \"custom-department\",\n        \"name\": \"\",\n        \"name_native\": null\n      },\n      \"email\": \"test2@trans.eu\",\n      \"family_name\": \"Nowak\",\n      \"foreign_languages\": [],\n      \"given_name\": \"Testowy\",\n      \"job_title\": \"\",\n      \"last_login_date\": \"2020-12-17T10:42:56.000Z\",\n      \"mobile_telephone\": \"(0048) 7329013\",\n      \"registration_date\": \"2020-12-17T10:36:55.000Z\",\n      \"telephone\": \"(0048) 111111111\",\n      \"trans_id\": \"1111111-2\"\n    },\n    {\n      \"department\": {\n        \"id\": \"custom-department\",\n        \"name\": \"custom-department\",\n        \"name_native\": null\n      },\n      \"email\": \"test3@trans.eu\",\n      \"family_name\": \"Testowa\",\n      \"foreign_languages\": [],\n      \"given_name\": \"Anna\",\n      \"job_title\": \"fbbb\",\n      \"last_login_date\": null,\n      \"mobile_telephone\": null,\n      \"registration_date\": \"2021-06-14T13:25:22.000Z\",\n      \"telephone\": null,\n      \"trans_id\": \"11111111-3\"\n    }\n  ],\n  \"page\": 1,\n  \"page_count\": 1,\n  \"page_size\": 3,\n  \"total_items\": 3\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Paging<\/h2>\n\n\n\n<p>When call\u00ading GET method, page should be added as para\u00adme\u00adter in the URL, for exam\u00adple: <\/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\/partners-api\/v1\/partners\/{partnerId}\/employees?page=4<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">This method allows you to down\u00adload part\u00adner employes<\/p>\n","protected":false},"author":12,"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":[97],"tags":[],"class_list":["post-3955","post","type-post","status-publish","format-standard","hentry","category-getting-lists-partners"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":3955},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3955","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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=3955"}],"version-history":[{"count":1,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3955\/revisions"}],"predecessor-version":[{"id":5483,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/3955\/revisions\/5483"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=3955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=3955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=3955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}