# Intl Address Verification

## Verify

`client.intlAddressVerification.verify(IntlAddressVerificationVerifyParamsparams, RequestOptionsoptions?): IntlAddressVerificationVerifyResponse`

**post** `/v1/intl_addver/verifications`

Verify and standardize an international address.

- Supports both structured and freeform address inputs.
- Specify `includeDetails=true` to get additional details as per the `IntlDetails` schema.
- Uses 1 lookup.

### Parameters

- `IntlAddressVerificationVerifyParams = StructuredAddressInput | FreeformAddressInput`

  - `IntlAddressVerificationVerifyParamsBase`

    - `address: Address`

      Body param

      - `country: string`

        The country code (ISO 3166-1 alpha-2 or alpha-3).

      - `line1: string`

        The first line of the address (e.g., street address, building, etc.).

      - `postalOrZip: string`

        The postal or ZIP code.

      - `provinceOrState: string`

        The administrative area (e.g., state, province, region).

      - `city?: string`

        The city, town, or locality of the address.

      - `line2?: string`

        The second line of the address (e.g., apartment, suite, etc.).

      - `line3?: string`

        The third line of the address (e.g., additional locality or delivery info).

      - `line4?: string`

        The fourth line of the address (e.g., further address details).

    - `geoData?: boolean`

      Query param

    - `includeDetails?: boolean`

      Query param

    - `properCase?: boolean`

      Query param

  - `StructuredAddressInput extends IntlAddressVerificationVerifyParamsBase`

  - `FreeformAddressInput extends IntlAddressVerificationVerifyParamsBase`

### Returns

- `IntlAddressVerificationVerifyResponse`

  - `data: Data`

    The result of a verified international address.

    - `city: string`

      The city or locality.

    - `country: string`

      The country code (ISO 3166-1 alpha-2).

    - `line1: string`

      The first address line.

    - `postalOrZip: string`

      The postal or ZIP code.

    - `provinceOrState: string`

      The province or state.

    - `countryName?: string`

      The full country name.

    - `details?: Details`

      Additional details about the verified address, such as premise, thoroughfare, and locality.

      - `building?: string`

        The building name or number.

      - `buildingType?: string`

        The type of building (e.g., apartment, office).

      - `cityName?: string`

        The full city name.

      - `citySecondary?: string`

        Secondary city information.

      - `cityType?: string`

        The type of city (e.g., city, town, village).

      - `deliveryAddress?: string`

        The full delivery address.

      - `dependentLocality?: string`

        The dependent locality (UK addresses).

      - `doubleDependentLocality?: string`

        The double dependent locality (UK addresses).

      - `organization?: string`

        The organization or company name.

      - `postalOrZipPrimary?: string`

        The primary part of the postal or ZIP code.

      - `postalOrZipSecondary?: string`

        The secondary part of the postal or ZIP code.

      - `postBox?: string`

        The post box number.

      - `premise?: string`

        The premise name or number.

      - `premiseNumber?: string`

        The premise number.

      - `premiseSecondary?: string`

        Secondary premise information.

      - `premiseType?: string`

        The type of premise (e.g., house, flat).

      - `provinceOrStateName?: string`

        The full name of the province or state.

      - `provinceOrStateType?: string`

        The type of province or state (e.g., province, state, region).

      - `street?: string`

        The street name.

      - `streetPostDirection?: string`

        The directional suffix for the street (e.g., N, S, E, W).

      - `streetPreDirection?: string`

        The directional prefix for the street (e.g., N, S, E, W).

      - `streetType?: string`

        The type of street (e.g., St, Ave, Blvd).

      - `subAdministrativeArea?: string`

        The sub-administrative area.

      - `subBuilding?: string`

        The sub-building name or number (e.g., unit, suite).

      - `SubBuildingFloor?: string`

        The floor of the sub-building.

      - `subBuildingNumber?: string`

        The sub-building number.

      - `subBuildingType?: string`

        The type of sub-building (e.g., floor, wing).

      - `subStreet?: string`

        The sub-street name.

      - `subStreetPostDirection?: string`

        The directional suffix for the sub-street.

      - `subStreetPreDirection?: string`

        The directional prefix for the sub-street.

      - `subStreetType?: string`

        The type of sub-street.

      - `superAdministrativeArea?: string`

        The super-administrative area.

      - `telephone?: string`

        The telephone number associated with the address.

    - `errors?: Errors`

      Errors encountered during address verification.

      - `city?: Array<string>`

        Errors related to the city.

      - `generic?: Array<string>`

        Generic errors not tied to a specific field.

      - `line1?: Array<string>`

        Errors related to the first address line.

      - `line2?: Array<string>`

        Errors related to the second address line.

      - `postalOrZip?: Array<string>`

        Errors related to the postal or ZIP code.

      - `provinceOrState?: Array<string>`

        Errors related to the province or state.

    - `firmName?: string`

      The firm or company name, if available.

    - `formattedAddress?: string`

      The formatted address string.

    - `geoData?: GeoData`

      Geocoding result for the verified address.

      - `geoAccuracy?: string`

        The geocode accuracy.

      - `latitude?: string`

        The latitude of the address.

      - `longitude?: string`

        The longitude of the address.

    - `line2?: string`

      The second address line.

    - `line3?: string`

      The third address line, if available.

    - `status?: Status`

      The verification status of an address.

      - `"verified"`

      - `"corrected"`

      - `"failed"`

    - `summary?: Summary`

      A summary of the verification process and match levels.

      - `contextIdentificationMatchLevel?: string`

        Context identification match level.

      - `lexiconIdentificationMatchLevel?: string`

        Lexicon identification match level.

      - `matchScore?: number`

        The match score (0-100).

      - `message?: string`

        Additional message about the verification.

      - `parsingStatus?: string`

        The parsing status of the address.

      - `postCodeStatus?: string`

        The status of the postal code.

      - `postProcessedVerificationMatchLevel?: string`

        The match level after post-processing.

      - `preProcessedVerificationMatchLevel?: string`

        The match level before post-processing.

      - `verificationStatus?: string`

        The overall verification status.

    - `zipPlus4?: string`

      The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Example

