VA Lighthouse AddressValidation-v3 API

Address Standardization and Validation endpoints

Operations 3

POST /validate Validates and standardizes an address #
POST /candidate Discovers possible addresses when a request could match multiple records #
GET /locality Returns the city and state or province associated with a zip code or… #

Documentation

📖
Documentation
https://developer.va.gov/explore/api/va-facilities/docs
📖
Documentation
https://developer.va.gov/explore/api/va-forms/docs
📖
Documentation
https://developer.va.gov/explore/api/benefits-claims/docs
📖
Authentication
https://developer.va.gov/explore/api/benefits-claims/authorization-code
📖
Documentation
https://developer.va.gov/explore/api/benefits-intake/docs
📖
Documentation
https://developer.va.gov/explore/api/benefits-documents/docs
📖
Authentication
https://developer.va.gov/explore/api/benefits-documents/client-credentials
📖
Documentation
https://developer.va.gov/explore/api/benefits-reference-data/docs
📖
Documentation
https://developer.va.gov/explore/api/appeals-status/docs
📖
Documentation
https://developer.va.gov/explore/api/appealable-issues/docs
📖
Documentation
https://developer.va.gov/explore/api/legacy-appeals/docs
📖
Documentation
https://developer.va.gov/explore/api/patient-health/docs
📖
Authentication
https://developer.va.gov/explore/api/patient-health/authorization-code
📖
Documentation
https://developer.va.gov/explore/api/clinical-health/docs
📖
Authentication
https://developer.va.gov/explore/api/clinical-health/authorization-code
📖
Documentation
https://developer.va.gov/explore/api/community-care-eligibility/docs
📖
Documentation
https://developer.va.gov/explore/api/veteran-service-history-and-eligibility/docs
📖
Documentation
https://developer.va.gov/explore/api/veteran-confirmation/docs
📖
Documentation
https://developer.va.gov/explore/api/address-validation/docs
📖
Documentation
https://developer.va.gov/explore/api/direct-deposit-management/docs
📖
Authentication
https://developer.va.gov/explore/api/direct-deposit-management/client-credentials
📖
Documentation
https://developer.va.gov/explore/api/va-letter-generator/docs
📖
Authentication
https://developer.va.gov/explore/api/va-letter-generator/client-credentials
📖
Documentation
https://developer.va.gov/explore/api/loan-review/docs
📖
Authentication
https://developer.va.gov/explore/api/loan-review/client-credentials

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/va-gov-addressvalidation-v3-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

va-gov-addressvalidation-v3-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Address Validation V3 API
  description: The Address Validation API accepts and validates an address and standardizes it for mailing.
  license:
    name: Creative Commons
    url: https://developer.va.gov/terms-of-service
  version: '3'
servers:
- url: https://sandbox-api.va.gov/services/address-validation/{version}
  description: Sandbox
  variables:
    version:
      default: v3
- url: https://api.va.gov/services/address-validation/{version}
  description: Production
  variables:
    version:
      default: v3
security:
- apikey: []
tags:
- name: AddressValidation-v3
  description: Address Standardization and Validation endpoints
