v1

latestOpenAPI 3.0.22026-08-061464031.4 MB
Employment Metrics

Retrieve employment metrics

Retrieve employment metrics for an individual.

Note: Before requesting employment metrics, make sure to first make a <a href="https://developers.belvo.com/reference/retrieveemploymentrecorddetails" target="_blank">POST Retrieve employment record details</a> request.

post/api/employment-metrics/

Query parameters

omitstring

Omit certain fields from being returned in the response. For more information, see our <a href="https://developers.belvo.com/docs/searching-and-filtering" target="_blank">Filtering responses</a> DevPortal article.

fieldsstring

Return only the specified fields in the response. For more information, see our <a href="https://developers.belvo.com/docs/searching-and-filtering" target="_blank">Filtering responses</a> DevPortal article.

Request body

linkstring uuid required

The link.id you want to retrieve information for.

reference_datestring date

The date until which you want the employment metrics to be calculated, in YYYY-MM-DD format. For example, if you do not want to calculate employment metrics for all of 2023, the add 2022-12-31 as the reference_date.

If you do not provide a reference_date, we perform calcualtions up until the date you make the request.

Note: All calculations will be relative to this date.

save_databoolean

Indicates whether or not to persist the data in Belvo. By default, this is set to true and we return a 201 Created response.

When set to false, the data won't be persisted and we return a 200 OK response.

Example request

{
  "link": "c81a1dea-6dd6-4999-8b9f-541ee8197058",
  "reference_date": "2023-03-01",
  "save_data": true
}

Response

Ok

idstring uuid required

Belvo's unique identifier for the current item.

linkstring uuid nullable required

The link.id the data belongs to.

collected_atstring date-time required

The ISO-8601 timestamp when the data point was collected.

created_atstring date-time required

The ISO-8601 timestamp of when the data point was created in Belvo's database.

updated_atstring date-time nullable required

The ISO-8601 timestamp of when the employment metrics calculation was last updated.

reference_datestring date nullable required

The reference_date your provided in your request. If you didn't provide one, this field will return null, indicating that the calculations are performed up until the date of the request.

Note: All calculations are relative to this date.

ageinteger required

The age of the individual.

current_status'EMPLOYED' | 'RETIRED' | 'UNEMPLOYED' | 'null' required

Indicates the employment status of the individual. We return one of the following responses:

  • EMPLOYED
  • RETIRED
  • UNEMPLOYED
  • null
current_employer_countinteger nullable required

The number of employers the individual has right now.

base_salary_lastnumber float nullable required

The user's latest base salary. If current_status is EMPLOYED, this is the user's current base salary.

weeks_employed_last_jobnumber float nullable required

The number of weeks the user was employed in their last job. If current_status is EMPLOYED, then this field indicates the number of weeks the user has been employed with his current job.

weeks_since_last_jobnumber float nullable required

The number of weeks since their last job. If the value of this field is 0, this indicates that the user is currently employed.

weeks_employed_totalnumber float nullable required

The total number of weeks the user has been employed, according to the institution.

Note:

In the case that the user is employed at two or more places at the same time, we still calculate those weeks as one week. For example, if a user has three concurrent jobs for a month, this is calculated as 4 weeks.

weeks_with_multiple_employersnumber float nullable required

The number of the weeks that the individual has had more than one employer at the same time.

employer_countinteger nullable required

The total number of employers the user has had. Useful to indicate employment stability over the course of their lifetime.

unique_employer_countinteger nullable required

The number of unique employers that the individual has had.

Note:

If the user left one company and returned, for example, six months later to the same company, this is counted as one employer.

employers_per_yearnumber float nullable required

Number of employers per year. Useful to indicate employment stability over the course of a year.

Note:

If the user left one company and returned, for example, six months later to the same company, this is counted as one employer.

weeks_between_jobsnumber float nullable required

The total number of weeks the individual was unemployed.

max_weeks_between_jobsnumber float nullable required

The maximum number of weeks that the individual was unemployed.

increases_last_jobinteger nullable required

