# Intl Address Verification

## Verify

**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.

### Query Parameters

- `geoData: optional boolean`

- `includeDetails: optional boolean`

- `properCase: optional boolean`

### Body Parameters

- `body: object { address }  or object { address }`

  Input model for structured international address verification.

  - `StructuredAddressInput object { address }`

    Input model for structured international address verification.

    - `address: object { country, line1, postalOrZip, 5 more }`

      - `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: optional string`

        The city, town, or locality of the address.

      - `line2: optional string`

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

      - `line3: optional string`

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

      - `line4: optional string`

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

  - `FreeformAddressInput object { address }`

    Input model for freeform international address verification.

    - `address: string`

      The full address as a single string.

### Returns

- `data: object { city, country, line1, 13 more }`

  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: optional string`

    The full country name.

  - `details: optional object { building, buildingType, cityName, 30 more }`

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

    - `building: optional string`

      The building name or number.

    - `buildingType: optional string`

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

    - `cityName: optional string`

      The full city name.

    - `citySecondary: optional string`

      Secondary city information.

    - `cityType: optional string`

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

    - `deliveryAddress: optional string`

      The full delivery address.

    - `dependentLocality: optional string`

      The dependent locality (UK addresses).

    - `doubleDependentLocality: optional string`

      The double dependent locality (UK addresses).

    - `organization: optional string`

      The organization or company name.

    - `postalOrZipPrimary: optional string`

      The primary part of the postal or ZIP code.

    - `postalOrZipSecondary: optional string`

      The secondary part of the postal or ZIP code.

    - `postBox: optional string`

      The post box number.

    - `premise: optional string`

      The premise name or number.

    - `premiseNumber: optional string`

      The premise number.

    - `premiseSecondary: optional string`

      Secondary premise information.

    - `premiseType: optional string`

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

    - `provinceOrStateName: optional string`

      The full name of the province or state.

    - `provinceOrStateType: optional string`

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

    - `street: optional string`

      The street name.

    - `streetPostDirection: optional string`

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

    - `streetPreDirection: optional string`

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

    - `streetType: optional string`

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

    - `subAdministrativeArea: optional string`

      The sub-administrative area.

    - `subBuilding: optional string`

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

    - `SubBuildingFloor: optional string`

      The floor of the sub-building.

    - `subBuildingNumber: optional string`

      The sub-building number.

    - `subBuildingType: optional string`

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

    - `subStreet: optional string`

      The sub-street name.

    - `subStreetPostDirection: optional string`

      The directional suffix for the sub-street.

    - `subStreetPreDirection: optional string`

      The directional prefix for the sub-street.

    - `subStreetType: optional string`

      The type of sub-street.

    - `superAdministrativeArea: optional string`

      The super-administrative area.

    - `telephone: optional string`

      The telephone number associated with the address.

  - `errors: optional Errors`

    Errors encountered during address verification.

    - `city: optional array of string`

      Errors related to the city.

    - `generic: optional array of string`

      Generic errors not tied to a specific field.

    - `line1: optional array of string`

      Errors related to the first address line.

    - `line2: optional array of string`

      Errors related to the second address line.

    - `postalOrZip: optional array of string`

      Errors related to the postal or ZIP code.

    - `provinceOrState: optional array of string`

      Errors related to the province or state.

  - `firmName: optional string`

    The firm or company name, if available.

  - `formattedAddress: optional string`

    The formatted address string.

  - `geoData: optional object { geoAccuracy, latitude, longitude }`

    Geocoding result for the verified address.

    - `geoAccuracy: optional string`

      The geocode accuracy.

    - `latitude: optional string`

      The latitude of the address.

    - `longitude: optional string`

      The longitude of the address.

  - `line2: optional string`

    The second address line.

  - `line3: optional string`

    The third address line, if available.

  - `status: optional Status`

    The verification status of an address.

    - `"verified"`

    - `"corrected"`

    - `"failed"`

  - `summary: optional object { contextIdentificationMatchLevel, lexiconIdentificationMatchLevel, matchScore, 6 more }`

    A summary of the verification process and match levels.

    - `contextIdentificationMatchLevel: optional string`

      Context identification match level.

    - `lexiconIdentificationMatchLevel: optional string`

      Lexicon identification match level.

    - `matchScore: optional number`

      The match score (0-100).

    - `message: optional string`

      Additional message about the verification.

    - `parsingStatus: optional string`

      The parsing status of the address.

    - `postCodeStatus: optional string`

      The status of the postal code.

    - `postProcessedVerificationMatchLevel: optional string`

      The match level after post-processing.

    - `preProcessedVerificationMatchLevel: optional string`

      The match level before post-processing.

    - `verificationStatus: optional string`

      The overall verification status.

  - `zipPlus4: optional string`

    The ZIP+4 code (for US addresses).

- `message: string`

- `status: "success" or "error"`

  - `"success"`

  - `"error"`

### Example

```http
curl https://api.postgrid.com/v1/intl_addver/verifications \
    -H 'Content-Type: application/json' \
    -H "X-API-Key: $POSTGRID_ADDRESS_VERIFICATION_API_KEY" \
    -d '{
          "address": {
            "country": "country",
            "line1": "line1",
            "postalOrZip": "postalOrZip",
            "provinceOrState": "provinceOrState"
          }
        }'
