v1.19
In this release we are introducing the following endpoints:
- Add external Id to a contract.
- Preview contract agreement.
We have also made the following updates:
- Added
employments
to SCIM API response schema. - Added
country
andstate
to SCIM API response schema.
Add external Id to a contract
You can now add an external id to a contract. This enables you to add a 3rd-party platform's reference id to a Deel contract so that you can search for this contract later using the external id.
Adding the external Id is simple. Below is a cURL example of this request:
curl --request PATCH \
--url https://api.letsdeel.com/rest/v1/contracts/:contract_id \
--header 'accept: application/json' \
--header 'authorization: Bearer {token}' \
--header 'content-type: application/json' \
--data '
{
"data": {
"external_id": "ext_123"
}
}
'
You can search for a contract using the external Id as a query parameter in the listing contract endpoint:
curl --request GET \
--url 'https://api.letsdeel.com/rest/v1/contracts?external_id=ext_123' \
--header 'accept: application/json' \
--header 'authorization: Bearer {token}'
View this endpoint in the API reference.
Preview contract agreement
You can retrieve an IC contract agreement content in HTML. Please note: this endpoint does not support EOR and Global Payroll contract types.
Example request:
curl --request GET \
--url https://api.letsdeel.com/rest/v1/contracts/:contrat_id/preview \
--header 'accept: text/html' \
--header 'authorization: Bearer {token}'
View this endpoint in the API reference.
SCIM API Updated
We have added employments
, country
and state
in the User schema response.
Example:
{
...
"urn:ietf:params:scim:schemas:extension:2.0:User": {
"startDate": "2023-04-26",
"endDate": "",
"state": null,
"country": "NG",
"employments": [
{
"contractId": "7GBVRoFjo7er7HKHFaszL",
"title": "Direct Marketing Administrator",
"startDate": "2023-04-26",
"contractType": "hris_direct_employee",
"state": null,
"country": "NG",
"active": true
}
]
},
...
}