# CustomerSearchInput

Input · GraphQL API

Input fields for searching for customers.

## Fields

- `id` (`SearchValueInput`): Find customers with an id or ids.
- `company` (`SearchTextInput`): Find customers with a given company or business name.
- `createdAt` (`SearchTimestampInput`): Find customers with a given created at time.
- `email` (`SearchTextInput`): Find customers with a given email address.
- `firstName` (`SearchTextInput`): Find customers with a given first name.
- `lastName` (`SearchTextInput`): Find customers with a given last name.
- `phoneNumber` (`SearchTextInput`): Find customers with a given phone number.

## Used by

- [customers](/braintree/graphql/reference/queries/customers) — Query; input
- [Search](/braintree/graphql/reference/types/search) — Object; customers(input)

## GraphQL definition

```graphql
input CustomerSearchInput {
  id: SearchValueInput
  company: SearchTextInput
  createdAt: SearchTimestampInput
  email: SearchTextInput
  firstName: SearchTextInput
  lastName: SearchTextInput
  phoneNumber: SearchTextInput
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)