```typescript
import PostGrid from 'postgrid-node';

const client = new PostGrid({
  addressVerificationAPIKey: process.env['POSTGRID_ADDRESS_VERIFICATION_API_KEY'], // This is the default and can be omitted
});

const response = await client.intlAddressVerification.verify({ address: {} });

console.log(response.data);
```

#### Response

```json
{
  "status": "success",
  "message": "International address verified successfully.",
  "data": {
    "city": "Scarborough",
    "country": "CA",
    "details": {
      "premise": "31"
    },
    "formattedAddress": "31 Fl,scarborough On",
    "geoData": {
      "latitude": "43.761961",
      "longitude": "-79.245693",
      "geoAccuracy": "A2"
    },
    "line1": "31 Fl",
    "line2": "Scarborough On",
    "provinceOrState": "ON",
    "postalOrZip": "",
    "summary": {
      "verificationStatus": "partially_verified",
      "postProcessedVerificationMatchLevel": "city",
      "preProcessedVerificationMatchLevel": "city",
      "parsingStatus": "unable_to_parse",
      "lexiconIdentificationMatchLevel": "city",
      "contextIdentificationMatchLevel": "premise_or_building",
      "postCodeStatus": "postal_code_primary_empty",
      "matchScore": 100
    }
  }
}
```

## Batch Verification

`client.intlAddressVerification.batchVerification(IntlAddressVerificationBatchVerificationParamsparams, RequestOptionsoptions?): IntlAddressVerificationBatchVerificationResponse`

**post** `/v1/intl_addver/verifications/batch`

Verify a batch of international addresses in a single request.
Each address can be freeform or structured, matching the same input formats
accepted by the single verification endpoint.

- Uses 1 lookup per address.
- Requires a secret API key.
- Returns results in the same order as the input addresses.
- If an individual address fails, its result will contain an `error` field
  rather than a `verifiedAddress`.

### Parameters

- `params: IntlAddressVerificationBatchVerificationParams`

  - `addresses: Array<StructuredAddressInput | FreeformAddressInput>`

    Body param: Array of addresses to verify. Each item can be a freeform string or a structured address object.

    - `StructuredAddressInput`

      Input model for structured international address verification.

      - `address: Address`

        - `country: string`

          The country code (ISO 3166-1 alpha-2 or alpha-3).

        - `line1: string`

          The first line of the address (e.g., street address, building, etc.).

        - `postalOrZip: string`

          The postal or ZIP code.

        - `provinceOrState: string`

          The administrative area (e.g., state, province, region).

        - `city?: string`

          The city, town, or locality of the address.

        - `line2?: string`

          The second line of the address (e.g., apartment, suite, etc.).

        - `line3?: string`

          The third line of the address (e.g., additional locality or delivery info).

        - `line4?: string`

          The fourth line of the address (e.g., further address details).

    - `FreeformAddressInput`

      Input model for freeform international address verification.

      - `address: string`

        The full address as a single string.

  - `geoData?: boolean`

    Query param

  - `includeDetails?: boolean`

    Query param

  - `properCase?: boolean`

    Query param

  - `useEnhancedChinaDataset?: boolean`

    Query param

### Returns

- `IntlAddressVerificationBatchVerificationResponse`

  - `data: Data`

    - `results: Array<Result>`

      - `error?: string`

        An error message for this address. Present when verification failed.

      - `verifiedAddress?: VerifiedAddress`

        The result of a verified international address.

        - `city: string`

          The city or locality.

        - `country: string`

          The country code (ISO 3166-1 alpha-2).

        - `line1: string`

          The first address line.

        - `postalOrZip: string`

          The postal or ZIP code.

        - `provinceOrState: string`

          The province or state.

        - `countryName?: string`

          The full country name.

        - `details?: Details`

          Additional details about the verified address, such as premise, thoroughfare, and locality.

          - `building?: string`

            The building name or number.

          - `buildingType?: string`

            The type of building (e.g., apartment, office).

          - `cityName?: string`

            The full city name.

          - `citySecondary?: string`

            Secondary city information.

          - `cityType?: string`

            The type of city (e.g., city, town, village).

          - `deliveryAddress?: string`

            The full delivery address.

          - `dependentLocality?: string`

            The dependent locality (UK addresses).

          - `doubleDependentLocality?: string`

            The double dependent locality (UK addresses).

          - `organization?: string`

            The organization or company name.

          - `postalOrZipPrimary?: string`

            The primary part of the postal or ZIP code.

          - `postalOrZipSecondary?: string`

            The secondary part of the postal or ZIP code.

          - `postBox?: string`

            The post box number.

          - `premise?: string`

            The premise name or number.

          - `premiseNumber?: string`

            The premise number.

          - `premiseSecondary?: string`

            Secondary premise information.

          - `premiseType?: string`

            The type of premise (e.g., house, flat).

          - `provinceOrStateName?: string`

            The full name of the province or state.

          - `provinceOrStateType?: string`

            The type of province or state (e.g., province, state, region).

          - `street?: string`

            The street name.

          - `streetPostDirection?: string`

            The directional suffix for the street (e.g., N, S, E, W).

          - `streetPreDirection?: string`

            The directional prefix for the street (e.g., N, S, E, W).

          - `streetType?: string`

            The type of street (e.g., St, Ave, Blvd).

          - `subAdministrativeArea?: string`

            The sub-administrative area.

          - `subBuilding?: string`

            The sub-building name or number (e.g., unit, suite).

          - `SubBuildingFloor?: string`

            The floor of the sub-building.

          - `subBuildingNumber?: string`

            The sub-building number.

          - `subBuildingType?: string`

            The type of sub-building (e.g., floor, wing).

          - `subStreet?: string`

            The sub-street name.

          - `subStreetPostDirection?: string`

            The directional suffix for the sub-street.

          - `subStreetPreDirection?: string`

            The directional prefix for the sub-street.

          - `subStreetType?: string`

            The type of sub-street.

          - `superAdministrativeArea?: string`

            The super-administrative area.

          - `telephone?: string`

            The telephone number associated with the address.

        - `errors?: Errors`

          Errors encountered during address verification.

          - `city?: Array<string>`

            Errors related to the city.

          - `generic?: Array<string>`

            Generic errors not tied to a specific field.

          - `line1?: Array<string>`

            Errors related to the first address line.

          - `line2?: Array<string>`

            Errors related to the second address line.

          - `postalOrZip?: Array<string>`

            Errors related to the postal or ZIP code.

          - `provinceOrState?: Array<string>`

            Errors related to the province or state.

        - `firmName?: string`

          The firm or company name, if available.

        - `formattedAddress?: string`

          The formatted address string.

        - `geoData?: GeoData`

          Geocoding result for the verified address.

          - `geoAccuracy?: string`

            The geocode accuracy.

          - `latitude?: string`

            The latitude of the address.

          - `longitude?: string`

            The longitude of the address.

        - `line2?: string`

          The second address line.

        - `line3?: string`

          The third address line, if available.

        - `status?: Status`

          The verification status of an address.

          - `"verified"`

          - `"corrected"`

          - `"failed"`

        - `summary?: Summary`

          A summary of the verification process and match levels.

          - `contextIdentificationMatchLevel?: string`

            Context identification match level.

          - `lexiconIdentificationMatchLevel?: string`

            Lexicon identification match level.

          - `matchScore?: number`

            The match score (0-100).

          - `message?: string`

            Additional message about the verification.

          - `parsingStatus?: string`

            The parsing status of the address.

          - `postCodeStatus?: string`

            The status of the postal code.

          - `postProcessedVerificationMatchLevel?: string`

            The match level after post-processing.

          - `preProcessedVerificationMatchLevel?: string`

            The match level before post-processing.

          - `verificationStatus?: string`

            The overall verification status.

        - `zipPlus4?: string`

          The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Example

