---
updatedAt: 2026-09-14T21:37:31.000Z
agentTools:
  projectIndex: https://apidocs.ceretax.net/llms.txt
---

# List customers

Retrieves a paginated list of the customers associated with your account.

Results are ordered by `customerName` ascending unless the `sort` parameter is supplied. If `page` is beyond the last page of results, the last available page is returned. This endpoint supports filtering, sorting, and pagination.

This is for our ECM solution, which can be used as of 9/14/26

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "x-stoplight": {
    "id": "ecm7cust0api9x"
  },
  "info": {
    "title": "Customer API",
    "description": "CereTax API Documentation for creating, updating, and retrieving Exemption Certificate Management (ECM) customers, along with their contacts, addresses, DBAs, and alternate IDs.\n\nThis API also supports customer status changes and bulk customer import/update batches.\n\n**Authentication** - Every request must include your CereTax API key in the `x-api-key` header. The key identifies the calling client, and the client scope is derived from the key server-side. A `clientId` sent in a request payload is always ignored, and records belonging to other clients are never returned.\n\n**Response conventions** - Successful calls return `200` with a JSON body, or `204` when there is nothing to return. Client-actionable problems (validation failures, bad input, unknown query parameters, unsupported methods) are returned as `422`, never `400`, so that multiple problems can be reported together in the `errorMessages` array. Internal problems are returned as `500`. A `403` may also be returned by the API gateway itself when the API key is missing, malformed, or unauthorized for the endpoint.\n\n**Query parameters** - Query parameter names are matched case-insensitively, so `perPage`, `perpage`, and `PerPage` are equivalent. Values for `$filter`, `sort`, and `createdBy` are lowercased before use, so matches on those parameters are effectively case-insensitive. Any query parameter that is not documented for an endpoint is rejected with `422` rather than ignored.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://ecm.cert.ceretax.net",
      "description": "CERT"
    },
    {
      "url": "https://ecm.prod.ceretax.net",
      "description": "Production"
    }
  ],
  "paths": {
    "/customers": {
      "get": {
        "summary": "List customers",
        "operationId": "get-customers",
        "description": "Retrieves a paginated list of the customers associated with your account.\n\nResults are ordered by `customerName` ascending unless the `sort` parameter is supplied. If `page` is beyond the last page of results, the last available page is returned. This endpoint supports filtering, sorting, and pagination.",
        "tags": [
          "Customers"
        ],
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "example": 1
            },
            "in": "query",
            "name": "page",
            "description": "The page parameter defines the specific page of results you want returned in the response. This is a 1-based value. If the requested page is beyond the last page of results, the last available page is returned."
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            },
            "in": "query",
            "name": "perPage",
            "description": "The perPage parameter controls how many customer records are included in each page of the result set. The default is 10 and the max is 100."
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "active",
                "inactive"
              ],
              "default": "0",
              "example": "active"
            },
            "in": "query",
            "name": "status",
            "description": "Restricts results by customer status. Accepts either the numeric status ID or a status word.\n- 0-All non-archived statuses **(Default)**\n- 1-Active\n- 2-Inactive\n- active-Active\n- inactive-Inactive\n\nValid status values can also be retrieved from the [List customer statuses](https://apidocs.ceretax.net/reference/get-lookups-customerstatuses) endpoint."
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 255,
              "example": "contains(customerName,'acme') and statusId eq 1"
            },
            "in": "query",
            "name": "$filter",
            "description": "The $filter parameter can be used to construct a filter statement that will be used to search for specific customer records. The expression must be URL-encoded and may not exceed 255 characters. For more information on filtering, see [Filtering with CereTax APIs](https://apidocs.ceretax.net/docs/filtering-with-ceretax-apis).\n\n_Comparison operators: eq, ne, gt, ge, lt, le._\n\n_Logical operators: and, or, not._\n\n_String functions: contains, startswith, endswith, length, indexof, tolower, toupper, trim, concat._\n\n_Date and numeric functions: year, month, day, hour, minute, second, date, time, now, round, floor, ceiling._\n\n_Filterable fields: customerId, customerName, customerAccount, taxpayerId, systemOriginId, statusId, createdAt, and modifiedAt._\n\nChild collection fields (addresses, contacts, DBAs, and alternate IDs) are not filterable, and an unrecognized field name returns a `422`. The expression is lowercased before it is applied, so literal values are matched case-insensitively."
          },
          {
            "schema": {
              "type": "string",
              "example": "-createdAt,customerName"
            },
            "in": "query",
            "name": "sort",
            "description": "A comma separated list of fields used to sort the result set. Prefix a field with a hyphen ( **-** ) to sort that field in descending order. The default sort is `customerName` ascending.\n\n_Sortable fields: customerId, customerName, customerAccount, taxpayerId, systemOriginId, statusId, createdAt, createdBy, modifiedAt, modifiedBy, activeCertificatesCount, attnName, addressType, addressLine1, addressLine2, city, region, postalCode, country, contactName, phoneNumber, faxNumber, emailAddress, dbaName, idType, idValue, idExpirationDate, and stateOfIssue._\n\nSorting on a child collection field orders results by the first related record. An unrecognized field name returns a `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/customerReadResponse"
                },
                "examples": {
                  "Customer List Example": {
                    "value": {
                      "page": 1,
                      "pages": 4,
                      "perPage": 10,
                      "totalCount": 37,
                      "results": [
                        {
                          "customerId": 15042,
                          "customerName": "Acme Manufacturing",
                          "customerAccount": "ACCT-10041",
                          "taxpayerId": "123456789",
                          "systemOriginId": "ERP-9931",
                          "statusId": 1,
                          "createdAt": "2026-01-14T09:12:03Z",
                          "modifiedAt": "2026-02-02T16:45:51Z",
                          "activeCertificatesCount": 3,
                          "contacts": [
                            {
                              "contactId": 881,
                              "contactName": "Dana Reyes",
                              "phoneNumber": "5125550134",
                              "emailAddress": "dana.reyes@example.com",
                              "faxNumber": "5125550199",
                              "preferred": true
                            }
                          ],
                          "addresses": [
                            {
                              "addressId": 4410,
                              "attnName": "Accounts Payable",
                              "addressType": 1,
                              "addressLine1": "1200 Congress Ave",
                              "addressLine2": "Suite 400",
                              "city": "Austin",
                              "region": "TX",
                              "postalCode": "78701",
                              "country": "USA"
                            }
                          ],
                          "dbas": [
                            {
                              "customerDbaId": 733,
                              "dbaName": "Acme Mfg",
                              "isPrimary": true
                            }
                          ],
                          "alternateIds": [
                            {
                              "ID": 2201,
                              "idType": 1,
                              "idValue": "TX-4429188",
                              "idExpirationDate": "2027-12-31",
                              "stateOfIssue": "TX"
                            }
                          ],
                          "exposureZones": [
                            {
                              "exposureZoneId": 91,
                              "exposureZone": "Texas"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "204": {
            "description": "No customers matched the request."
          },
          "422": {
            "description": "The request could not be processed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                }
              }
            }
          },
          "500": {
            "description": "An internal error occurred.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "customerReadResponse": {
        "title": "customerReadResponseModel",
        "type": "object",
        "description": "The paginated envelope returned by the customer read endpoints.",
        "x-examples": {
          "example-1": {
            "page": 1,
            "pages": 4,
            "perPage": 10,
            "totalCount": 37,
            "results": [
              {
                "customerId": 15042,
                "customerName": "Acme Manufacturing",
                "customerAccount": "ACCT-10041",
                "statusId": 1
              }
            ]
          }
        },
        "properties": {
          "page": {
            "type": "integer",
            "description": "The specific page of results returned. This may be lower than the page requested if the request overran the result set.",
            "example": 1
          },
          "pages": {
            "type": "integer",
            "description": "The number of pages the total results span.",
            "example": 4
          },
          "perPage": {
            "type": "integer",
            "description": "The number of results per page.",
            "example": 10
          },
          "totalCount": {
            "type": "integer",
            "description": "The total number of customers matching the filter criteria (if any).",
            "example": 37
          },
          "results": {
            "type": "array",
            "description": "The list of customers matching the request.",
            "items": {
              "$ref": "#/components/schemas/customer"
            }
          }
        }
      },
      "customer": {
        "title": "customerModel",
        "type": "object",
        "description": "A customer as returned by CereTax.",
        "properties": {
          "customerId": {
            "type": "integer",
            "format": "int64",
            "description": "The unique CereTax-generated ID for this customer.",
            "example": 15042,
            "readOnly": true
          },
          "customerName": {
            "type": "string",
            "description": "The name of the customer.",
            "example": "Acme Manufacturing",
            "nullable": true
          },
          "customerAccount": {
            "type": "string",
            "description": "The customer reference code from your billing, accounting, and/or ecommerce system for this customer.",
            "example": "ACCT-10041"
          },
          "taxpayerId": {
            "type": "string",
            "description": "The customer's taxpayer identification number.",
            "example": "123456789"
          },
          "systemOriginId": {
            "type": "string",
            "description": "The identifier of this customer in your source system.",
            "example": "ERP-9931"
          },
          "statusId": {
            "$ref": "#/components/schemas/statusId"
          },
          "userId": {
            "type": "integer",
            "description": "The ID of the user who last changed this customer.",
            "example": 42
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date the customer record was created.",
            "readOnly": true
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date the customer record was last modified.",
            "readOnly": true
          },
          "activeCertificatesCount": {
            "type": "integer",
            "description": "The number of currently active exemption certificates for this customer.",
            "example": 3,
            "readOnly": true
          },
          "contacts": {
            "type": "array",
            "description": "The list of contacts associated with this customer.",
            "items": {
              "$ref": "#/components/schemas/contact"
            }
          },
          "addresses": {
            "type": "array",
            "description": "The list of addresses associated with this customer.",
            "items": {
              "$ref": "#/components/schemas/address"
            }
          },
          "dbas": {
            "type": "array",
            "description": "The list of \"doing business as\" names associated with this customer.",
            "items": {
              "$ref": "#/components/schemas/dba"
            }
          },
          "alternateIds": {
            "type": "array",
            "description": "The list of alternate identifiers associated with this customer.",
            "items": {
              "$ref": "#/components/schemas/alternateId"
            }
          },
          "exposureZones": {
            "type": "array",
            "description": "The list of jurisdictions in which this customer has exemption exposure.",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/exposureZone"
            }
          }
        }
      },
      "contact": {
        "title": "contactModel",
        "type": "object",
        "description": "A contact associated with a customer. At least one contact is required when a customer is created.\n\nIf no contact is flagged as `preferred`, the first contact in the list is flagged automatically. Flagging more than one contact as preferred is rejected.",
        "properties": {
          "contactId": {
            "type": "integer",
            "description": "The ID of an existing contact. Omit this field to add a new contact. When it is supplied, the matching contact is updated, and an ID that does not belong to the customer is rejected.",
            "example": 881
          },
          "contactName": {
            "type": "string",
            "description": "The name of the contact.",
            "example": "Dana Reyes",
            "maxLength": 50
          },
          "emailAddress": {
            "type": "string",
            "format": "email",
            "description": "The email address of the contact.",
            "example": "dana.reyes@example.com",
            "maxLength": 255
          },
          "phoneNumber": {
            "type": "string",
            "description": "The phone number of the contact. This is an optional field. The value accepts an optional leading plus sign ( **+** ) followed by digits, spaces, hyphens, periods, and parentheses, and must contain 10 to 15 digits. The value is stored digits-only.",
            "example": "+1 (512) 555-0134"
          },
          "faxNumber": {
            "type": "string",
            "description": "The fax number of the contact. This is an optional field and follows the same format rules as `phoneNumber`.",
            "example": "5125550199"
          },
          "preferred": {
            "type": "boolean",
            "description": "Indicates if this is the preferred contact for the customer. At most one contact per customer may be set to true.",
            "default": false,
            "example": true
          }
        },
        "required": [
          "contactName",
          "emailAddress"
        ]
      },
      "address": {
        "title": "addressModel",
        "type": "object",
        "description": "An address associated with a customer. Addresses are optional, but each address that is supplied must be complete.",
        "properties": {
          "addressId": {
            "type": "integer",
            "description": "The ID of an existing address. Omit this field to add a new address. When it is supplied, the matching address is updated, and an ID that does not belong to the customer is rejected.",
            "example": 4410
          },
          "addressType": {
            "type": "integer",
            "description": "The type of address.\n\nValid values for this field and address type descriptions can be retrieved from the [List address types](https://apidocs.ceretax.net/reference/get-lookups-addresstypes) endpoint.",
            "example": 1
          },
          "attnName": {
            "type": "string",
            "description": "The attention name for this address.",
            "example": "Accounts Payable",
            "maxLength": 255
          },
          "addressLine1": {
            "type": "string",
            "description": "Address line 1.",
            "example": "1200 Congress Ave",
            "maxLength": 255
          },
          "addressLine2": {
            "type": "string",
            "description": "Address line 2.",
            "example": "Suite 400",
            "maxLength": 100
          },
          "city": {
            "type": "string",
            "description": "Address city.",
            "example": "Austin",
            "maxLength": 100
          },
          "region": {
            "type": "string",
            "description": "Address state, province, or subdivision. The value must be a valid ISO 3166-2 subdivision code or name for the given `country`.",
            "example": "TX",
            "maxLength": 100
          },
          "postalCode": {
            "type": "string",
            "description": "Address postal code. The value is validated against the format expected for the given `country`, including US ( **12345** or **12345-6789** ), Canadian ( **A1A 1A1** ), and UK formats, and a generic 3 to 10 character alphanumeric pattern elsewhere.",
            "example": "78701",
            "maxLength": 20
          },
          "country": {
            "type": "string",
            "description": "The valid 2 or 3-character country abbreviation for the country associated with the address. The value is normalized to its ISO 3166-1 alpha-3 code when it is saved and is returned as alpha-3.",
            "example": "USA",
            "maxLength": 3
          }
        },
        "required": [
          "addressType",
          "addressLine1",
          "city",
          "region",
          "postalCode",
          "country"
        ]
      },
      "dba": {
        "title": "dbaModel",
        "type": "object",
        "description": "A \"doing business as\" name associated with a customer.\n\nIf no DBA is flagged as `isPrimary`, the first DBA in the list is flagged automatically. Flagging more than one DBA as primary is rejected.",
        "properties": {
          "customerDbaId": {
            "type": "integer",
            "description": "The ID of an existing DBA. Omit this field to add a new DBA. When it is supplied, the matching DBA is updated, and an ID that does not belong to the customer is rejected.",
            "example": 733
          },
          "dbaName": {
            "type": "string",
            "description": "The \"doing business as\" name.",
            "example": "Acme Mfg",
            "maxLength": 255
          },
          "isPrimary": {
            "type": "boolean",
            "description": "Indicates if this is the primary DBA for the customer. At most one DBA per customer may be set to true.",
            "default": false,
            "example": true
          }
        },
        "required": [
          "dbaName"
        ]
      },
      "alternateId": {
        "title": "alternateIdModel",
        "type": "object",
        "description": "An alternate identifier for a customer, such as a state tax registration number.",
        "properties": {
          "ID": {
            "type": "integer",
            "description": "The ID of an existing alternate ID record. Omit this field to add a new alternate ID. When it is supplied, the matching record is updated, and an ID that does not belong to the customer is rejected. Note that this property name is uppercase.",
            "example": 2201
          },
          "idType": {
            "type": "integer",
            "description": "The type of alternate identifier.\n\nValid values for this field and alternate ID type descriptions can be retrieved from the [List alternate ID types](https://apidocs.ceretax.net/reference/get-lookups-alternateidtypes) endpoint.",
            "example": 1
          },
          "idValue": {
            "type": "string",
            "description": "The value of the alternate identifier.",
            "example": "TX-4429188",
            "maxLength": 255
          },
          "idExpirationDate": {
            "type": "string",
            "description": "The expiration date of the alternate identifier. Format is YYYY-MM-DD.",
            "example": "2027-12-31"
          },
          "stateOfIssue": {
            "type": "string",
            "description": "The two character abbreviation of the state or province that issued the alternate identifier.",
            "example": "TX",
            "maxLength": 2
          }
        },
        "required": [
          "idType",
          "idValue"
        ]
      },
      "exposureZone": {
        "title": "exposureZoneModel",
        "type": "object",
        "description": "A jurisdiction in which a customer has exemption exposure. This object is read-only.",
        "properties": {
          "exposureZoneId": {
            "type": "integer",
            "description": "The ID of the exposure zone.",
            "example": 91
          },
          "exposureZone": {
            "type": "string",
            "description": "The name of the exposure zone.",
            "example": "Texas"
          }
        }
      },
      "statusId": {
        "title": "statusId",
        "type": "integer",
        "description": "The status of the customer.\n- 1-Active\n- 2-Inactive\n- 3-Archived\n\nOnly 1 and 2 may be set through the customer status endpoints. 3 is set by [Archive customer](https://apidocs.ceretax.net/reference/delete-customers-id).",
        "enum": [
          1,
          2,
          3
        ],
        "example": 1
      },
      "errorResponse": {
        "title": "errorResponseModel",
        "type": "object",
        "description": "The envelope returned for every `422` and `500` response. Errors are always returned in an array so that multiple problems can be reported from a single call.",
        "x-examples": {
          "example-1": {
            "errorMessages": [
              {
                "code": 2003,
                "type": "Input",
                "message": "Invalid Input Value",
                "summary": "One or more of the fields you provided had an invalid value.",
                "errors": {
                  "customerName": "required"
                }
              }
            ]
          }
        },
        "properties": {
          "errorMessages": {
            "type": "array",
            "description": "The list of errors associated with this request. See [Status and Error Codes](https://apidocs.ceretax.net/reference/status-and-error-codes) for a complete list of possible errors.",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "integer",
                  "description": "The CereTax error code.\n- 1001-Invalid API key\n- 2003-Invalid input value\n- 2021-Record not found\n- 4001-Invalid request format\n- 9000-Internal error\n",
                  "example": 2003
                },
                "type": {
                  "type": "string",
                  "description": "Specifies the type of error. Only `Internal` produces a `500` response; every other type produces a `422`.",
                  "enum": [
                    "Authentication",
                    "Input",
                    "Situs",
                    "Formatting",
                    "Transaction",
                    "Internal"
                  ],
                  "example": "Input"
                },
                "message": {
                  "type": "string",
                  "description": "A short description of the error.",
                  "example": "Invalid Input Value"
                },
                "summary": {
                  "type": "string",
                  "description": "A more detailed description of the error.",
                  "example": "One or more of the fields you provided had an invalid value."
                },
                "help": {
                  "type": "string",
                  "description": "An optional link or hint for resolving the error."
                },
                "errors": {
                  "type": "object",
                  "description": "The specific fields or values that triggered the error (when applicable), keyed by field path. Collection members are indexed, for example `contacts[0].emailAddress`.",
                  "additionalProperties": {
                    "type": "string"
                  },
                  "example": {
                    "customerName": "required"
                  }
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```