```

#### 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

**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`.

### Query Parameters

- `geoData: optional boolean`

- `includeDetails: optional boolean`

- `properCase: optional boolean`

- `useEnhancedChinaDataset: optional boolean`

### Body Parameters

- `addresses: array of object { address }  or object { address }`

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

  - `StructuredAddressInput object { address }`

    Input model for structured international address verification.

    - `address: object { country, line1, postalOrZip, 5 more }`

      - `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: optional string`

        The city, town, or locality of the address.

      - `line2: optional string`

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

      - `line3: optional string`

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

      - `line4: optional string`

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

  - `FreeformAddressInput object { address }`

    Input model for freeform international address verification.

    - `address: string`

      The full address as a single string.

### Returns

- `data: object { results }`

  - `results: array of object { error, verifiedAddress }`

    - `error: optional string`

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

    - `verifiedAddress: optional object { city, country, line1, 13 more }`

      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: optional string`

        The full country name.

      - `details: optional object { building, buildingType, cityName, 30 more }`

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

        - `building: optional string`

          The building name or number.

        - `buildingType: optional string`

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

        - `cityName: optional string`

          The full city name.

        - `citySecondary: optional string`

          Secondary city information.

        - `cityType: optional string`

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

        - `deliveryAddress: optional string`

          The full delivery address.

        - `dependentLocality: optional string`

          The dependent locality (UK addresses).

        - `doubleDependentLocality: optional string`

          The double dependent locality (UK addresses).

        - `organization: optional string`

          The organization or company name.

        - `postalOrZipPrimary: optional string`

          The primary part of the postal or ZIP code.

        - `postalOrZipSecondary: optional string`

          The secondary part of the postal or ZIP code.

        - `postBox: optional string`

          The post box number.

        - `premise: optional string`

          The premise name or number.

        - `premiseNumber: optional string`

          The premise number.

        - `premiseSecondary: optional string`

          Secondary premise information.

        - `premiseType: optional string`

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

        - `provinceOrStateName: optional string`

          The full name of the province or state.

        - `provinceOrStateType: optional string`

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

        - `street: optional string`

          The street name.

        - `streetPostDirection: optional string`

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

        - `streetPreDirection: optional string`

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

        - `streetType: optional string`

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

        - `subAdministrativeArea: optional string`

          The sub-administrative area.

        - `subBuilding: optional string`

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

        - `SubBuildingFloor: optional string`

          The floor of the sub-building.

        - `subBuildingNumber: optional string`

          The sub-building number.

        - `subBuildingType: optional string`

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

        - `subStreet: optional string`

          The sub-street name.

        - `subStreetPostDirection: optional string`

          The directional suffix for the sub-street.

        - `subStreetPreDirection: optional string`

          The directional prefix for the sub-street.

        - `subStreetType: optional string`

          The type of sub-street.

        - `superAdministrativeArea: optional string`

          The super-administrative area.

        - `telephone: optional string`

          The telephone number associated with the address.

      - `errors: optional Errors`

        Errors encountered during address verification.

        - `city: optional array of string`

          Errors related to the city.

        - `generic: optional array of string`

          Generic errors not tied to a specific field.

        - `line1: optional array of string`

          Errors related to the first address line.

        - `line2: optional array of string`

          Errors related to the second address line.

        - `postalOrZip: optional array of string`

          Errors related to the postal or ZIP code.

        - `provinceOrState: optional array of string`

          Errors related to the province or state.

      - `firmName: optional string`

        The firm or company name, if available.

      - `formattedAddress: optional string`

        The formatted address string.

      - `geoData: optional object { geoAccuracy, latitude, longitude }`

        Geocoding result for the verified address.

        - `geoAccuracy: optional string`

          The geocode accuracy.

        - `latitude: optional string`

          The latitude of the address.

        - `longitude: optional string`

          The longitude of the address.

      - `line2: optional string`

        The second address line.

      - `line3: optional string`

        The third address line, if available.

      - `status: optional Status`

        The verification status of an address.

        - `"verified"`

        - `"corrected"`

        - `"failed"`

      - `summary: optional object { contextIdentificationMatchLevel, lexiconIdentificationMatchLevel, matchScore, 6 more }`

        A summary of the verification process and match levels.

        - `contextIdentificationMatchLevel: optional string`

          Context identification match level.

        - `lexiconIdentificationMatchLevel: optional string`

          Lexicon identification match level.

        - `matchScore: optional number`

          The match score (0-100).

        - `message: optional string`

          Additional message about the verification.

        - `parsingStatus: optional string`

          The parsing status of the address.

        - `postCodeStatus: optional string`

          The status of the postal code.

        - `postProcessedVerificationMatchLevel: optional string`

          The match level after post-processing.

        - `preProcessedVerificationMatchLevel: optional string`

          The match level before post-processing.

        - `verificationStatus: optional string`

          The overall verification status.

      - `zipPlus4: optional string`

        The ZIP+4 code (for US addresses).

- `message: string`

- `status: "success" or "error"`

  - `"success"`

  - `"error"`

### Example

```http
curl https://api.postgrid.com/v1/intl_addver/verifications/batch \
    -H 'Content-Type: application/json' \
    -H "X-API-Key: $POSTGRID_ADDRESS_VERIFICATION_API_KEY" \
    -d '{
          "addresses": [
            {
              "address": {
                "country": "country",
                "line1": "line1",
                "postalOrZip": "postalOrZip",
                "provinceOrState": "provinceOrState"
              }
            }
          ]
        }'