```typescript
import PostGrid from 'postgrid-node';

const client = new PostGrid({
  addressVerificationAPIKey: process.env['POSTGRID_ADDRESS_VERIFICATION_API_KEY'], // This is the default and can be omitted
});

const response = await client.intlAddressVerification.batchVerification({
  addresses: [
    {
      address: {
        country: 'country',
        line1: 'line1',
        postalOrZip: 'postalOrZip',
        provinceOrState: 'provinceOrState',
      },
    },
  ],
});

console.log(response.data);
```

#### Response

```json
{
  "data": {
    "results": [
      {
        "error": "error",
        "verifiedAddress": {
          "city": "city",
          "country": "country",
          "line1": "line1",
          "postalOrZip": "postalOrZip",
          "provinceOrState": "provinceOrState",
          "countryName": "countryName",
          "details": {
            "building": "building",
            "buildingType": "buildingType",
            "cityName": "cityName",
            "citySecondary": "citySecondary",
            "cityType": "cityType",
            "deliveryAddress": "deliveryAddress",
            "dependentLocality": "dependentLocality",
            "doubleDependentLocality": "doubleDependentLocality",
            "organization": "organization",
            "postalOrZipPrimary": "postalOrZipPrimary",
            "postalOrZipSecondary": "postalOrZipSecondary",
            "postBox": "postBox",
            "premise": "premise",
            "premiseNumber": "premiseNumber",
            "premiseSecondary": "premiseSecondary",
            "premiseType": "premiseType",
            "provinceOrStateName": "provinceOrStateName",
            "provinceOrStateType": "provinceOrStateType",
            "street": "street",
            "streetPostDirection": "streetPostDirection",
            "streetPreDirection": "streetPreDirection",
            "streetType": "streetType",
            "subAdministrativeArea": "subAdministrativeArea",
            "subBuilding": "subBuilding",
            "SubBuildingFloor": "SubBuildingFloor",
            "subBuildingNumber": "subBuildingNumber",
            "subBuildingType": "subBuildingType",
            "subStreet": "subStreet",
            "subStreetPostDirection": "subStreetPostDirection",
            "subStreetPreDirection": "subStreetPreDirection",
            "subStreetType": "subStreetType",
            "superAdministrativeArea": "superAdministrativeArea",
            "telephone": "telephone"
          },
          "errors": {
            "city": [
              "string"
            ],
            "generic": [
              "string"
            ],
            "line1": [
              "string"
            ],
            "line2": [
              "string"
            ],
            "postalOrZip": [
              "string"
            ],
            "provinceOrState": [
              "string"
            ]
          },
          "firmName": "firmName",
          "formattedAddress": "formattedAddress",
          "geoData": {
            "geoAccuracy": "geoAccuracy",
            "latitude": "latitude",
            "longitude": "longitude"
          },
          "line2": "line2",
          "line3": "line3",
          "status": "verified",
          "summary": {
            "contextIdentificationMatchLevel": "contextIdentificationMatchLevel",
            "lexiconIdentificationMatchLevel": "lexiconIdentificationMatchLevel",
            "matchScore": 0,
            "message": "message",
            "parsingStatus": "parsingStatus",
            "postCodeStatus": "postCodeStatus",
            "postProcessedVerificationMatchLevel": "postProcessedVerificationMatchLevel",
            "preProcessedVerificationMatchLevel": "preProcessedVerificationMatchLevel",
            "verificationStatus": "verificationStatus"
          },
          "zipPlus4": "zipPlus4"
        }
      }
    ]
  },
  "message": "message",
  "status": "success"
}
```

## Get Autocomplete Previews

