Address Batch Cleansing

Data must be provided in a csv file, containing the following columns.

ColumnTypeRequiredDescription
idstringA unique identifier for the row
company_namestringThe name of the company at the address
line_1string✔️The first address line
line_2stringThe second address line
localitystring✔️The locality of the address
provincestringThe province of the address
postal_codestring✔️The postal code of the address
countrystringThe country provided in ISO 3166 format

It is possible to perform more than one type of cleanse on a single CSV file. For example, an address cleanse could be run on a file, followed by an email cleanse. Make sure that all the required columns are included for each cleanse you wish to perform. The columns can be included in any order. Fields can be left blank if the column is not applicable.

Cleansed File

The returned file will contain the provided columns, and the following:

  • address_match_status
  • address_error_codes
  • cleansed_company_name
  • cleansed_line_1
  • cleansed_line_2
  • cleansed_locality
  • cleansed_province
  • cleansed_postal_code
  • cleansed_country

The address_match_status column will contain the status of the cleanse.

StatusDescription
full_matchThe address was a perfect match
partial_matchThe address was a close match, and has been updated
no_matchThere was no potential match for the address
errorThere was an error with the address cleanse

The address_error_codes column will contain a comma separated list of reasons why the cleanse wasn't a full match

company_name

ErrorDescription
company_name_removedThe provided company name was not present in the cleansed address
company_name_addedNo company name was provided but one is present in the cleansed address
company_name_mismatchThe provided company name does not match the company name in the cleansed address

line_1 and line_2

ErrorDescription
street_type_mismatchThe provided street type does not match the street type in the cleansed address
house_or_flat_number_addedNo house or flat number was provided but one is present in the cleansed address
house_or_flat_number_not_foundThe provided house or flat number was not present in the cleansed address
house_or_flat_number_mismatchThe provided house or flat number does not match the house or flat number in the cleansed address
address_line_mismatchThe provided street line does not match the street line in the cleansed address

locality

ErrorDescription
locality_name_removedThe provided locality was not present in the cleansed address
locality_name_addedNo locality was provided but one is present in the cleansed address
locality_name_mismatchThe provided locality does not match the locality in the cleansed address

province

ErrorDescription
province_name_removedThe provided province name was not present in the cleansed address
province_name_addedNo province name was provided but one is present in the cleansed address
province_name_mismatchThe provided province name does not match the province name in the cleansed address

postal_code

ErrorDescription
postal_code_addedNo postal code was provided but one is present in the cleansed address
postal_code_mismatchThe provided postal code is valid but does not match the postal code in the cleansed address
incorrect_postal_code_areaThe area is incorrect in the provided postal code
incorrect_postal_code_districtThe district is incorrect in the provided postal code
incorrect_postal_code_subdistrictThe subdistrict is incorrect in the provided postal code
incorrect_postal_code_sectorThe sector is incorrect in the provided postal code
incorrect_postal_code_unitThe unit is incorrect in the provided postal code
incorrect_postal_codeThe provided postal code is incorrect
postal_code_invalidThe provided postal code is not valid

no_match

ErrorDescription
address_invalidThe provided address is not valid
postal_code_missingNo postal code was provided and no similar address could be found
postal_code_invalidThe provided postal code is not valid

error

ErrorDescription
unknown_server_errorAn unknown server error ocurred
unknown_errorAn unknown error ocurred