v1.26
Introduce people endpoints.
Added
People Endpoints
We're excited to announce the launch of our latest feature, allowing you to retrieve a list of people in your Deel account.
Programmatically fetch, analyze, and leverage a comprehensive list of individuals associated with your organization to enhance team management and strategic decision-making.
Sample Request
curl --location 'https://api.letsdeel.com/rest/v1/people' \
--header 'Authorization: Bearer {token}'
Sample Response
{
"data": [
{
"id": "a4f91c16-2104-4841-ba4e-77fdcb5bc6ee",
"created_at": "2023-07-21T07:44:58.437Z",
"first_name": "Whitney",
"last_name": "Houston",
"full_name": "Whitney Houston",
"emails": [
{
"type": "primary",
"value": "[email protected]"
},
{
"type": "work",
"value": null
},
{
"type": "personal",
"value": "[email protected]"
}
],
"birth_date": null,
"start_date": "2023-08-05",
"nationality": null,
"client_legal_entity": {
"id": 232324,
"name": "Aleena Moon"
},
"state": "BE",
"seniority": "Lead (Individual Contributor Level 4)",
"completion_date": "2023-07-21T07:45:11.807Z",
"direct_manager": null,
"direct_reports": null,
"direct_reports_count": 0,
"employments": [
{
"id": "3edvyng",
"name": "Fixed-Rate API- 2023-07-21",
"team": {
"id": 384149,
"name": "Oleena"
},
"email": "[email protected]",
"state": "BE",
"country": "GE",
"payment": null,
"is_ended": true,
"timezone": null,
"job_title": "QA Engineer",
"seniority": "Lead (Individual Contributor Level 4)",
"start_date": "2023-08-05",
"work_email": null,
"hiring_type": "contractor",
"hiring_status": "inactive",
"completion_date": "2023-07-21T07:45:11.807Z",
"contract_status": "cancelled",
"voluntarily_left": null,
"contract_coverage": null,
"new_hiring_status": "inactive",
"client_legal_entity": {
"id": 232324,
"name": "Aleena Moon"
},
"has_eor_termination": null,
"contract_is_archived": false,
"contract_has_contractor": false,
"is_user_contract_deleted": false,
"hris_direct_employee_invitation": null
}
],
"hiring_status": "inactive",
"new_hiring_status": "inactive",
"hiring_type": "contractor",
"job_title": "QA Engineer",
"country": "GE",
"timezone": null,
"department": null,
"work_location": null
}
]
}
Improved
EOR Pensions
We have added a pension object in the response of the country guide endpoint that indicates if this country has a pension benefit available or not.
"pension": {
"status": "REQUIRED",
"providers": [
{
"id": 0,
"name": "US Pension",
"home_page_url": "https://bit.ly/3uW72fp",
"contribution": {
"type": "PERCENTAGE",
"minimum": "5.00",
"maximum": "10.00"
}
}
]
}
To ensure your employees receive this benefit, make sure to include a new pension object while creating an EOR Contract quote (using the POST /eor endpoint). This will allow you to set the preferred pension provider for the employees.
This new pension object has two properties:
id
: Pension provider's idcontribution
: You should send this value when the pension provider that you choose has a contribution object.
The contribution property should have a value between the minimum and maximum given.
"pension": {
"id": "0",
"contribution": "7.00"
}
SCIM API Filters
We have added email and name filters to the Deel HR SCIM API Users endpoint. Now you can search for a user based on their email, givenName, or familyName.
To search for someone based on their email format the request like this:
curl --request GET \
--url 'https://api-staging.letsdeel.com/scim/v2/Users?filter=email%20eq%20%22john%22&startIndex=1&count=50' \
--header 'accept: application/json' \
--header 'authorization: Bearer {token}
To search for someone based on their givenName, format the request like this:
curl --request GET \
--url 'https://api-staging.letsdeel.com/scim/v2/Users?filter=name.givenName%20eq%20%22john%22&startIndex=1&count=50' \
--header 'accept: application/json' \
--header 'authorization: Bearer {token}
To search for someone based on their familyName, format the request like this:
curl --request GET \
--url 'https://api-staging.letsdeel.com/scim/v2/Users?filter=name.familyName%20eq%20%22john%22&startIndex=1&count=50' \
--header 'accept: application/json' \
--header 'authorization: Bearer {token}