`client.intlAddressVerification.getAutocompletePreviews(IntlAddressVerificationGetAutocompletePreviewsParamsquery?, RequestOptionsoptions?): IntlAddressVerificationGetAutocompletePreviewsResponse`

**get** `/v1/intl_addver/completions`

Returns address completion previews for a partial address string, suitable
for populating an autocomplete dropdown.

**Regular mode** — supply `partialStreet` to search by partial street address.
Results may include `Address` types (resolvable directly) and `Container` types
(buildings/complexes that require a follow-up call).

**Advanced mode** — supply `advanced=true` and a `container` ID (from a previous
regular call) to drill into a building or complex and retrieve individual unit addresses.

Results with `type: "Address"` can be fully resolved by passing their `id`
to `POST /completions`.

- Does not consume a lookup.

### Parameters

- `query: IntlAddressVerificationGetAutocompletePreviewsParams`

  - `advanced?: boolean`

  - `cityFilter?: string`

  - `container?: string`

  - `countriesFilter?: string`

  - `disableIPBiasing?: boolean`

  - `language?: string`

  - `limit?: number`

  - `partialStreet?: string`

  - `postalOrZipFilter?: string`

  - `standardFallback?: boolean`

  - `streetFilter?: string`

  - `useEnhancedChinaDataset?: boolean`

### Returns

- `IntlAddressVerificationGetAutocompletePreviewsResponse`

  - `data: Array<Data>`

    - `id?: string`

      The unique identifier for this result. Pass this to `POST /completions`
      to retrieve the full address. If the `type` is `Container`, pass it as
      the `container` parameter to `GET /completions` to drill down further.

    - `description?: string`

      A secondary description of the result (e.g. city and country).

    - `error?: string`

      An error message if the lookup failed for this result.

    - `highlight?: string`

      Character ranges within `text` that match the search input, for bolding in UI.

    - `text?: string`

      The human-readable address suggestion text.

    - `type?: string`

      The type of result. `Address` means this can be resolved directly via
      `POST /completions`. `Container` means the result represents a building
      or complex — perform another `GET /completions` with this `id` as
      `container` to get individual unit addresses.

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Example

```typescript
import PostGrid from 'postgrid-node';

const client = new PostGrid({
  addressVerificationAPIKey: process.env['POSTGRID_ADDRESS_VERIFICATION_API_KEY'], // This is the default and can be omitted
});

const response = await client.intlAddressVerification.getAutocompletePreviews();

console.log(response.data);
```

#### Response

```json
{
  "status": "success",
  "message": "Address previews retrieved successfully",
  "data": [
    {
      "id": "GB|RM|A|54186236",
      "type": "Address",
      "text": "Flat 1, One Canada Square",
      "description": "London, E14 5AB"
    }
  ]
}
```

## Get Autocomplete Advanced Previews

`client.intlAddressVerification.getAutocompleteAdvancedPreviews(IntlAddressVerificationGetAutocompleteAdvancedPreviewsParamsquery?, RequestOptionsoptions?): IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse`

**get** `/v1/intl_addver/completions`

Returns address completion previews for a partial address string, suitable
for populating an autocomplete dropdown.

**Regular mode** — supply `partialStreet` to search by partial street address.
Results may include `Address` types (resolvable directly) and `Container` types
(buildings/complexes that require a follow-up call).

**Advanced mode** — supply `advanced=true` and a `container` ID (from a previous
regular call) to drill into a building or complex and retrieve individual unit addresses.

Results with `type: "Address"` can be fully resolved by passing their `id`
to `POST /completions`.

- Does not consume a lookup.

### Parameters

- `query: IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams`

  - `advanced?: boolean`

  - `cityFilter?: string`

  - `container?: string`

  - `countriesFilter?: string`

  - `disableIPBiasing?: boolean`

  - `language?: string`

  - `limit?: number`

  - `partialStreet?: string`

  - `postalOrZipFilter?: string`

  - `standardFallback?: boolean`

  - `streetFilter?: string`

  - `useEnhancedChinaDataset?: boolean`

### Returns

- `IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse`

  - `data: Array<Data>`

    - `id?: string`

      The unique identifier for this result. Pass this to `POST /completions`
      to retrieve the full address. If the `type` is `Container`, pass it as
      the `container` parameter to `GET /completions` to drill down further.

    - `description?: string`

      A secondary description of the result (e.g. city and country).

    - `error?: string`

      An error message if the lookup failed for this result.

    - `highlight?: string`

      Character ranges within `text` that match the search input, for bolding in UI.

    - `text?: string`

      The human-readable address suggestion text.

    - `type?: string`

      The type of result. `Address` means this can be resolved directly via
      `POST /completions`. `Container` means the result represents a building
      or complex — perform another `GET /completions` with this `id` as
      `container` to get individual unit addresses.

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Example

```typescript
import PostGrid from 'postgrid-node';

const client = new PostGrid({
  addressVerificationAPIKey: process.env['POSTGRID_ADDRESS_VERIFICATION_API_KEY'], // This is the default and can be omitted
});

const response = await client.intlAddressVerification.getAutocompleteAdvancedPreviews();

console.log(response.data);
```

#### Response

```json
{
  "status": "success",
  "message": "Address previews retrieved successfully",
  "data": [
    {
      "id": "GB|RM|A|54186236",
      "type": "Address",
      "text": "Flat 1, One Canada Square",
      "description": "London, E14 5AB"
    }
  ]
}
```

## Autocomplete

`client.intlAddressVerification.autocomplete(IntlAddressVerificationAutocompleteParamsparams, RequestOptionsoptions?): IntlAddressVerificationAutocompleteResponse`

**post** `/v1/intl_addver/completions`

Resolves an address preview `id` (from `GET /completions`) into a full address.

Optionally verifies the resolved address through the standard US/CA verifier
when `verify=true` is supplied and the address is in the US or Canada.

