v1.37
about 1 year ago by Esteban Deel
New employee_number field in GP endpoints
Added
Employee Number
Our customers can specify the employee_number when they create a new GP contract.
Endpoint: POST rest/v1/contracts/gp
Sample request
curl --request POST \
--url https://api.letsdeel.com/rest/v1/contracts/gp \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"data": {
"employee": {
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"work_email": "[email protected]",
"nationality": "US",
"employee_number": "100",
"address": {
"street": "Deel Street 500",
"city": "Denver",
"state": "CO",
"zip": "44000",
"country": "US"
}
},
...
}
'
Our customers can update the employee_number.
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 'content-type: application/json' \
--data '
{
"data": {
"employee_number": "100"
}
}
'