---
title: "Get All ERP Customers"
method: GET
path: "/erp/customers"
tags: ["erp", "Customers"]
---

# Get All ERP Customers

`GET /erp/customers`

## Request

- Base URL: `https://production.trackstarhq.com`
- URL: `https://production.trackstarhq.com/erp/customers`
- Auth: none required

Returns all Customers for the ERP connection associated with the provided access token.

## Query parameters

- `page_token` string, nullable
- `limit` integer
- `ids` ErpCustomerIdsQueryParam
  - `in` string[], required: A comma-separated list of resource IDs. If provided, all other query params are ignored.
- `created_date` ErpCustomerCreatedDateQueryParam
  - `eq` string, date-time
  - `neq` string, date-time
  - `in` string[]: Comma-separated.
  - `nin` string[]: Comma-separated.
  - `gt` string, date-time
  - `gte` string, date-time
  - `lt` string, date-time
  - `lte` string, date-time
- `updated_date` ErpCustomerUpdatedDateQueryParam
  - `eq` string, date-time
  - `neq` string, date-time
  - `in` string[]: Comma-separated.
  - `nin` string[]: Comma-separated.
  - `gt` string, date-time
  - `gte` string, date-time
  - `lt` string, date-time
  - `lte` string, date-time
- `trackstar_created_date` ErpCustomerTrackstarCreatedDateQueryParam
  - `eq` string, date-time
  - `neq` string, date-time
  - `in` string[]: Comma-separated.
  - `nin` string[]: Comma-separated.
  - `gt` string, date-time
  - `gte` string, date-time
  - `lt` string, date-time
  - `lte` string, date-time
- `trackstar_updated_date` ErpCustomerTrackstarUpdatedDateQueryParam
  - `eq` string, date-time
  - `neq` string, date-time
  - `in` string[]: Comma-separated.
  - `nin` string[]: Comma-separated.
  - `gt` string, date-time
  - `gte` string, date-time
  - `lt` string, date-time
  - `lte` string, date-time
- `trackstar_tags` ErpCustomerTrackstarTagsFlatQueryParam
  - `contains` string[]: Comma-separated.
  - `not_contains` string[]: Comma-separated.
- `customer_number` ErpCustomerCustomerNumberQueryParam
  - `eq` string
  - `neq` string
  - `in` string[]: Comma-separated.
  - `nin` string[]: Comma-separated.
  - `contains` string
  - `not_contains` string
- `name` ErpCustomerNameQueryParam
  - `eq` string
  - `neq` string
  - `in` string[]: Comma-separated.
  - `nin` string[]: Comma-separated.
  - `contains` string
  - `not_contains` string
- `email` ErpCustomerEmailQueryParam
  - `eq` string
  - `neq` string
  - `in` string[]: Comma-separated.
  - `nin` string[]: Comma-separated.
  - `contains` string
  - `not_contains` string

## Headers

- `x-trackstar-api-key` string, required
- `x-trackstar-access-token` string, required

## Response `200`

Successful response

- ErpCustomersListEndpoint
  - `data` ErpCustomerApiItemSchema[], required
    - `id` string, required: The unique ID of the customer in the ERP.
    - `created_date` string, date-time, required: The date the customer was created.
    - `updated_date` string, date-time, required: The date the customer was last updated.
    - `customer_number` string, nullable, required: The user-facing identifier of the customer as assigned by the ERP.
    - `name` string, required: Display name of the customer (company name for businesses, full name for individuals).
    - `email` string, nullable, required: Primary email address recorded on the customer.
    - `phone` string, nullable, required: Primary phone number recorded on the customer.
    - `is_individual` boolean, nullable, required: Whether the customer is a person (B2C) rather than a company (B2B).
    - `active` boolean, nullable, required: Whether the customer is active in the ERP.
    - `billing_address` BillToAddress, required
      - `full_name` string, nullable, required
      - `address1` string, nullable, required
      - `address2` string, nullable, required
      - `address3` string, nullable, required
      - `city` string, nullable, required
      - `state` string, nullable, required
      - `postal_code` string, nullable, required
      - `country` string, nullable, required
    - `shipping_address` ShipToAddress, required
      - `full_name` string, nullable, required
      - `company` string, nullable, required
      - `address1` string, nullable, required
      - `address2` string, nullable, required
      - `address3` string, nullable, required
      - `city` string, nullable, required
      - `state` string, nullable, required
      - `postal_code` string, nullable, required
      - `country` string, nullable, required
      - `phone_number` string, nullable, required
      - `email_address` string, nullable, required
    - `custom_fields` object, required: Per-account custom fields defined on the customer. 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 customer 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
  - `next_token` string, nullable, required: See [pagination](/how-to-guides/about-the-api#pagination) for more details.
  - `total_count` integer, required: The number of items returned.

## Other responses

- `422`: Validation error

## Changes

- **2026-11-03** `f9f948f2a7b3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trackstarhq/apis/trackstar-api/changes/erp/customers/get.md)

---

[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)