- Uses 1 lookup per call.
- When `verify=true` resolves a US or CA address, the response will be a
  `VerifiedAddress` instead of an `IntlAddressCompletion`.

### Parameters

- `params: IntlAddressVerificationAutocompleteParams`

  - `id: string`

    Body param

  - `includeDetails?: boolean`

    Query param

  - `properCase?: boolean`

    Query param

  - `useEnhancedChinaDataset?: boolean`

    Query param

  - `verify?: boolean`

    Query param

### Returns

- `IntlAddressVerificationAutocompleteResponse`

  - `data: IntlAddressCompletion | VerifiedAddress`

    A fully resolved international address returned by `POST /completions`.

    - `IntlAddressCompletion`

      A fully resolved international address returned by `POST /completions`.

      - `building?: string`

        The building name, if applicable.

      - `city?: string`

        The city or locality.

      - `company?: string`

        The company or organization name, if applicable.

      - `country?: string`

        The country name.

      - `countryCode?: string`

        The ISO 2-letter country code.

      - `department?: string`

        The department or floor, if applicable.

      - `error?: string`

        An error message if resolution failed.

      - `formattedAddress?: string`

        The full formatted address string.

      - `line1?: string`

        The first address line.

      - `line2?: string`

        The second address line.

      - `line3?: string`

        The third address line.

      - `line4?: string`

        The fourth address line.

      - `postalOrZip?: string`

        The postal or ZIP code.

      - `provinceCode?: string`

        The province or state code.

      - `provinceOrState?: string`

        The province or state name.

    - `VerifiedAddress`

      The result of a verified international address.

      - `city: string`

        The city or locality.

      - `country: string`

        The country code (ISO 3166-1 alpha-2).

      - `line1: string`

        The first address line.

      - `postalOrZip: string`

        The postal or ZIP code.

      - `provinceOrState: string`

        The province or state.

      - `countryName?: string`

        The full country name.

      - `details?: Details`

        Additional details about the verified address, such as premise, thoroughfare, and locality.

        - `building?: string`

          The building name or number.

        - `buildingType?: string`

          The type of building (e.g., apartment, office).

        - `cityName?: string`

          The full city name.

        - `citySecondary?: string`

          Secondary city information.

        - `cityType?: string`

          The type of city (e.g., city, town, village).

        - `deliveryAddress?: string`

          The full delivery address.

        - `dependentLocality?: string`

          The dependent locality (UK addresses).

        - `doubleDependentLocality?: string`

          The double dependent locality (UK addresses).

        - `organization?: string`

          The organization or company name.

        - `postalOrZipPrimary?: string`

          The primary part of the postal or ZIP code.

        - `postalOrZipSecondary?: string`

          The secondary part of the postal or ZIP code.

        - `postBox?: string`

          The post box number.

        - `premise?: string`

          The premise name or number.

        - `premiseNumber?: string`

          The premise number.

        - `premiseSecondary?: string`

          Secondary premise information.

        - `premiseType?: string`

          The type of premise (e.g., house, flat).

        - `provinceOrStateName?: string`

          The full name of the province or state.

        - `provinceOrStateType?: string`

          The type of province or state (e.g., province, state, region).

        - `street?: string`

          The street name.

        - `streetPostDirection?: string`

          The directional suffix for the street (e.g., N, S, E, W).

        - `streetPreDirection?: string`

          The directional prefix for the street (e.g., N, S, E, W).

        - `streetType?: string`

          The type of street (e.g., St, Ave, Blvd).

        - `subAdministrativeArea?: string`

          The sub-administrative area.

        - `subBuilding?: string`

          The sub-building name or number (e.g., unit, suite).

        - `SubBuildingFloor?: string`

          The floor of the sub-building.

        - `subBuildingNumber?: string`

          The sub-building number.

        - `subBuildingType?: string`

          The type of sub-building (e.g., floor, wing).

        - `subStreet?: string`

          The sub-street name.

        - `subStreetPostDirection?: string`

          The directional suffix for the sub-street.

        - `subStreetPreDirection?: string`

          The directional prefix for the sub-street.

        - `subStreetType?: string`

          The type of sub-street.

        - `superAdministrativeArea?: string`

          The super-administrative area.

        - `telephone?: string`

          The telephone number associated with the address.

      - `errors?: Errors`

        Errors encountered during address verification.

        - `city?: Array<string>`

          Errors related to the city.

        - `generic?: Array<string>`

          Generic errors not tied to a specific field.

        - `line1?: Array<string>`

          Errors related to the first address line.

        - `line2?: Array<string>`

          Errors related to the second address line.

        - `postalOrZip?: Array<string>`

          Errors related to the postal or ZIP code.

        - `provinceOrState?: Array<string>`

          Errors related to the province or state.

      - `firmName?: string`

        The firm or company name, if available.

      - `formattedAddress?: string`

        The formatted address string.

      - `geoData?: GeoData`

        Geocoding result for the verified address.

        - `geoAccuracy?: string`

          The geocode accuracy.

        - `latitude?: string`

          The latitude of the address.

        - `longitude?: string`

          The longitude of the address.

      - `line2?: string`

        The second address line.

      - `line3?: string`

        The third address line, if available.

      - `status?: Status`

        The verification status of an address.

        - `"verified"`

        - `"corrected"`

        - `"failed"`

      - `summary?: Summary`

        A summary of the verification process and match levels.

        - `contextIdentificationMatchLevel?: string`

          Context identification match level.

        - `lexiconIdentificationMatchLevel?: string`

          Lexicon identification match level.

        - `matchScore?: number`

          The match score (0-100).

        - `message?: string`

          Additional message about the verification.

        - `parsingStatus?: string`

          The parsing status of the address.

        - `postCodeStatus?: string`

          The status of the postal code.

        - `postProcessedVerificationMatchLevel?: string`

          The match level after post-processing.

        - `preProcessedVerificationMatchLevel?: string`

          The match level before post-processing.

        - `verificationStatus?: string`

          The overall verification status.

      - `zipPlus4?: string`

        The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Example

