Parameters for Options
The following table lists the options that control the type of information returned by ValidateMailingAddress.
Parameter |
Description |
---|---|
Option.IncludeCountryInAddressBlock |
Indicates whether the country should appear at the end of the Address Block. For international mailing, the country needs to be a part of the address block. For domestic mailing, it is superfluous.
|
Option.OutputCasing |
Specifies the casing of the output data. The possible values are:
Note: The default is M (Mixed).
|
Option.OutputAddressBlocks |
Specifies whether to return a formatted version of the address as it would be printed on a physical mailpiece. Each line of the address is returned in a separate address block field. There can be up to nine address block output fields: AddressBlock1 through AddressBlock9. For example, this input address:
AddressLine1: 4200 Parliament Place Results in this address block output:
AddressBlock1: 4200 PARLIAMENT PL STE 600 ValidateMailingAddress formats the address into address blocks using postal authority standards. The country name is returned using the Universal Postal Union country name. Note that the option Option.CountryFormat does not affect the country name in the address block, it only affects the name returned in the Country output field. For addresses outside the U.S. and Canada, if ValidateMailingAddress is unable to validate the address, no address blocks are returned. For addresses in the U.S. and Canada, address blocks are returned even if validation fails.
|