Create Address

Creates address in Address Exchange using structured data

Resource

POST    https://hosted.mastersoftgroup.com/harmony/rest/address/exchange/v1/addresses

Request

The request body is similar to AddressRestRequest object.

{
  // Part of Country 
  "country": "AU", //Required in ISO-2 format. 
  
  //  Part of Premise level data. Need at least one (usually streetNumber)
  "streetNumber": "string", //  Optional. Most commonly used in 99% addresses.
  "buildingName": "string", //  Optional.
  "flatUnitNumber": "string", //  Optional. Must use with flatUnitType
  "flatUnitType": "string", //  Optional. Must use with flatUnitNumber
  "floorLevelNumber": "string", //  Optional. Must use with floorLevelType
  "floorLevelType": "string", //  Optional. Must use with floorLevelNumber
  
  // Part of Street level data
  "streetName": "string", // Required. Must use with streetType
  "streetType": "string", // Required. Must use with streetName
  
  //Part of City level data
  "suburb": "string", // Required. Known as City. 
  "postcode": "string", // Optional. Known as Zip or Postcode. 
  
  //  Part of Province level data
  "state": "string", // Required.
  
  //  Geocodes in wgs84 EPSG: 4326
  "latitude": "string", // wgs84 EPSG: 4326
  "longitude": "string" // wgs84 EPSG: 4326
}

Creating an address requires completion of the all the data levels being:

  1. Premise level: One or many. Most common is streetNumber.

    1. buildingName,

    2. flatUnitNumber and flatUnitType,

    3. floorLevelNumber, floorLevelType,

    4. streetNumber

  2. Street level: Completion of both parts is required.

    1. streetName and streetType

  3. City level: Suburb must be completed. Postcode is optional

    1. suburb

    2. postcode

  4. Province level:

    1. state has the same meaning as province.

  5. Country level:

    1. country in ISO2 format is required.

Response

The response plays back the submitted Address with status.

Last updated