```typescript
import PostGrid from 'postgrid-node';

const client = new PostGrid({
  addressVerificationAPIKey: process.env['POSTGRID_ADDRESS_VERIFICATION_API_KEY'], // This is the default and can be omitted
});

const response = await client.intlAddressVerification.autocomplete({ id: 'id' });

console.log(response.data);
```

#### Response

```json
{
  "data": {
    "building": "building",
    "city": "city",
    "company": "company",
    "country": "country",
    "countryCode": "countryCode",
    "department": "department",
    "error": "error",
    "formattedAddress": "formattedAddress",
    "line1": "line1",
    "line2": "line2",
    "line3": "line3",
    "line4": "line4",
    "postalOrZip": "postalOrZip",
    "provinceCode": "provinceCode",
    "provinceOrState": "provinceOrState"
  },
  "message": "message",
  "status": "success"
}
```

## Domain Types

### Intl Address Verification Verify Response

- `IntlAddressVerificationVerifyResponse`

  - `data: Data`

    The result of a verified international address.

    - `city: string`

      The city or locality.

    - `country: string`

      The country code (ISO 3166-1 alpha-2).

    - `line1: string`

      The first address line.

    - `postalOrZip: string`

      The postal or ZIP code.

    - `provinceOrState: string`

      The province or state.

    - `countryName?: string`

      The full country name.

    - `details?: Details`

      Additional details about the verified address, such as premise, thoroughfare, and locality.

      - `building?: string`

        The building name or number.

      - `buildingType?: string`

        The type of building (e.g., apartment, office).

      - `cityName?: string`

        The full city name.

      - `citySecondary?: string`

        Secondary city information.

      - `cityType?: string`

        The type of city (e.g., city, town, village).

      - `deliveryAddress?: string`

        The full delivery address.

      - `dependentLocality?: string`

        The dependent locality (UK addresses).

      - `doubleDependentLocality?: string`

        The double dependent locality (UK addresses).

      - `organization?: string`

        The organization or company name.

      - `postalOrZipPrimary?: string`

        The primary part of the postal or ZIP code.

      - `postalOrZipSecondary?: string`

        The secondary part of the postal or ZIP code.

      - `postBox?: string`

        The post box number.

      - `premise?: string`

        The premise name or number.

      - `premiseNumber?: string`

        The premise number.

      - `premiseSecondary?: string`

        Secondary premise information.

      - `premiseType?: string`

        The type of premise (e.g., house, flat).

      - `provinceOrStateName?: string`

        The full name of the province or state.

      - `provinceOrStateType?: string`

        The type of province or state (e.g., province, state, region).

      - `street?: string`

        The street name.

      - `streetPostDirection?: string`

        The directional suffix for the street (e.g., N, S, E, W).

      - `streetPreDirection?: string`

        The directional prefix for the street (e.g., N, S, E, W).

      - `streetType?: string`

        The type of street (e.g., St, Ave, Blvd).

      - `subAdministrativeArea?: string`

        The sub-administrative area.

      - `subBuilding?: string`

        The sub-building name or number (e.g., unit, suite).

      - `SubBuildingFloor?: string`

        The floor of the sub-building.

      - `subBuildingNumber?: string`

        The sub-building number.

      - `subBuildingType?: string`

        The type of sub-building (e.g., floor, wing).

      - `subStreet?: string`

        The sub-street name.

      - `subStreetPostDirection?: string`

        The directional suffix for the sub-street.

      - `subStreetPreDirection?: string`

        The directional prefix for the sub-street.

      - `subStreetType?: string`

        The type of sub-street.

      - `superAdministrativeArea?: string`

        The super-administrative area.

      - `telephone?: string`

        The telephone number associated with the address.

    - `errors?: Errors`

      Errors encountered during address verification.

      - `city?: Array<string>`

        Errors related to the city.

      - `generic?: Array<string>`

        Generic errors not tied to a specific field.

      - `line1?: Array<string>`

        Errors related to the first address line.

      - `line2?: Array<string>`

        Errors related to the second address line.

      - `postalOrZip?: Array<string>`

        Errors related to the postal or ZIP code.

      - `provinceOrState?: Array<string>`

        Errors related to the province or state.

    - `firmName?: string`

      The firm or company name, if available.

    - `formattedAddress?: string`

      The formatted address string.

    - `geoData?: GeoData`

      Geocoding result for the verified address.

      - `geoAccuracy?: string`

        The geocode accuracy.

      - `latitude?: string`

        The latitude of the address.

      - `longitude?: string`

        The longitude of the address.

    - `line2?: string`

      The second address line.

    - `line3?: string`

      The third address line, if available.

    - `status?: Status`

      The verification status of an address.

      - `"verified"`

      - `"corrected"`

      - `"failed"`

    - `summary?: Summary`

      A summary of the verification process and match levels.

      - `contextIdentificationMatchLevel?: string`

        Context identification match level.

      - `lexiconIdentificationMatchLevel?: string`

        Lexicon identification match level.

      - `matchScore?: number`

        The match score (0-100).

      - `message?: string`

        Additional message about the verification.

      - `parsingStatus?: string`

        The parsing status of the address.

      - `postCodeStatus?: string`

        The status of the postal code.

      - `postProcessedVerificationMatchLevel?: string`

        The match level after post-processing.

      - `preProcessedVerificationMatchLevel?: string`

        The match level before post-processing.

      - `verificationStatus?: string`

        The overall verification status.

    - `zipPlus4?: string`

      The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Batch Verification Response