paths:
  /validate:
    post:
      tags:
      - AddressValidation-v3
      summary: Validates and standardizes an address
      description: 'This service will accept an address, standardize it based on country, validate that the address is deliverable, and return the address with any inferred or corrected data. If an address is not found, or if the confidence score is low, it may be useful to try the POST /candidate endpoint that can return multiple possible matches.


        Message KeyMessage CodeDescription


        zipCode4.Sizesize must be between 0 and 4


        addressLine2.Sizesize must be between 0 and 100


        addressLine3.Sizesize must be between 0 and 100


        zipCode5.Sizesize must be between 0 and 5


        country.countryCodeISO2.Sizesize must be between 0 and 2


        country.countryCodeFIPS.Sizesize must be between 0 and 2


        cityName.Sizesize must be between 0 and 100


        intPostalCode.Sizesize must be between 0 and 100


        addressLine1.Sizesize must be between 0 and 100


        country.countryCodeISO3.Sizesize must be between 0 and 3


        province.provinceName.Sizesize must be between 0 and 255


        deliveryPointNotConfirmedADDR305VA Profile Validation Failed: Delivery Point is Not Confirmed for Domestic Correspondence Addresses


        lowConfidenceScoreADDR306VaProfile Validation Failed: Confidence Score less than {0}


        additionalInputADDR307VaProfile Validation Failed: Additional Input found please review


        InvalidInputCharactersADDR314The address contains an invalid white space or control character. This error cannot be used in conjunction with an address override indicator. Invalid characters include: backspace, form feed, new line, carriage return, or a control character.


        SpectrumServiceErrorADDRVAL101The Spectrum Service returned an error


        SpectrumServiceAddressErrorADDRVAL102The Spectrum Service returned an address error


        CountryLookupServiceErrorADDRVAL103The Country Lookup Service returned an error


        InvalidRequestErrorADDRVAL105The request was invalid


        country.countryName.SizeADDRVAL106size must be between 0 and 35


        state.stateName.SizeADDRVAL107size must be between 0 and 50


        AddressCouldNotBeCorrectedADDRVAL109The Address could not be corrected


        CountryNotSupportedADDRVAL110The Address Country is not supported at this time


        DualAddressErrorADDRVAL111This dual address is not in the proper format, please make sure the street address and PO box are valid for the 5 digit zip code entered


        AddressCouldNotBeFoundADDRVAL112The Address could not be found


        CountryLookupUnavailableADDRVAL114The Country lookup service could not be reached


        UniqueZipCodeADDRVAL115The address that was validated is in a unique zip code. The address is deliverable, but the street address was not verified and the geolocation may not be accurate.


        DomesticProvinceCheckADDRVAL115Province Name or Province Code should not be sent with a state code or state name on a domestic address.


        PostalCodeInputADDRVAL116Please send only the ZipCode5 or intPostalCode.


        InvalidRequestCountryADDRVAL201Only one of either country name or country code is required


        InvalidRequestStateADDRVAL202Only one of either state name or state code is required


        InvalidRequestStreetAddressADDRVAL203One of addressLine1, addressLine2 or addressLine3 must be provided


        InvalidRequestNonStreetAddressADDRVAL204The request needs at least one address line and one non-address line field populated in order to process the request


        InvalidRequestPostalCodeADDRVAL205Only one of either zipCode5 or international postal code is required


        MultipleAddressErrorADDRVAL206Multiple matches found for this address


        MissingReferenceDataADDRVAL207The Address Validation API does not have the databases necessary to validate this address completely


        InsufficientInputDataADDRVAL208Insufficient data provided for validation process'
      operationId: POST:/validate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddressValidationRequest'
        required: true
      responses:
        '200':
          description: A Response which indicates a successful Request.  The Response may contain "messages" that could describe warnings or further information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddressValidationResponse'
        '400':
          description: There was an error encountered processing the Request.  Response will contain a  \"messages\" element that will provide further information on the error.  This request shouldn't be retried until corrected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
        '401':
          description: Authorization information not provided
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: No API key found in request
        '403':
          description: Invalid authorization
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: You cannot consume this service
        '404':
          description: The record you requested to retrieve or update could not be found.  Response may contain a  "messages" element that will provide further information on the error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
        '413':
          description: Payload too large
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: Request size limit exceeded
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: API rate limit exceeded
        '500':
          description: There was an error encountered processing the Request.  Response will contain a  "messages" element that will provide further information on the error.  Please retry.  If problem persists, please contact support with a copy of the Response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
  /candidate:
    post:
      tags:
      - AddressValidation-v3
      summary: Discovers possible addresses when a request could match multiple records
      description: 'This endpoint will return all possible matches for the given address request input. You may use this endpoint if an address was not found using POST /validate, or if the confidence score was low.


        Message KeyMessage CodeDescription


        zipCode4.Sizesize must be between 0 and 4


        addressLine2.Sizesize must be between 0 and 100


        addressLine3.Sizesize must be between 0 and 100


        zipCode5.Sizesize must be between 0 and 5


        country.countryCodeISO2.Sizesize must be between 0 and 2


        country.countryCodeFIPS.Sizesize must be between 0 and 2


        cityName.Sizesize must be between 0 and 100


        intPostalCode.Sizesize must be between 0 and 100


        addressLine1.Sizesize must be between 0 and 100


        country.countryCodeISO3.Sizesize must be between 0 and 3


        province.provinceName.Sizesize must be between 0 and 255


        InvalidInputCharactersADDR314The address contains an invalid white space or control character. This error cannot be used in conjunction with an address override indicator. Invalid characters include: backspace, form feed, new line, carriage return, or a control character.


        SpectrumServiceErrorADDRVAL101The Spectrum Service returned an error


        CountryLookupServiceErrorADDRVAL103The Country Lookup Service returned an error


        InvalidRequestErrorADDRVAL105The request was invalid


        country.countryName.SizeADDRVAL106size must be between 0 and 35


        state.stateName.SizeADDRVAL107size must be between 0 and 50


        CandidateAddressNotFoundADDRVAL108No Candidate Address Found


        CountryNotSupportedADDRVAL110The Address Country is not supported at this time


        CountryLookupUnavailableADDRVAL114The Country lookup service could not be reached


        UniqueZipCodeADDRVAL115The address that was validated is in a unique zip code. The address is deliverable, but the street address was not verified and the geolocation may not be accurate.


        InvalidRequestCountryADDRVAL201Only one of either country name or country code is required


        InvalidRequestStateADDRVAL202Only one of either state name or state code is required


        InvalidRequestStreetAddressADDRVAL203One of addressLine1, addressLine2 or addressLine3 must be provided


        InvalidRequestNonStreetAddressADDRVAL204The request needs at least one address line and one non-address line field populated in order to process the request


        InvalidRequestPostalCodeADDRVAL205Only one of either zipCode5 or international postal code is required'
      operationId: POST:/candidate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CandidateAddressRequest'
        required: true
      responses:
        '200':
          description: A Response which indicates a successful Request.  The Response may contain "messages" that could describe warnings or further information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CandidateAddressResponse'
        '400':
          description: There was an error encountered processing the Request.  Response will contain a  \"messages\" element that will provide further information on the error.  This request shouldn't be retried until corrected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
        '401':
          description: Authorization information not provided
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: No API key found in request
        '403':
          description: Invalid authorization
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: You cannot consume this service
        '404':
          description: The record you requested to retrieve or update could not be found.  Response may contain a  "messages" element that will provide further information on the error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
        '413':
          description: Payload too large
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: Request size limit exceeded
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: API rate limit exceeded
        '500':
          description: There was an error encountered processing the Request.  Response will contain a  "messages" element that will provide further information on the error.  Please retry.  If problem persists, please contact support with a copy of the Response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
  /locality:
    get:
      tags:
      - AddressValidation-v3
      summary: Returns the city and state or province associated with a zip code or…
      operationId: GET:/locality
      parameters:
      - name: zipCode5
        in: query
        description: Five-digit postal code assigned by United States Post Office to postal address.
        required: false
        schema:
          type: string
        example: 22911
      - name: intPostalCode
        in: query
        description: Alphanumeric code used by country other than United States for postal addresses.
        required: false
        schema:
          type: string
        example: M5J 2L2
      responses:
        '200':
          description: A Response which indicates a successful Request.  The Response may contain "messages" that could describe warnings or further information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CityStateAddressV3Response'
        '400':
          description: There was an error encountered processing the Request.  Response will contain a  \"messages\" element that will provide further information on the error.  This request shouldn't be retried until corrected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
        '401':
          description: Authorization information not provided
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: No API key found in request
        '403':
          description: Invalid authorization
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: You cannot consume this service
        '404':
          description: The record you requested to retrieve or update could not be found.  Response may contain a  "messages" element that will provide further information on the error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
        '413':
          description: Payload too large
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: Request size limit exceeded
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                example:
                  message: API rate limit exceeded
        '500':
          description: There was an error encountered processing the Request.  Response will contain a  "messages" element that will provide further information on the error.  Please retry.  If problem persists, please contact support with a copy of the Response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResponse'