```

#### 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

**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.

### Query Parameters

- `advanced: optional boolean`

- `cityFilter: optional string`

- `container: optional string`

- `countriesFilter: optional string`

- `disableIPBiasing: optional boolean`

- `language: optional string`

- `limit: optional number`

- `partialStreet: optional string`

- `postalOrZipFilter: optional string`

- `standardFallback: optional boolean`

- `streetFilter: optional string`

- `useEnhancedChinaDataset: optional boolean`

### Returns

- `data: array of object { id, description, error, 3 more }`

  - `id: optional 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: optional string`

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

  - `error: optional string`

    An error message if the lookup failed for this result.

  - `highlight: optional string`

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

  - `text: optional string`

    The human-readable address suggestion text.

  - `type: optional 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" or "error"`

  - `"success"`

  - `"error"`

### Example

```http
curl https://api.postgrid.com/v1/intl_addver/completions \
    -H "X-API-Key: $POSTGRID_ADDRESS_VERIFICATION_API_KEY"
```

#### 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

**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.

### Query Parameters

- `advanced: optional boolean`

- `cityFilter: optional string`

- `container: optional string`

- `countriesFilter: optional string`

- `disableIPBiasing: optional boolean`

- `language: optional string`

- `limit: optional number`

- `partialStreet: optional string`

- `postalOrZipFilter: optional string`

- `standardFallback: optional boolean`

- `streetFilter: optional string`

- `useEnhancedChinaDataset: optional boolean`

### Returns