- `IntlAddressVerificationBatchVerificationResponse`

  - `data: Data`

    - `results: Array<Result>`

      - `error?: string`

        An error message for this address. Present when verification failed.

      - `verifiedAddress?: VerifiedAddress`

        The result of a verified international address.

        - `city: string`

          The city or locality.

        - `country: string`

          The country code (ISO 3166-1 alpha-2).

        - `line1: string`

          The first address line.

        - `postalOrZip: string`

          The postal or ZIP code.

        - `provinceOrState: string`

          The province or state.

        - `countryName?: string`

          The full country name.

        - `details?: Details`

          Additional details about the verified address, such as premise, thoroughfare, and locality.

          - `building?: string`

            The building name or number.

          - `buildingType?: string`

            The type of building (e.g., apartment, office).

          - `cityName?: string`

            The full city name.

          - `citySecondary?: string`

            Secondary city information.

          - `cityType?: string`

            The type of city (e.g., city, town, village).

          - `deliveryAddress?: string`

            The full delivery address.

          - `dependentLocality?: string`

            The dependent locality (UK addresses).

          - `doubleDependentLocality?: string`

            The double dependent locality (UK addresses).

          - `organization?: string`

            The organization or company name.

          - `postalOrZipPrimary?: string`

            The primary part of the postal or ZIP code.

          - `postalOrZipSecondary?: string`

            The secondary part of the postal or ZIP code.

          - `postBox?: string`

            The post box number.

          - `premise?: string`

            The premise name or number.

          - `premiseNumber?: string`

            The premise number.

          - `premiseSecondary?: string`

            Secondary premise information.

          - `premiseType?: string`

            The type of premise (e.g., house, flat).

          - `provinceOrStateName?: string`

            The full name of the province or state.

          - `provinceOrStateType?: string`

            The type of province or state (e.g., province, state, region).

          - `street?: string`

            The street name.

          - `streetPostDirection?: string`

            The directional suffix for the street (e.g., N, S, E, W).

          - `streetPreDirection?: string`

            The directional prefix for the street (e.g., N, S, E, W).

          - `streetType?: string`

            The type of street (e.g., St, Ave, Blvd).

          - `subAdministrativeArea?: string`

            The sub-administrative area.

          - `subBuilding?: string`

            The sub-building name or number (e.g., unit, suite).

          - `SubBuildingFloor?: string`

            The floor of the sub-building.

          - `subBuildingNumber?: string`

            The sub-building number.

          - `subBuildingType?: string`

            The type of sub-building (e.g., floor, wing).

          - `subStreet?: string`

            The sub-street name.

          - `subStreetPostDirection?: string`

            The directional suffix for the sub-street.

          - `subStreetPreDirection?: string`

            The directional prefix for the sub-street.

          - `subStreetType?: string`

            The type of sub-street.

          - `superAdministrativeArea?: string`

            The super-administrative area.

          - `telephone?: string`

            The telephone number associated with the address.

        - `errors?: Errors`

          Errors encountered during address verification.

          - `city?: Array<string>`

            Errors related to the city.

          - `generic?: Array<string>`

            Generic errors not tied to a specific field.

          - `line1?: Array<string>`

            Errors related to the first address line.

          - `line2?: Array<string>`

            Errors related to the second address line.

          - `postalOrZip?: Array<string>`

            Errors related to the postal or ZIP code.

          - `provinceOrState?: Array<string>`

            Errors related to the province or state.

        - `firmName?: string`

          The firm or company name, if available.

        - `formattedAddress?: string`

          The formatted address string.

        - `geoData?: GeoData`

          Geocoding result for the verified address.

          - `geoAccuracy?: string`

            The geocode accuracy.

          - `latitude?: string`

            The latitude of the address.

          - `longitude?: string`

            The longitude of the address.

        - `line2?: string`

          The second address line.

        - `line3?: string`

          The third address line, if available.

        - `status?: Status`

          The verification status of an address.

          - `"verified"`

          - `"corrected"`

          - `"failed"`

        - `summary?: Summary`

          A summary of the verification process and match levels.

          - `contextIdentificationMatchLevel?: string`

            Context identification match level.

          - `lexiconIdentificationMatchLevel?: string`

            Lexicon identification match level.

          - `matchScore?: number`

            The match score (0-100).

          - `message?: string`

            Additional message about the verification.

          - `parsingStatus?: string`

            The parsing status of the address.

          - `postCodeStatus?: string`

            The status of the postal code.

          - `postProcessedVerificationMatchLevel?: string`

            The match level after post-processing.

          - `preProcessedVerificationMatchLevel?: string`

            The match level before post-processing.

          - `verificationStatus?: string`

            The overall verification status.

        - `zipPlus4?: string`

          The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Get Autocomplete Previews Response

- `IntlAddressVerificationGetAutocompletePreviewsResponse`

  - `data: Array<Data>`

    - `id?: string`

      The unique identifier for this result. Pass this to `POST /completions`
      to retrieve the full address. If the `type` is `Container`, pass it as
      the `container` parameter to `GET /completions` to drill down further.

    - `description?: string`

      A secondary description of the result (e.g. city and country).

    - `error?: string`

      An error message if the lookup failed for this result.

    - `highlight?: string`

      Character ranges within `text` that match the search input, for bolding in UI.

    - `text?: string`

      The human-readable address suggestion text.

    - `type?: string`

      The type of result. `Address` means this can be resolved directly via
      `POST /completions`. `Container` means the result represents a building
      or complex — perform another `GET /completions` with this `id` as
      `container` to get individual unit addresses.

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Get Autocomplete Advanced Previews Response

- `IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse`

  - `data: Array<Data>`

    - `id?: string`

      The unique identifier for this result. Pass this to `POST /completions`
      to retrieve the full address. If the `type` is `Container`, pass it as
      the `container` parameter to `GET /completions` to drill down further.

    - `description?: string`

      A secondary description of the result (e.g. city and country).

    - `error?: string`

      An error message if the lookup failed for this result.

    - `highlight?: string`

      Character ranges within `text` that match the search input, for bolding in UI.

    - `text?: string`

      The human-readable address suggestion text.

    - `type?: string`

      The type of result. `Address` means this can be resolved directly via
      `POST /completions`. `Container` means the result represents a building
      or complex — perform another `GET /completions` with this `id` as
      `container` to get individual unit addresses.

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Autocomplete Response

