POST
/
employer
/
employment
import Finch from '@tryfinch/finch-api';

const client = new Finch({
  accessToken: 'My Access Token',
});

async function main() {
  // Automatically fetches more pages as needed.
  for await (const employmentDataResponse of client.hris.employments.retrieveMany({
    requests: [{ individual_id: 'individual_id' }],
  })) {
    console.log(employmentDataResponse.individual_id);
  }
}

main();
{
  "responses": [
    {
      "individual_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "code": 123,
      "body": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "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": "<string>"
        },
        "income_history": [
          {
            "unit": "yearly",
            "amount": 123,
            "currency": "<string>",
            "effective_date": "<string>"
          }
        ],
        "custom_fields": [
          {
            "name": "<string>",
            "value": "<any>"
          }
        ],
        "source_id": "<string>",
        "work_id": "<string>"
      }
    }
  ]
}

Note: Income information is returned as reported by the provider. This may not always be annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc, depending on what information the provider returns.

Authorizations

Authorization
string
header
required

Please use your Access Token

Headers

Finch-API-Version
string
default:2020-09-17
required

Header used to specify the version for a given API request. Current version is 2020-09-17.

Content-Type
string
default:application/json
required

Used to indicate the original media type of the resource

Body

application/json

Individual Ids Request Body

requests
object[]
required

The array of batch requests.

Response

200 - application/json
Employment data
responses
object[]
required