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

# Erp vendor created

`POST erp-vendor.created` (webhook)

When a Vendor is created.

## Payload

- union
  - ErpVendorsCreatedFullWebhook
    - `connection_id` string, required
    - `data` ErpVendorApiItemSchema, required
      - `id` string, required: The unique ID of the vendor in the ERP.
      - `created_date` string, date-time, required: The date the vendor was created.
      - `updated_date` string, date-time, required: The date the vendor was last updated.
      - `vendor_number` string, nullable, required: The user-facing identifier of the vendor as assigned by the ERP.
      - `name` string, required: Display name of the vendor (company name for businesses, full name for individuals).
      - `email` string, nullable, required: Primary email address recorded on the vendor.
      - `phone` string, nullable, required: Primary phone number recorded on the vendor.
      - `is_individual` boolean, nullable, required: Whether the vendor is a person rather than a company.
      - `active` boolean, nullable, required: Whether the vendor is active in the ERP.
      - `custom_fields` object, required: Per-account custom fields defined on the vendor. 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 vendor 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-vendor.created', required
    - `integration_name` string, required
    - `integration_type` string, required
  - ErpVendorsCreatedTruncatedWebhook
    - `connection_id` string, required
    - `data` ErpVendorsCreatedTruncatedData, required
      - `id` string: The record this event is about. Absent on connection webhooks, which carry dates rather than a row.
    - `event_type` 'erp-vendor.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)
