# AddressInput

Input · GraphQL API

Input fields for an Address.

## Fields

- `company` (`String`): Company name. 255 character maximum.
- `streetAddress` (`String`): The street address. 255 character maximum.
- `addressLine1` (`String`): The first line of the street address, such as street number, street name. 255 character maximum.
- `extendedAddress` (`String`): Extended address information, such as an apartment or suite number. 255 character maximum.
- `addressLine2` (`String`): Extended address information, such as apartment number or suite number. 255 character maximum.
- `firstName` (`String`): First name. 255 character maximum.
- `lastName` (`String`): Last name. 255 character maximum.
- `locality` (`String`): Locality/city. 255 character maximum.
- `adminArea2` (`String`): A city, town or village. 255 character maximum.
- `region` (`String`): State or province. 255 character maximum.
- `adminArea1` (`String`): Highest level subdivision, such as state, province or ISO-3166-2 subdivision. 255 character maximum.
- `postalCode` (`String`): Postal code in any country's format, otherwise known as CAP, CEP, Eircode, NPA, PIN, PLZ, or ZIP code. Nine alphanumeric characters maximum, may also contain spaces and hyphens. *Required in the shipping address for Level 3 processing*.
- `countryCode` (`CountryCode`): Country code for the address. *Required in the shipping address for Level 3 processing*.
- `phone` (`PhoneInput`): Phone associated with the address.
- `countryCodeAlpha3` (`String`) — deprecated since 2017-12-04: Country code for the address in ISO 3166-1 alpha-3 format.
- `countryCodeAlpha2` (`String`) — deprecated since 2017-11-14: Country code for the address in ISO 3166-1 alpha-2 format.
- `countryCodeNumeric` (`String`) — deprecated since 2017-11-14: Country code for the address in ISO 3166-1 numeric format.
- `countryName` (`String`) — deprecated since 2017-11-14: Country name for the address.

## Used by

- [CreatePayPalBillingAgreementInput](/braintree/graphql/reference/types/create-pay-pal-billing-agreement-input) — Input; shippingAddress
- [CreatePayPalOneTimePaymentInput](/braintree/graphql/reference/types/create-pay-pal-one-time-payment-input) — Input; shippingAddress
- [CreditCardInput](/braintree/graphql/reference/types/credit-card-input) — Input; billingAddress
- [CreditCardTransactionOptionsInput](/braintree/graphql/reference/types/credit-card-transaction-options-input) — Input; billingAddress
- [IndustryFlightInput](/braintree/graphql/reference/types/industry-flight-input) — Input; ticketIssuerAddress
- [SubMerchantDetailsInput](/braintree/graphql/reference/types/sub-merchant-details-input) — Input; address
- [TransactionRiskEvaluateInput](/braintree/graphql/reference/types/transaction-risk-evaluate-input) — Input; billingAddress, shippingAddress
- [TransactionShippingInput](/braintree/graphql/reference/types/transaction-shipping-input) — Input; shippingAddress
- [UpdateCreditCardBillingAddressInput](/braintree/graphql/reference/types/update-credit-card-billing-address-input) — Input; billingAddress
- [UpdatePayPalOneTimePaymentInput](/braintree/graphql/reference/types/update-pay-pal-one-time-payment-input) — Input; shippingAddress
- [VaultCreditCardInput](/braintree/graphql/reference/types/vault-credit-card-input) — Input; billingAddress

## GraphQL definition

```graphql
input AddressInput {
  company: String
  streetAddress: String
  addressLine1: String
  extendedAddress: String
  addressLine2: String
  firstName: String
  lastName: String
  locality: String
  adminArea2: String
  region: String
  adminArea1: String
  postalCode: String
  countryCode: CountryCode
  phone: PhoneInput
  countryCodeAlpha3: String @deprecated(reason: "This field is included for supporting legacy clients. Please use `countryCode` instead.")
  countryCodeAlpha2: String @deprecated(reason: "This field is included for supporting legacy clients. Please use `countryCode` instead.")
  countryCodeNumeric: String @deprecated(reason: "This field is included for supporting legacy clients. Please use `countryCode` instead.")
  countryName: String @deprecated(reason: "This field is included for supporting legacy clients. Please use `countryCode` instead.")
}
```

---

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