- `data: array of object { id, description, error, 3 more }`

  - `id: optional 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: optional string`

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

  - `error: optional string`

    An error message if the lookup failed for this result.

  - `highlight: optional string`

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

  - `text: optional string`

    The human-readable address suggestion text.

  - `type: optional 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" or "error"`

  - `"success"`

  - `"error"`

### Example

```http
curl https://api.postgrid.com/v1/intl_addver/completions \
    -H "X-API-Key: $POSTGRID_ADDRESS_VERIFICATION_API_KEY"
```

#### 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

**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`.

### Query Parameters

- `includeDetails: optional boolean`

- `properCase: optional boolean`

- `useEnhancedChinaDataset: optional boolean`

- `verify: optional boolean`

### Body Parameters

- `id: string`

### Returns

- `data: object { building, city, company, 12 more }  or object { city, country, line1, 13 more }`

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

  - `IntlAddressCompletion object { building, city, company, 12 more }`

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

    - `building: optional string`

      The building name, if applicable.

    - `city: optional string`

      The city or locality.

    - `company: optional string`

      The company or organization name, if applicable.

    - `country: optional string`

      The country name.

    - `countryCode: optional string`

      The ISO 2-letter country code.

    - `department: optional string`

      The department or floor, if applicable.

    - `error: optional string`

      An error message if resolution failed.

    - `formattedAddress: optional string`

      The full formatted address string.

    - `line1: optional string`

      The first address line.

    - `line2: optional string`

      The second address line.

    - `line3: optional string`

      The third address line.

    - `line4: optional string`

      The fourth address line.

    - `postalOrZip: optional string`

      The postal or ZIP code.

    - `provinceCode: optional string`

      The province or state code.

    - `provinceOrState: optional string`

      The province or state name.

  - `VerifiedAddress object { city, country, line1, 13 more }`

    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: optional string`

      The full country name.

    - `details: optional object { building, buildingType, cityName, 30 more }`

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

      - `building: optional string`

        The building name or number.

      - `buildingType: optional string`

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

      - `cityName: optional string`

        The full city name.

      - `citySecondary: optional string`

        Secondary city information.

      - `cityType: optional string`

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

      - `deliveryAddress: optional string`

        The full delivery address.

      - `dependentLocality: optional string`

        The dependent locality (UK addresses).

      - `doubleDependentLocality: optional string`

        The double dependent locality (UK addresses).

      - `organization: optional string`

        The organization or company name.

      - `postalOrZipPrimary: optional string`

        The primary part of the postal or ZIP code.

      - `postalOrZipSecondary: optional string`

        The secondary part of the postal or ZIP code.

      - `postBox: optional string`

        The post box number.

      - `premise: optional string`

        The premise name or number.

      - `premiseNumber: optional string`

        The premise number.

      - `premiseSecondary: optional string`

        Secondary premise information.

      - `premiseType: optional string`

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

      - `provinceOrStateName: optional string`

        The full name of the province or state.

      - `provinceOrStateType: optional string`

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

      - `street: optional string`

        The street name.

      - `streetPostDirection: optional string`

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

      - `streetPreDirection: optional string`

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

      - `streetType: optional string`

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

      - `subAdministrativeArea: optional string`

        The sub-administrative area.

      - `subBuilding: optional string`

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

      - `SubBuildingFloor: optional string`

        The floor of the sub-building.

      - `subBuildingNumber: optional string`

        The sub-building number.

      - `subBuildingType: optional string`

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

      - `subStreet: optional string`

        The sub-street name.

      - `subStreetPostDirection: optional string`

        The directional suffix for the sub-street.

      - `subStreetPreDirection: optional string`

        The directional prefix for the sub-street.

      - `subStreetType: optional string`

        The type of sub-street.

      - `superAdministrativeArea: optional string`

        The super-administrative area.

      - `telephone: optional string`

        The telephone number associated with the address.

    - `errors: optional Errors`

      Errors encountered during address verification.

      - `city: optional array of string`

        Errors related to the city.

      - `generic: optional array of string`

        Generic errors not tied to a specific field.

      - `line1: optional array of string`

        Errors related to the first address line.

      - `line2: optional array of string`

        Errors related to the second address line.

      - `postalOrZip: optional array of string`

        Errors related to the postal or ZIP code.

      - `provinceOrState: optional array of string`

        Errors related to the province or state.

    - `firmName: optional string`

      The firm or company name, if available.

    - `formattedAddress: optional string`

      The formatted address string.

    - `geoData: optional object { geoAccuracy, latitude, longitude }`

      Geocoding result for the verified address.

      - `geoAccuracy: optional string`

        The geocode accuracy.

      - `latitude: optional string`

        The latitude of the address.

      - `longitude: optional string`

        The longitude of the address.

    - `line2: optional string`

      The second address line.

    - `line3: optional string`

      The third address line, if available.

    - `status: optional Status`

      The verification status of an address.

      - `"verified"`

      - `"corrected"`

      - `"failed"`

    - `summary: optional object { contextIdentificationMatchLevel, lexiconIdentificationMatchLevel, matchScore, 6 more }`

      A summary of the verification process and match levels.

      - `contextIdentificationMatchLevel: optional string`

        Context identification match level.

      - `lexiconIdentificationMatchLevel: optional string`

        Lexicon identification match level.

      - `matchScore: optional number`

        The match score (0-100).

      - `message: optional string`

        Additional message about the verification.

      - `parsingStatus: optional string`

        The parsing status of the address.

      - `postCodeStatus: optional string`

        The status of the postal code.

      - `postProcessedVerificationMatchLevel: optional string`

        The match level after post-processing.

      - `preProcessedVerificationMatchLevel: optional string`

        The match level before post-processing.

      - `verificationStatus: optional string`

        The overall verification status.

    - `zipPlus4: optional string`

      The ZIP+4 code (for US addresses).

