# SearchAddressInput

Input · GraphQL API

Input fields for searching by address.

## Fields

- `company` (`SearchTextInput`): Company name.
- `addressLine1` (`SearchTextInput`): The first line of the street address, such as street number, street name.
- `addressLine2` (`SearchTextInput`): Extended address information, such as apartment number or suite number.
- `firstName` (`SearchTextInput`): First name.
- `lastName` (`SearchTextInput`): Last name.
- `adminArea1` (`SearchTextInput`): Highest level subdivision, such as state, province or ISO-3166-2 subdivision.
- `adminArea2` (`SearchTextInput`): A city, town or village.
- `postalCode` (`SearchTextInput`): Postal code in any country's format, otherwise known as CAP, CEP, Eircode, NPA, PIN, PLZ, or ZIP code.
- `countryName` (`SearchTextInput`): Country code for the address.

## Used by

- [PaymentSearchInput](/braintree/graphql/reference/types/payment-search-input) — Input; billingAddress, shippingAddress
- [RefundSearchInput](/braintree/graphql/reference/types/refund-search-input) — Input; billingAddress, shippingAddress
- [TransactionSearchInput](/braintree/graphql/reference/types/transaction-search-input) — Input; billingAddress, shippingAddress

## GraphQL definition

```graphql
input SearchAddressInput {
  company: SearchTextInput
  addressLine1: SearchTextInput
  addressLine2: SearchTextInput
  firstName: SearchTextInput
  lastName: SearchTextInput
  adminArea1: SearchTextInput
  adminArea2: SearchTextInput
  postalCode: SearchTextInput
  countryName: SearchTextInput
}
```

---

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