Table of Contents
/Legal/ValidatePNr
Allows the client to validate a personal number before using it to apply for a Legal Identity.
JSON
- Request
{ "countryCode": Required(Str(PCountryCode)), "pnr": Required(Str(PPNr)) }
- Response (if successful)
{ "countrySupported": Required(Boolean(PCountrySupported)), "isValid": Optional(Boolean(PIsValid)), "normalized": Optional(Str(PNormalized)) }
XML
- Request
<ValidatePNr xmlns="https://waher.se/Schema/BrokerAgent.xsd" countryCode=(Required(Str(PCountryCode))) pnr=(Required(Str(PPNr))) />
- Response (if successful)
<ValidatePNrResponse xmlns="https://waher.se/Schema/BrokerAgent.xsd" countrySupported=Required(Boolean(PCountrySupported)) isValid=Optional(Boolean(PIsValid)) normalized=Optional(Str(PNormalized))/>
Input Parameters
Parameter | Description |
---|---|
PCountryCode |
ISO 3166-1 country code. |
PPNr |
Personal number entry to validate. |
Response Parameters
Parameter | Description |
---|---|
PCountrySupported |
If country is supported and recognized by the personal number validator on the broker. |
PIsValid |
If the entry was found to be valid. |
PNormalized |
The normal form of the personal number entry. |
Javascript Library
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Legal.ValidatePNr(CountryCode,PNr);