v1.34
over 1 year ago by Esteban Deel
New Global Payroll endpoints
Added
Add bank account
Add a new bank account for an employee.
Endpoint: POST rest/v1/gp/workers/{worker_id}/banks
Sample request
curl --request POST \
--url https://api.letsdeel.com/rest/v1/gp/workers/worker_id/banks \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"full_name": "John Doe",
"phone": "+1234567890",
"address_line1": "1234 Main St",
"address_line2": "Apartment 101",
"city": "Springfield",
"province_state": "Ontario",
"postal": "12345",
"bank_name": "Bank of Examples",
"country_code": "US",
"bank_country_code": "US",
"swift_bic": "EXAMPLEBIC",
"account_number": "123456789012",
"bank_code": "123",
"original_name": "Johnathan Doe",
"tax_id": "123-45-6789",
"branch_code": "001",
"currency_code": "USD",
"bank_branch_name": "Main Street Branch",
"iban": "GB29NWBK60161331926819",
"email": "[email protected]",
"rib_number": "12345678901",
"account_type": "12345678901",
"ach_routing_number": "12345678901"
}
}
'
Retrieve bank accounts
Retrieve all bank accounts for an employee.
Endpoint: GET rest/v1/gp/workers/{worker_id}/banks
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/gp/workers/worker_id/banks \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
Modify bank account
Modify bank account for an employee.
Endpoint: PATCH rest/v1/gp/workers/{worker_id}/banks/{bank_id}
Sample request
curl --request PATCH \
--url https://api.letsdeel.com/rest/v1/gp/workers/worker_id/banks/bank_id \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"data": {
"full_name": "John Doe",
"phone": "+1234567890",
"address_line1": "1234 Main St",
"address_line2": "Apartment 101",
"city": "Springfield",
"province_state": "Ontario",
"postal": "12345",
"bank_name": "Bank of Examples",
"country_code": "US",
"bank_country_code": "US",
"swift_bic": "EXAMPLEBIC",
"account_number": "123456789012",
"bank_code": "123",
"original_name": "Johnathan Doe",
"tax_id": "123-45-6789",
"branch_code": "001",
"currency_code": "USD",
"bank_branch_name": "Main Street Branch",
"iban": "GB29NWBK60161331926819",
"email": "[email protected]",
"rib_number": "12345678901",
"account_type": "12345678901",
"ach_routing_number": "12345678901"
}
}
'
Retrieve bank guide
Retrieve the bank form guide for employee.
Endpoint: GET rest/v1/gp/workers/{worker_id}/banks/{bank_id}
Sample request
curl --request GET \
--url https://api.letsdeel.com/rest/v1/gp/workers/worker_id/banks/guide \
--header 'accept: application/json' \
--header 'authorization: Bearer token'
Remove
Webhook Events
We have removed the contract.archived
webhoook.