---
title: "Erp employee created"
method: POST
path: "erp-employee.created"
---

# Erp employee created

`POST erp-employee.created` (webhook)

When an Employee is created.

## Payload

- union
  - ErpEmployeesCreatedFullWebhook
    - `connection_id` string, required
    - `data` ErpEmployeeApiItemSchema, required
      - `id` string, required: The unique ID of the employee in the ERP.
      - `created_date` string, date-time, required: The date the employee was created.
      - `updated_date` string, date-time, required: The date the employee was last updated.
      - `employee_number` string, nullable, required: The user-facing identifier of the employee as assigned by the ERP.
      - `name` string, required: Display name of the employee (firstname + lastname, or entityid fallback).
      - `first_name` string, nullable, required: Employee's first name.
      - `last_name` string, nullable, required: Employee's last name.
      - `email` string, nullable, required: Primary email address recorded on the employee.
      - `phone` string, nullable, required: Primary phone number recorded on the employee.
      - `title` string, nullable, required: Job title of the employee.
      - `active` boolean, nullable, required: Whether the employee is active in the ERP.
      - `supervisor_id` string, nullable, required: Internal ID of the employee's supervisor.
      - `approver_id` string, nullable, required: Internal ID of the employee's general approver.
      - `location_id` string, nullable, required: Internal ID of the employee's primary location.
      - `subsidiary_id` string, nullable, required: Internal ID of the employee's subsidiary.
      - `purchase_order_limit` number, nullable, required: Maximum purchase order amount this employee can author. Units vary by account configuration.
      - `purchase_order_approver_id` string, nullable, required: Internal ID of the employee who approves this employee's purchase orders.
      - `purchase_order_approval_limit` number, nullable, required: Maximum purchase order amount this employee can approve for others. Units vary by account configuration.
      - `expense_limit` number, nullable, required: Maximum expense report amount for this employee. Units vary by account configuration.
      - `custom_fields` object, required: Per-account custom fields defined on the employee. Keys are the field names as defined in the ERP; each value carries the raw value, its declared type, and a human-readable label.
      - `external_system_url` string, nullable, required: URL link to the employee in the external system (WMS/Freight etc).
      - `trackstar_tags` unknown[], nullable, required: A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.
        - unknown
      - `additional_fields` object, required: Integration-specific fields
      - `trackstar_created_date` string, date-time, required
      - `trackstar_updated_date` string, date-time, required
    - `event_type` 'erp-employee.created', required
    - `integration_name` string, required
    - `integration_type` string, required
  - ErpEmployeesCreatedTruncatedWebhook
    - `connection_id` string, required
    - `data` ErpEmployeesCreatedTruncatedData, required
      - `id` string: The record this event is about. Absent on connection webhooks, which carry dates rather than a row.
    - `event_type` 'erp-employee.created', required
    - `integration_name` string, required
    - `integration_type` string, required
    - `data_truncated` boolean, required: Always true on this shape. The event was too large to send in full, so `data` holds only the `id` and `previous_attributes` is empty.
    - `data_url` string, required: Called with your usual API key, it returns a download link for this event exactly as it would have been delivered.

## Acknowledgement `200`

Success

---

[API](https://skmtc.dev/trackstarhq/apis/trackstar-api.md) - [All operations](https://skmtc.dev/trackstarhq/apis/trackstar-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trackstarhq/apis/trackstar-api/revisions/08647f790594?raw)