- `IntlAddressVerificationAutocompleteResponse`

  - `data: IntlAddressCompletion | VerifiedAddress`

    A fully resolved international address returned by `POST /completions`.

    - `IntlAddressCompletion`

      A fully resolved international address returned by `POST /completions`.

      - `building?: string`

        The building name, if applicable.

      - `city?: string`

        The city or locality.

      - `company?: string`

        The company or organization name, if applicable.

      - `country?: string`

        The country name.

      - `countryCode?: string`

        The ISO 2-letter country code.

      - `department?: string`

        The department or floor, if applicable.

      - `error?: string`

        An error message if resolution failed.

      - `formattedAddress?: string`

        The full formatted address string.

      - `line1?: string`

        The first address line.

      - `line2?: string`

        The second address line.

      - `line3?: string`

        The third address line.

      - `line4?: string`

        The fourth address line.

      - `postalOrZip?: string`

        The postal or ZIP code.

      - `provinceCode?: string`

        The province or state code.

      - `provinceOrState?: string`

        The province or state name.

    - `VerifiedAddress`

      The result of a verified international address.

      - `city: string`

        The city or locality.

      - `country: string`

        The country code (ISO 3166-1 alpha-2).

      - `line1: string`

        The first address line.

      - `postalOrZip: string`

        The postal or ZIP code.

      - `provinceOrState: string`

        The province or state.

      - `countryName?: string`

        The full country name.

      - `details?: Details`

        Additional details about the verified address, such as premise, thoroughfare, and locality.

        - `building?: string`

          The building name or number.

        - `buildingType?: string`

          The type of building (e.g., apartment, office).

        - `cityName?: string`

          The full city name.

        - `citySecondary?: string`

          Secondary city information.

        - `cityType?: string`

          The type of city (e.g., city, town, village).

        - `deliveryAddress?: string`

          The full delivery address.

        - `dependentLocality?: string`

          The dependent locality (UK addresses).

        - `doubleDependentLocality?: string`

          The double dependent locality (UK addresses).

        - `organization?: string`

          The organization or company name.

        - `postalOrZipPrimary?: string`

          The primary part of the postal or ZIP code.

        - `postalOrZipSecondary?: string`

          The secondary part of the postal or ZIP code.

        - `postBox?: string`

          The post box number.

        - `premise?: string`

          The premise name or number.

        - `premiseNumber?: string`

          The premise number.

        - `premiseSecondary?: string`

          Secondary premise information.

        - `premiseType?: string`

          The type of premise (e.g., house, flat).

        - `provinceOrStateName?: string`

          The full name of the province or state.

        - `provinceOrStateType?: string`

          The type of province or state (e.g., province, state, region).

        - `street?: string`

          The street name.

        - `streetPostDirection?: string`

          The directional suffix for the street (e.g., N, S, E, W).

        - `streetPreDirection?: string`

          The directional prefix for the street (e.g., N, S, E, W).

        - `streetType?: string`

          The type of street (e.g., St, Ave, Blvd).

        - `subAdministrativeArea?: string`

          The sub-administrative area.

        - `subBuilding?: string`

          The sub-building name or number (e.g., unit, suite).

        - `SubBuildingFloor?: string`

          The floor of the sub-building.

        - `subBuildingNumber?: string`

          The sub-building number.

        - `subBuildingType?: string`

          The type of sub-building (e.g., floor, wing).

        - `subStreet?: string`

          The sub-street name.

        - `subStreetPostDirection?: string`

          The directional suffix for the sub-street.

        - `subStreetPreDirection?: string`

          The directional prefix for the sub-street.

        - `subStreetType?: string`

          The type of sub-street.

        - `superAdministrativeArea?: string`

          The super-administrative area.

        - `telephone?: string`

          The telephone number associated with the address.

      - `errors?: Errors`

        Errors encountered during address verification.

        - `city?: Array<string>`

          Errors related to the city.

        - `generic?: Array<string>`

          Generic errors not tied to a specific field.

        - `line1?: Array<string>`

          Errors related to the first address line.

        - `line2?: Array<string>`

          Errors related to the second address line.

        - `postalOrZip?: Array<string>`

          Errors related to the postal or ZIP code.

        - `provinceOrState?: Array<string>`

          Errors related to the province or state.

      - `firmName?: string`

        The firm or company name, if available.

      - `formattedAddress?: string`

        The formatted address string.

      - `geoData?: GeoData`

        Geocoding result for the verified address.

        - `geoAccuracy?: string`

          The geocode accuracy.

        - `latitude?: string`

          The latitude of the address.

        - `longitude?: string`

          The longitude of the address.

      - `line2?: string`

        The second address line.

      - `line3?: string`

        The third address line, if available.

      - `status?: Status`

        The verification status of an address.

        - `"verified"`

        - `"corrected"`

        - `"failed"`

      - `summary?: Summary`

        A summary of the verification process and match levels.

        - `contextIdentificationMatchLevel?: string`

          Context identification match level.

        - `lexiconIdentificationMatchLevel?: string`

          Lexicon identification match level.

        - `matchScore?: number`

          The match score (0-100).

        - `message?: string`

          Additional message about the verification.

        - `parsingStatus?: string`

          The parsing status of the address.

        - `postCodeStatus?: string`

          The status of the postal code.

        - `postProcessedVerificationMatchLevel?: string`

          The match level after post-processing.

        - `preProcessedVerificationMatchLevel?: string`

          The match level before post-processing.

        - `verificationStatus?: string`

          The overall verification status.

      - `zipPlus4?: string`

        The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" | "error"`

    - `"success"`

    - `"error"`
