Employee Data Representation

This section outlines the data model for representing employee information in Lattice. It includes unique Lattice-specific data types and a detailed breakdown of the fields involved.

Unique Lattice Data Types

The following custom data types are used in the employee representation payload:

  • SingleSelect: An object containing a guid (globally unique identifier) and a human-readable label. This structure mirrors an HTML <select> element for single options.
  • MultiSelect: An array of SingleSelect objects, representing multiple selectable options (e.g., roles or departments). This structure mirrors an HTML <select> element for multiple options.
  • Relationship: An object containing the guid, name, and email of another employee, often used to represent managerial relationships.

These custom types ensure consistency with Lattice's platform and data model, such as mapping employee relationships and employment details to visual components like org charts.

Sample Payload

Here’s an example of a typical employee data payload in JSON format:

{
  "id": "f5bbeafa-9875-11e5-8627-9397a5211a96",
  "personal": {
    "birthdate": "2015-12-01",
    "company_employee_id": null,
    "first_name": "Bertram",
    "last_name": "Gilfoyle"
  },
  "contact_information": {
    "personal_email": "[email protected]",
    "phone_number": "555-344-6729",
    "work_email": "[email protected]"
  },
  "employment_details": {
    "employment_status": "active",
    "employment_type": {
      "id": "6fb8f570-e614-4f6c-8380-9c009789e037",
      "label": "Full-time"
    },
    "start_date": "2020-04-20",
    "termination_date": null,
    "termination_reason": null,
    "termination_type": null
  },
  "role_details": {
    "department": {
      "id": "aa76e6d8-75e5-11ef-af35-cfd05d00931c",
      "label": "Engineering"
    },
    "manager": {
      "id": "f5a1e4e8-9875-11e5-8626-3b75342d1f06",
      "email": "[email protected]",
      "name": "Richard Hendricks"
    },
    "effective_at": null,
    "job_title": "Systems Architect, Co-CTO"
  },
  "pay_types": {
    "base_pay_amount": 250000,
    "base_pay_currency": {
      "id": "ea7c75dc-27d3-40d2-9d62-eba14c6bbacd",
      "label": "USD"
    },
    "base_pay_effective_at": "2020-04-20",
    "base_pay_schedule": {
      "id": "b2a9fd55-e4f5-4500-9b3b-0af90c696842",
      "label": "Every 2 weeks"
    },
    "base_pay_payment_type": {
      "id": "5f395b3c-0f4b-4750-b6c4-7f1763765aaa",
      "label": "Salary"
    }
  }
}

Field Breakdown

Below is a detailed breakdown of each field in the payload:

id

  • Data type: string
  • Description: A unique identifier for the employee in Lattice.
  • Example: "f5bbeafa-9875-11e5-8627-9397a5211a96"

personal

Contains personal information about the employee.

  • birthdate
    • Data type: ISO8601Date
    • Description: The employee’s date of birth.
    • Example: "2015-12-01"
  • company_employee_id
    • Data type: string
    • Description: The ID assigned to the employee within the company.
    • Example: null
  • first_name
    • Data type: string
    • Description: The employee's first name.
    • Example: "Bertram"
  • last_name
    • Data type: string
    • Description: The employee's last name.
    • Example: "Gilfoyle"

contact_information

Contains the employee’s contact details.

  • personal_email
    • Data type: string
    • Description: The employee’s personal email address.
    • Example: [email protected]
  • phone_number
    • Data type: string
    • Description: The employee's phone number.
    • Example: "555-344-6729"
  • work_email
    • Data type: string
    • Description: The employee’s work email address.
    • Example: "[email protected]"

employment_details

Contains employment-specific information about the employee.

  • employment_status

    • Data type: string
    • Description: The current employment status.
    • Example: "active"
  • employment_type

    • Data type: SingleSelect
    • Description: The type of employment (e.g., Full-time).
    • Example:
    {
      "id": "6fb8f570-e614-4f6c-8380-9c009789e037",
      "label": "Full-time"
    }
    
  • start_date

    • Data type: ISO8601Date
    • Description: The employee's start date.
    • Example: "2020-04-20"
  • termination_date

    • Data type: ISO8601Date
    • Description: The date of employment termination, if applicable.
    • Example: null
  • termination_reason

    • Data type: SingleSelect
    • Description: The reason for employment termination.
    • Possible values:
      • Career Break
      • Career Development
      • Compensation
      • Culture
      • And more...
    • Example: null
  • termination_type

    • Data type: SingleSelect
    • Description: Whether the termination was voluntary or involuntary.
    • Possible values:
      • Voluntary
      • Involuntary
    • Example: null

role_details

Contains details related to the employee’s role within the organization.

  • department

    • Data type: SingleSelect
    • Description: The department the employee belongs to.
    • Example:
    {
      "id": "aa76e6d8-75e5-11ef-af35-cfd05d00931c",
      "label": "Engineering"
    }
    
  • manager

    • Data type: Relationship
    • Description: The employee's manager.
    • Example:
    {
      "id": "f5a1e4e8-9875-11e5-8626-3b75342d1f06",
      "email": "[email protected]",
      "name": "Richard Hendricks"
    }
    
  • effective_at

    • Data type: ISO8601Date
    • Description: The effective date of the role.
    • Example: null
  • job_title

    • Data type: string
    • Description: The employee's job title.
    • Example: "Systems Architect, Co-CTO"

pay_types

Contains information related to employee compensation.

  • base_pay_amount
    • Data type: number
    • Description: The base pay amount in the specified currency.
    • Example: 250000
  • base_pay_currency

    • Data type: SingleSelect
    • Description: The currency in which the employee is paid.
    • Example:
    {
      "id": "ea7c75dc-27d3-40d2-9d62-eba14c6bbacd",
      "label": "USD"
    }
  • base_pay_effective_at
    • Data type: ISO8601Date
    • Description: The date when the base pay became effective.
    • Example: "2020-04-20"
  • base_pay_schedule
    • Data type: SingleSelect
    • Description: The frequency at which the employee is paid.
    • Possible values:
      • Daily
      • Weekly
      • Every 2 weeks
      • Twice monthly
      • Monthly
    • Example: "Every 2 weeks"
  • base_pay_payment_type
    • Data type: SingleSelect
    • Description: Indicates whether the employee is paid a salary or hourly rate.
    • Possible values:
      • Hourly
      • Salary
    • Example: "Salary"