- `message: string`

- `status: "success" or "error"`

  - `"success"`

  - `"error"`

### Example

```http
curl https://api.postgrid.com/v1/intl_addver/completions \
    -H 'Content-Type: application/json' \
    -H "X-API-Key: $POSTGRID_ADDRESS_VERIFICATION_API_KEY" \
    -d '{
          "id": "id"
        }'
```

#### 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 object { data, message, status }`

  - `data: object { city, country, line1, 13 more }`

    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: optional string`

      The full country name.

    - `details: optional object { building, buildingType, cityName, 30 more }`

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

      - `building: optional string`

        The building name or number.

      - `buildingType: optional string`

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

      - `cityName: optional string`

        The full city name.

      - `citySecondary: optional string`

        Secondary city information.

      - `cityType: optional string`

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

      - `deliveryAddress: optional string`

        The full delivery address.

      - `dependentLocality: optional string`

        The dependent locality (UK addresses).

      - `doubleDependentLocality: optional string`

        The double dependent locality (UK addresses).

      - `organization: optional string`

        The organization or company name.

      - `postalOrZipPrimary: optional string`

        The primary part of the postal or ZIP code.

      - `postalOrZipSecondary: optional string`

        The secondary part of the postal or ZIP code.

      - `postBox: optional string`

        The post box number.

      - `premise: optional string`

        The premise name or number.

      - `premiseNumber: optional string`

        The premise number.

      - `premiseSecondary: optional string`

        Secondary premise information.

      - `premiseType: optional string`

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

      - `provinceOrStateName: optional string`

        The full name of the province or state.

      - `provinceOrStateType: optional string`

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

      - `street: optional string`

        The street name.

      - `streetPostDirection: optional string`

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

      - `streetPreDirection: optional string`

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

      - `streetType: optional string`

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

      - `subAdministrativeArea: optional string`

        The sub-administrative area.

      - `subBuilding: optional string`

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

      - `SubBuildingFloor: optional string`

        The floor of the sub-building.

      - `subBuildingNumber: optional string`

        The sub-building number.

      - `subBuildingType: optional string`

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

      - `subStreet: optional string`

        The sub-street name.

      - `subStreetPostDirection: optional string`

        The directional suffix for the sub-street.

      - `subStreetPreDirection: optional string`

        The directional prefix for the sub-street.

      - `subStreetType: optional string`

        The type of sub-street.

      - `superAdministrativeArea: optional string`

        The super-administrative area.

      - `telephone: optional string`

        The telephone number associated with the address.

    - `errors: optional Errors`

      Errors encountered during address verification.

      - `city: optional array of string`

        Errors related to the city.

      - `generic: optional array of string`

        Generic errors not tied to a specific field.

      - `line1: optional array of string`

        Errors related to the first address line.

      - `line2: optional array of string`

        Errors related to the second address line.

      - `postalOrZip: optional array of string`

        Errors related to the postal or ZIP code.

      - `provinceOrState: optional array of string`

        Errors related to the province or state.

    - `firmName: optional string`

      The firm or company name, if available.

    - `formattedAddress: optional string`

      The formatted address string.

    - `geoData: optional object { geoAccuracy, latitude, longitude }`

      Geocoding result for the verified address.

      - `geoAccuracy: optional string`

        The geocode accuracy.

      - `latitude: optional string`

        The latitude of the address.

      - `longitude: optional string`

        The longitude of the address.

    - `line2: optional string`

      The second address line.

    - `line3: optional string`

      The third address line, if available.

    - `status: optional Status`

      The verification status of an address.

      - `"verified"`

      - `"corrected"`

      - `"failed"`

    - `summary: optional object { contextIdentificationMatchLevel, lexiconIdentificationMatchLevel, matchScore, 6 more }`

      A summary of the verification process and match levels.

      - `contextIdentificationMatchLevel: optional string`

        Context identification match level.

      - `lexiconIdentificationMatchLevel: optional string`

        Lexicon identification match level.

      - `matchScore: optional number`

        The match score (0-100).

      - `message: optional string`

        Additional message about the verification.

      - `parsingStatus: optional string`

        The parsing status of the address.

      - `postCodeStatus: optional string`

        The status of the postal code.

      - `postProcessedVerificationMatchLevel: optional string`

        The match level after post-processing.

      - `preProcessedVerificationMatchLevel: optional string`

        The match level before post-processing.

      - `verificationStatus: optional string`

        The overall verification status.

    - `zipPlus4: optional string`

      The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" or "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Batch Verification Response

- `IntlAddressVerificationBatchVerificationResponse object { data, message, status }`

  - `data: object { results }`

    - `results: array of object { error, verifiedAddress }`

      - `error: optional string`

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

      - `verifiedAddress: optional object { city, country, line1, 13 more }`

        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: optional string`

          The full country name.

        - `details: optional object { building, buildingType, cityName, 30 more }`

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

          - `building: optional string`

            The building name or number.

          - `buildingType: optional string`

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

          - `cityName: optional string`

            The full city name.

          - `citySecondary: optional string`

            Secondary city information.

          - `cityType: optional string`

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

          - `deliveryAddress: optional string`

            The full delivery address.

          - `dependentLocality: optional string`

            The dependent locality (UK addresses).

          - `doubleDependentLocality: optional string`

            The double dependent locality (UK addresses).

          - `organization: optional string`

            The organization or company name.

          - `postalOrZipPrimary: optional string`

            The primary part of the postal or ZIP code.

          - `postalOrZipSecondary: optional string`

            The secondary part of the postal or ZIP code.

          - `postBox: optional string`

            The post box number.

          - `premise: optional string`

            The premise name or number.

          - `premiseNumber: optional string`

            The premise number.

          - `premiseSecondary: optional string`

            Secondary premise information.

          - `premiseType: optional string`

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

          - `provinceOrStateName: optional string`

            The full name of the province or state.

          - `provinceOrStateType: optional string`

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

          - `street: optional string`

            The street name.

          - `streetPostDirection: optional string`

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

          - `streetPreDirection: optional string`

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

          - `streetType: optional string`

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

          - `subAdministrativeArea: optional string`

            The sub-administrative area.

          - `subBuilding: optional string`

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

          - `SubBuildingFloor: optional string`

            The floor of the sub-building.

          - `subBuildingNumber: optional string`

            The sub-building number.

          - `subBuildingType: optional string`

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

          - `subStreet: optional string`

            The sub-street name.

          - `subStreetPostDirection: optional string`

            The directional suffix for the sub-street.

          - `subStreetPreDirection: optional string`

            The directional prefix for the sub-street.

          - `subStreetType: optional string`

            The type of sub-street.

          - `superAdministrativeArea: optional string`

            The super-administrative area.

          - `telephone: optional string`

            The telephone number associated with the address.

        - `errors: optional Errors`

          Errors encountered during address verification.

          - `city: optional array of string`

            Errors related to the city.

          - `generic: optional array of string`

            Generic errors not tied to a specific field.

          - `line1: optional array of string`

            Errors related to the first address line.

          - `line2: optional array of string`

            Errors related to the second address line.

          - `postalOrZip: optional array of string`

            Errors related to the postal or ZIP code.

          - `provinceOrState: optional array of string`

            Errors related to the province or state.

        - `firmName: optional string`

          The firm or company name, if available.

        - `formattedAddress: optional string`

          The formatted address string.

        - `geoData: optional object { geoAccuracy, latitude, longitude }`

          Geocoding result for the verified address.

          - `geoAccuracy: optional string`

            The geocode accuracy.

          - `latitude: optional string`

            The latitude of the address.

          - `longitude: optional string`

            The longitude of the address.

        - `line2: optional string`

          The second address line.

        - `line3: optional string`

          The third address line, if available.

        - `status: optional Status`

          The verification status of an address.

          - `"verified"`

          - `"corrected"`

          - `"failed"`

        - `summary: optional object { contextIdentificationMatchLevel, lexiconIdentificationMatchLevel, matchScore, 6 more }`

          A summary of the verification process and match levels.

          - `contextIdentificationMatchLevel: optional string`

            Context identification match level.

          - `lexiconIdentificationMatchLevel: optional string`

            Lexicon identification match level.

          - `matchScore: optional number`

            The match score (0-100).

          - `message: optional string`

            Additional message about the verification.

          - `parsingStatus: optional string`

            The parsing status of the address.

          - `postCodeStatus: optional string`

            The status of the postal code.

          - `postProcessedVerificationMatchLevel: optional string`

            The match level after post-processing.

          - `preProcessedVerificationMatchLevel: optional string`

            The match level before post-processing.

          - `verificationStatus: optional string`

            The overall verification status.

        - `zipPlus4: optional string`

          The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" or "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Get Autocomplete Previews Response

