import Finch from '@tryfinch/finch-api';
const client = new Finch({
accessToken: 'My Access Token',
});
const employment = await client.sandbox.employment.update('individual_id');
console.log(employment.id);
{
"first_name": "<string>",
"middle_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"manager": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"department": {
"name": "<string>"
},
"employment": {
"type": "employee",
"subtype": "full_time"
},
"start_date": "<string>",
"end_date": "<string>",
"latest_rehire_date": "<string>",
"is_active": true,
"employment_status": "active",
"class_code": "<string>",
"location": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"source_id": "<string>"
},
"income": {
"unit": "yearly",
"amount": 123,
"currency": "<string>",
"effective_date": "2023-12-25"
},
"income_history": [
{
"unit": "yearly",
"amount": 123,
"currency": "<string>",
"effective_date": "2023-12-25"
}
],
"custom_fields": [
{
"name": "<string>",
"value": "<any>"
}
],
"source_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
import Finch from '@tryfinch/finch-api';
const client = new Finch({
accessToken: 'My Access Token',
});
const employment = await client.sandbox.employment.update('individual_id');
console.log(employment.id);
{
"first_name": "<string>",
"middle_name": "<string>",
"last_name": "<string>",
"title": "<string>",
"manager": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"department": {
"name": "<string>"
},
"employment": {
"type": "employee",
"subtype": "full_time"
},
"start_date": "<string>",
"end_date": "<string>",
"latest_rehire_date": "<string>",
"is_active": true,
"employment_status": "active",
"class_code": "<string>",
"location": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"source_id": "<string>"
},
"income": {
"unit": "yearly",
"amount": 123,
"currency": "<string>",
"effective_date": "2023-12-25"
},
"income_history": [
{
"unit": "yearly",
"amount": 123,
"currency": "<string>",
"effective_date": "2023-12-25"
}
],
"custom_fields": [
{
"name": "<string>",
"value": "<any>"
}
],
"source_id": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Please use your Access Token
OK
The response is of type object
.
Was this page helpful?