v1.29
New Global Payroll endpoints
Added
Retrieve Payslips
Retrieve a list of payslips for a specific worker by their worker ID.
Endpoint: GET /rest/v1/gp/workers/{worker_id}/payslips
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/gp/workers/0123abcd-e031-4f1e-93d4-6bc66e8c4727/payslips \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
Download Specific Payslip
Download a specific payslip for a worker using the payslip’s ID.
Endpoint: GET /rest/v1/gp/workers/{worker_id}/payslips/{payslip_id}/download
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/gp/workers/0123abcd-e031-4f1e-93d4-6bc66e8c4727/payslips/ApdZbLvq0r0E/download \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
Update Address
Update the address details of a worker using their worker ID.
Endpoint: PATCH /rest/v1/gp/workers/{worker_id}/address
Sample request
curl --request PATCH \
--url https://api.letsdeel.com/rest/v1/gp/workers/0123abcd-e031-4f1e-93d4-6bc66e8c4727/address \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"city": "London",
"street": "123 Deel Street",
"zip": "12345"
}
}
'
Modify Compensation
Modify the compensation details of a specific worker.
Endpoint: PATCH /rest/v1/gp/workers/{worker_id}/compensation
Sample request
curl --request PATCH \
--url https://api.letsdeel.com/rest/v1/gp/workers/0123abcd-e031-4f1e-93d4-6bc66e8c4727/compensation \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"scale": "YEAR",
"salary": 50000,
"effective_date": "1999-12-31"
}
}
'
Adjust PTO Policy
Adjust the Paid Time Off (PTO) policy for a specific worker.
Endpoint: PATCH /rest/v1/gp/workers/{worker_id}/pto-policy
Sample request
curl --request PATCH \
--url https://api.letsdeel.com/rest/v1/gp/workers/0123abcd-e031-4f1e-93d4-6bc66e8c4727/pto-policy \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"accrual_start_date": "1999-12-31",
"yearly_allowance": "15"
}
}
'
Update Employee Information
Update general employee information for a worker by their ID.
Endpoint: PATCH /rest/v1/gp/workers/{worker_id}/employee-information
Sample request
curl --request PATCH \
--url https://api.letsdeel.com/rest/v1/gp/workers/worker_id/employee-information \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"first_name": "Jane",
"middle_name": "Jay",
"last_name": "Doe",
"date_of_birth": "1999-12-31",
"gender": "string",
"marital_status": "Single"
}
}
'
Custom fields in GET /people/:id endpoint
We added custom_fields
property in the response of GET /people/:id
endpoint. Now, you can get custom fields for an employee.
Sample response
{
"custom_fields": [
{
"name": "Job title",
"value": "Software Engineer II"
}
]
}