- `IntlAddressVerificationGetAutocompletePreviewsResponse object { data, message, status }`

  - `data: array of object { id, description, error, 3 more }`

    - `id: optional 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: optional string`

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

    - `error: optional string`

      An error message if the lookup failed for this result.

    - `highlight: optional string`

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

    - `text: optional string`

      The human-readable address suggestion text.

    - `type: optional 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" or "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Get Autocomplete Advanced Previews Response

- `IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse object { data, message, status }`

  - `data: array of object { id, description, error, 3 more }`

    - `id: optional 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: optional string`

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

    - `error: optional string`

      An error message if the lookup failed for this result.

    - `highlight: optional string`

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

    - `text: optional string`

      The human-readable address suggestion text.

    - `type: optional 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" or "error"`

    - `"success"`

    - `"error"`

### Intl Address Verification Autocomplete Response

- `IntlAddressVerificationAutocompleteResponse object { data, message, status }`

  - `data: object { building, city, company, 12 more }  or object { city, country, line1, 13 more }`

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

    - `IntlAddressCompletion object { building, city, company, 12 more }`

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

      - `building: optional string`

        The building name, if applicable.

      - `city: optional string`

        The city or locality.

      - `company: optional string`

        The company or organization name, if applicable.

      - `country: optional string`

        The country name.

      - `countryCode: optional string`

        The ISO 2-letter country code.

      - `department: optional string`

        The department or floor, if applicable.

      - `error: optional string`

        An error message if resolution failed.

      - `formattedAddress: optional string`

        The full formatted address string.

      - `line1: optional string`

        The first address line.

      - `line2: optional string`

        The second address line.

      - `line3: optional string`

        The third address line.

      - `line4: optional string`

        The fourth address line.

      - `postalOrZip: optional string`

        The postal or ZIP code.

      - `provinceCode: optional string`

        The province or state code.

      - `provinceOrState: optional string`

        The province or state name.

    - `VerifiedAddress object { city, country, line1, 13 more }`

      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: optional string`

        The full country name.

      - `details: optional object { building, buildingType, cityName, 30 more }`

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

        - `building: optional string`

          The building name or number.

        - `buildingType: optional string`

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

        - `cityName: optional string`

          The full city name.

        - `citySecondary: optional string`

          Secondary city information.

        - `cityType: optional string`

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

        - `deliveryAddress: optional string`

          The full delivery address.

        - `dependentLocality: optional string`

          The dependent locality (UK addresses).

        - `doubleDependentLocality: optional string`

          The double dependent locality (UK addresses).

        - `organization: optional string`

          The organization or company name.

        - `postalOrZipPrimary: optional string`

          The primary part of the postal or ZIP code.

        - `postalOrZipSecondary: optional string`

          The secondary part of the postal or ZIP code.

        - `postBox: optional string`

          The post box number.

        - `premise: optional string`

          The premise name or number.

        - `premiseNumber: optional string`

          The premise number.

        - `premiseSecondary: optional string`

          Secondary premise information.

        - `premiseType: optional string`

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

        - `provinceOrStateName: optional string`

          The full name of the province or state.

        - `provinceOrStateType: optional string`

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

        - `street: optional string`

          The street name.

        - `streetPostDirection: optional string`

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

        - `streetPreDirection: optional string`

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

        - `streetType: optional string`

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

        - `subAdministrativeArea: optional string`

          The sub-administrative area.

        - `subBuilding: optional string`

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

        - `SubBuildingFloor: optional string`

          The floor of the sub-building.

        - `subBuildingNumber: optional string`

          The sub-building number.

        - `subBuildingType: optional string`

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

        - `subStreet: optional string`

          The sub-street name.

        - `subStreetPostDirection: optional string`

          The directional suffix for the sub-street.

        - `subStreetPreDirection: optional string`

          The directional prefix for the sub-street.

        - `subStreetType: optional string`

          The type of sub-street.

        - `superAdministrativeArea: optional string`

          The super-administrative area.

        - `telephone: optional string`

          The telephone number associated with the address.

      - `errors: optional Errors`

        Errors encountered during address verification.

        - `city: optional array of string`

          Errors related to the city.

        - `generic: optional array of string`

          Generic errors not tied to a specific field.

        - `line1: optional array of string`

          Errors related to the first address line.

        - `line2: optional array of string`

          Errors related to the second address line.

        - `postalOrZip: optional array of string`

          Errors related to the postal or ZIP code.

        - `provinceOrState: optional array of string`

          Errors related to the province or state.

      - `firmName: optional string`

        The firm or company name, if available.

      - `formattedAddress: optional string`

        The formatted address string.

      - `geoData: optional object { geoAccuracy, latitude, longitude }`

        Geocoding result for the verified address.

        - `geoAccuracy: optional string`

          The geocode accuracy.

        - `latitude: optional string`

          The latitude of the address.

        - `longitude: optional string`

          The longitude of the address.

      - `line2: optional string`

        The second address line.

      - `line3: optional string`

        The third address line, if available.

      - `status: optional Status`

        The verification status of an address.

        - `"verified"`

        - `"corrected"`

        - `"failed"`

      - `summary: optional object { contextIdentificationMatchLevel, lexiconIdentificationMatchLevel, matchScore, 6 more }`

        A summary of the verification process and match levels.

        - `contextIdentificationMatchLevel: optional string`

          Context identification match level.

        - `lexiconIdentificationMatchLevel: optional string`

          Lexicon identification match level.

        - `matchScore: optional number`

          The match score (0-100).

        - `message: optional string`

          Additional message about the verification.

        - `parsingStatus: optional string`

          The parsing status of the address.

        - `postCodeStatus: optional string`

          The status of the postal code.

        - `postProcessedVerificationMatchLevel: optional string`

          The match level after post-processing.

        - `preProcessedVerificationMatchLevel: optional string`

          The match level before post-processing.

        - `verificationStatus: optional string`

          The overall verification status.

      - `zipPlus4: optional string`

        The ZIP+4 code (for US addresses).

  - `message: string`

  - `status: "success" or "error"`

    - `"success"`

    - `"error"`