The total number of salary increases the user had in their last job. If current_status is EMPLOYED, this refers to the user's current job.

Note:

For all salary increases or decreases, we only take into account those where the change in salary is greater than 2%.

decreases_last_jobinteger nullable required

The total number of salary increases the user had in their last job. If current_status is EMPLOYED, this refers to the user's current job.

increases_after_changeinteger nullable required

The total number of salary increases between the individual's penultimate job and the last (or current) job.

decreases_after_changeinteger nullable required

The total number of salary decreases between the individual's penultimate job and the last (or current) job.

increases_overallinteger nullable required

The total number of salary increases throughout the individual's working career.

decreases_overallinteger nullable required

The total number of salary decreases throughout the individual's working career.

increases_1yinteger nullable required

The total number of salary increases throughout the individual's last year (YTD).

decreases_1yinteger nullable required

The total number of salary decreases throughout the individual's last year (YTD).

increases_3yinteger nullable required

The total number of salary increases throughout the individual's last three years.

Note:

If the individual's working career is less than three years, we return null.

decreases_3yinteger nullable required

The total number of salary decreases throughout the individual's last three years.

Note:

If the individual's working career is less than three years, we return null.

increases_5yinteger nullable required

The total number of salary increases throughout the individual's last five years.

Note:

If the individual's working career is less than five years, we return null.

decreases_5yinteger nullable required

The total number of salary decreases throughout the individual's last five years.

Note:

If the individual's working career is less than five years, we return null.

yearly_change_1ynumber float nullable required

The individual's salary percentage change for the last year (YTD).

yearly_change_3ynumber float nullable required

The individual's salary percentage change for the last three years.

Note:

If the individual's working career is less than three years, we return null.

yearly_change_5ynumber float nullable required

The individual's salary percentage change for the last five years.

Note:

If the individual's working career is less than five years, we return null.

min_monthly_salary_1ynumber float nullable required

The individual's minimum monthly salary for the last year.

min_monthly_salary_3ynumber float nullable required

The individual's minimum monthly salary for the last three years.

min_monthly_salary_5ynumber float nullable required

The individual's minimum monthly salary for the last five years.

average_monthly_salary_1ynumber float nullable required

The individual's average monthly salary for the last year.

average_monthly_salary_3ynumber float nullable required

The individual's average monthly salary for the last three years.

average_monthly_salary_5ynumber float nullable required

The individual's average monthly salary for the last five years.

max_monthly_salary_1ynumber float nullable required

The individual's maximum monthly salary for the last year.

max_monthly_salary_3ynumber float nullable required

The individual's maximum monthly salary for the last three years.

max_monthly_salary_5ynumber float nullable required

The individual's maximum monthly salary for the last five years.

Example response

{
  "id": "0d3ffb69-f83b-456e-ad8e-208d0998d71d",
  "link": "30cb4806-6e00-48a4-91c9-ca55968576c8",
  "collected_at": "2022-02-09T08:45:50.406032Z",
  "created_at": "2022-02-09T08:45:50.406032Z",
  "updated_at": "2023-08-30T15:31:35.728607Z",
  "reference_date": "2023-06-01",
  "age": 32,
  "current_status": "EMPLOYED",
  "current_employer_count": 1,
  "base_salary_last": 42.17,
  "weeks_employed_last_job": 327.1429,
  "weeks_employed_total": 148.2,
  "employer_count": 14,
  "unique_employer_count": 3,
  "employers_per_year": 0.6326,
  "weeks_between_jobs": 687.2865,
  "max_weeks_between_jobs": 249.8571,
  "min_monthly_salary_1y": 3402.88,
  "min_monthly_salary_3y": 3402.88,
  "min_monthly_salary_5y": 3402.88,
  "average_monthly_salary_1y": 3402.88,
  "average_monthly_salary_3y": 3402.88,
  "average_monthly_salary_5y": 3402.88,
  "max_monthly_salary_1y": 3402.88,
  "max_monthly_salary_3y": 3402.88,
  "max_monthly_salary_5y": 3402.88
}