Data cleansing
Validate and normalise an address
Validates and normalises an address: corrects typos, fills in postal code and town, and returns the official DAR form. For checkout and forms where the customer typed the address themselves.
POST
Authentication
Authorizationstringheaderrequired
Your API key as a Bearer token.
Body
application/jsondoerstring | nulletagestring | nullhusnrstringrequiredpostnrstringrequiredvejnavnstringrequiredRequest
Response
application/json
Validation result (valid, score and id — or suggestions)
One of these shapes:
Exact match.
idstring<uuid>requiredThe DAR id of the address found.
scoreenum<number>requiredvalidenum<boolean>requiredThe house number exists, but not the given floor/door. adgangsadresse_id is the house number’s id.
scoreenum<number>requiredvalidenum<boolean>requiredreasonenum<string>requiredmessagestringrequiredadgangsadresse_idstring<uuid>requiredNo match — with the nearest candidates.
scoreenum<number>requiredvalidenum<boolean>requiredreasonenum<string>requiredsuggestionsobject[]requiredShow child attributes(4)
suggestions.idstring<uuid>suggestions.navnstringThe street name.
suggestions.husnrstringsuggestions.similaritynumberSimilarity 0–1.
