v1.36
about 1 year ago by Esteban Deel
New GP endpoints
Added
List payroll events by legal entity
Get list of global payroll events by legal entities.
Endpoint: GET rest/v1/gp/legal-entities/{legal_entity_id}/reports
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/gp/legal-entities/legal_entity_id/reports \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
List gross-to-net report
Get list of global payroll reports detailing gross-to-net calculations.
Endpoint: GET rest/v1/gp/reports/{gp_report_id}/gross_to_net
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/gp/reports/gp_report_id/gross_to_net \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
Download gross-to-net report
Download global payroll reports detailing gross-to-net calculations.
Endpoint: GET rest/v1/gp/reports/{gp_report_id}/gross_to_net/csv
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/gp/reports/gp_report_id/gross_to_net/csv \
--header 'accept: text/csv' \
--header 'authorization: Bearer token'
Request termination
Request a termination for a global payroll employee. A successful call starts the termination process and does not confirm termination.
Endpoint: POST rest/v1/gp/workers/{worker_id}/terminations
Sample request
curl --request POST \
--url https://api.letsdeel.com/rest/v1/gp/workers/worker_id/terminations \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"desired_end_date": "2023-12-31T00:00:00.000Z",
"last_date_of_work": "2023-12-31T00:00:00.000Z",
"message": "Termination reason",
"is_voluntary": true,
"severance": {
"amount": 100,
"type": "TIME",
"time_unit": "MONTHS",
"currency": "GBP"
}
}
}
'