components:
  schemas:
    County:
      type: object
      properties:
        countyName:
          maxLength: 35
          minLength: 0
          type: string
          example: Albemarle Count
        countyCode:
          maxLength: 5
          minLength: 0
          pattern: '[0-9]+'
          type: string
          example: '51003'
      description: US addresses only. The name of the county in the address
    CandidateAddressResponse:
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
        candidateAddresses:
          maxItems: 100
          minItems: 0
          type: array
          items:
            $ref: '#/components/schemas/ResponseAddress'
        overrideValidationKey:
          type: integer
          description: Hash code for current request to be validated during overrides
          format: int32
    ResponseAddress:
      required:
      - county
      type: object
      properties:
        addressLine1:
          maxLength: 100
          minLength: 0
          type: string
          description: 'First line of postal address, typically house or apartment number and street, including unit or apartment number if applicable, or Post Office Box address.<br><br>                            Business Rule: Optional field, however, at least one of the 3 address lines must have an valid address.'
          example: 590 Peter Jefferson Pkwy
        addressLine2:
          maxLength: 100
          minLength: 0
          type: string
          description: 'Second line of postal address, typically whatever address elements do not fit or are not assigned to first address line. In Dual Address format the Post Office Box value goes on this line.                                    <br><br>                                    Business Rule: Optional field, however, at least one of the 3 address lines must have an valid address.'
          example: 2nd Floor
        addressLine3:
          maxLength: 100
          minLength: 0
          type: string
          description: 'Third line of postal address, typically whatever address elements do not fit or are not assigned to first two address lines.                                    <br><br>                                    Business Rule: Optional field, however, at least one of the 3 address lines must have an valid address.'
          example: Suite 250
        cityName:
          maxLength: 100
          minLength: 0
          type: string
          description: Name of city or town of postal address.
          example: Charlottesville
        zipCode5:
          maxLength: 5
          minLength: 0
          type: string
          description: Five-digit postal code assigned by United States Post Office to postal address.
          example: '22911'
        zipCode4:
          maxLength: 4
          minLength: 0
          pattern: '[0-9]+'
          type: string
          description: Four-digit postal code assigned by United States Post Office to postal address.
          example: '1111'
        intPostalCode:
          maxLength: 100
          minLength: 0
          type: string
          description: Alphanumeric code used by country other than United States for postal addresses.
          example: N0A0C0
        state:
          $ref: '#/components/schemas/State'
        province:
          $ref: '#/components/schemas/Province'
        country:
          $ref: '#/components/schemas/Country'
        addressPOU:
          type: string
          description: Purpose for which postal address has been specified by address owner or authorized third party to be used. A Residence address is understood to also be used for all purposes, unless distinct address is specified for one or more other uses.
          enum:
          - RESIDENCE
          - CORRESPONDENCE
        county:
          $ref: '#/components/schemas/County'
        geocode:
          $ref: '#/components/schemas/Geocode'
        deliveryPointValidation:
          type: string
          description: 'For domestic and CORRESPONDENCE addresses only. Without DPV, the address validation process only verifies that an individual address is within a range of valid addresses for the given street. For example, the USPS data indicates that the range of addresses on Maple Lane is 500 to 1000. You attempt to validate an address of 610 Maple Ln. Without DPV, this address would appear to be valid because it is in the range of 500 to 1000. However, the address 610 Maple Ln does not exist: the house numbers in this section of the street are 608, 609, 613, and 616. With DPV processing, you would be alerted to the fact that 610 Maple Ln does not exist.'
          enum:
          - CONFIRMED
          - STREET_NUMBER_VALIDATED_BUT_MISSING_UNIT_NUMBER
          - STREET_NUMBER_VALIDATED_BUT_BAD_UNIT_NUMBER
          - MULTIPLE_MATCHES_FOUND
          - UNDELIVERABLE
          - MISSING_ZIP
          - FALSE_POSITIVE
        addressType:
          maxLength: 35
          minLength: 0
          type: string
          description: Indicates whether address is Domestic, International or Overseas Military. Based on the Address Type different fields and business rules apply. Automatically determined during address validation service processing.
          example: Domestic
        confidence:
          type: number
          description: A value from 0 to 100. A calculation of how closely the given address matches the address found in the databases. The closer the match the higher the score. No match is 0, a perfect match is 100. For addresses to pass, a threshold of 80 for domestic addresses and 70 for international addresses is required.
          format: double
          example: 90
    Geocode:
      type: object
      properties:
        calcDate:
          type: string
          description: Date when geocode precision calculation value occurred. Can be used to determine if more accurate mapping functionality is now available and therefore geocode precision could be recalculated.<br><br>Date/Time format; yyyy-mm-ddThh:mm:ss.fffZ
          format: date-time
        locationPrecision:
          type: number
          description: Indicates how precisely an address can be placed from a geocoding perspective.
          format: double
          example: 10
        latitude:
          type: number
          description: Calculated value of Latitude coordinates for address
          format: double
          example: 38.0293
        longitude:
          type: number
          description: Calculated value of Longitude coordinates for address.
          format: double
          example: -78.4767
    CandidateAddressRequest:
      required:
      - address
      type: object
      properties:
        address:
          $ref: '#/components/schemas/RequestAddress'
      description: Request format to describe the address to correct and validate.
    State:
      type: object
      properties:
        stateName:
          maxLength: 50
          minLength: 0
          type: string
          description: The name for the state of the requested address
          example: Virginia
        stateCode:
          type: string
          description: The 2-digit code for the state of an address
          example: VA
      description: Provide either state name or code, but not both
    Province:
      type: object
      properties:
        provinceName:
          maxLength: 255
          minLength: 0
          type: string
          description: The name for the province of the requested address
          example: Ontario
        provinceCode:
          type: string
          description: The 2-digit code for the province of an address
          example: 'ON'
      description: Name of political subdivision used by country other than United States in its postal addresses, such as name of province, territory, state, county, etc.
    AddressValidationResponse:
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
        address:
          $ref: '#/components/schemas/ResponseAddress'
        overrideValidationKey:
          type: integer
          description: Hash code for current request to be validated during overrides
          format: int32
    Locality:
      required:
      - cityName
      - cityType
      - country
      - province
      - state
      type: object
      properties:
        country:
          $ref: '#/components/schemas/Country'
        state:
          $ref: '#/components/schemas/State'
        province:
          $ref: '#/components/schemas/Province'
        cityName:
          maxLength: 100
          minLength: 0
          type: string
          description: Name of city or town of postal address.
          example: Charlottesville
        cityType:
          type: string
          description: The USPS standardized city name type (United States localities only).<br><br><br>V - Vanity (non-mailing) city name. <br>P - Primary. The city name is the primary mailing city name. <br>S - Secondary. The city name is an alternate city name but is acceptable. A city can have multiple secondary city names.
          example: P
    AddressValidationRequest:
      required:
      - address
      type: object
      properties:
        address:
          $ref: '#/components/schemas/RequestAddress'
      description: Request format to describe the address to correct and validate.
    CityStateAddressV3Response:
      required:
      - intPostalCode
      - zipCode5
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
        zipCode5:
          maxLength: 5
          minLength: 0
          type: string
          description: Five-digit postal code assigned by United States Post Office to postal address.
          example: '22911'
        intPostalCode:
          maxLength: 100
          minLength: 0
          type: string
          description: Alphanumeric code used by country other than United States for postal addresses.
          example: N0A0C0
        locality:
          maxItems: 999
          minItems: 0
          type: array
          items:
            $ref: '#/components/schemas/Locality'
    RequestAddress:
      type: object
      properties:
        addressLine1:
          maxLength: 100
          minLength: 0
          type: string
          description: 'First line of postal address, typically house or apartment number and street, including unit or apartment number if applicable, or Post Office Box address.<br><br>                            Business Rule: Optional field, however, at least one of the 3 address lines must have an valid address.'
          example: 590 Peter Jefferson Pkwy
        addressLine2:
          maxLength: 100
          minLength: 0
          type: string
          description: 'Second line of postal address, typically whatever address elements do not fit or are not assigned to first address line. In Dual Address format the Post Office Box value goes on this line.                                    <br><br>                                    Business Rule: Optional field, however, at least one of the 3 address lines must have an valid address.'
          example: 2nd Floor
        addressLine3:
          maxLength: 100
          minLength: 0
          type: string
          description: 'Third line of postal address, typically whatever address elements do not fit or are not assigned to first two address lines.                                    <br><br>                                    Business Rule: Optional field, however, at least one of the 3 address lines must have an valid address.'
          example: Suite 250
        cityName:
          maxLength: 100
          minLength: 0
          type: string
          description: Name of city or town of postal address.
          example: Charlottesville
        zipCode5:
          maxLength: 5
          minLength: 0
          type: string
          description: Five-digit postal code assigned by United States Post Office to postal address.
          example: '22911'
        zipCode4:
          maxLength: 4
          minLength: 0
          pattern: '[0-9]+'
          type: string
          description: Four-digit postal code assigned by United States Post Office to postal address.
          example: '1111'
        intPostalCode:
          maxLength: 100
          minLength: 0
          type: string
          description: Alphanumeric code used by country other than United States for postal addresses.
          example: N0A0C0
        state:
          $ref: '#/components/schemas/State'
        province:
          $ref: '#/components/schemas/Province'
        country:
          $ref: '#/components/schemas/Country'
        addressPOU:
          type: string
          description: Purpose for which postal address has been specified by address owner or authorized third party to be used. A Residence address is understood to also be used for all purposes, unless distinct address is specified for one or more other uses.
          enum:
          - RESIDENCE
          - CORRESPONDENCE
    ServiceResponse:
      type: object
      properties:
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
    Message:
      required:
      - code
      - key
      - severity
      type: object
      properties:
        code:
          type: string
        key:
          type: string
        text:
          type: string
        severity:
          type: string
          enum:
          - INFO
          - WARN
          - ERROR
          - FATAL
        potentiallySelfCorrectingOnRetry:
          type: boolean
    Country:
      type: object
      properties:
        countryName:
          maxLength: 35
          minLength: 0
          type: string
          description: Name of country address.
          example: United States
        countryCodeFIPS:
          maxLength: 2
          minLength: 0
          pattern: ^[a-zA-Z]+$
          type: string
          description: Two-letter country codes using FIPS. Assigned via lookup table.
          example: US
        countryCodeISO2:
          maxLength: 2
          minLength: 0
          pattern: ^[a-zA-Z]+$
          type: string
          description: Two-letter country codes defined in ISO 3166-1, part of ISO 3166 standard.
          example: US
        countryCodeISO3:
          maxLength: 3
          minLength: 0
          pattern: ^[a-zA-Z]+$
          type: string
          description: Three-letter country codes defined in ISO 3166-1, part of ISO 3166 standard.
          example: USA
      description: Provide either country name or code, but not both
  securitySchemes:
    apikey:
      type: apiKey
      name: apikey
      in: header