Skip to content

Demyst types

Demyst validates all received inputs before sending to provider. Required formats are as follows:

Data Type Description
Boolean JSON boolean
Country Must be a 2 or 3 character iso code https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 or https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
DateTime Must be yyyy-MM-dd with optional time, "1992-04-11", "1992-04-11T01:22", or "1992-04-11T01:22:12"
Domain Domain name, for example demyst.com
EmailAddress Email address
Gender m or f. Case insensitive
Ip4 IP address (version 4)
Ip6 IP address (version 6)
Latitude JSON Numbr between -90.090.0
Longitude JSON Numbr between -180.0180.0
NaicsCode String of only digits, 5 or 6 charcaters
Number JSON number. Supports integral and decimal numbers of arbitrary size and precision.
Percentage JSON number between 0.0 and 100.0
Phone Country dependent, for US must be 10 digits without leading one or 11 digits with, area code must be valid.
PostCode If US 5 or 9 digit postcode, dash or no dash separating. other countries need be non empty
SicCode 4 digit character string
State If US it must be a valid 2 character state code or state name. Empty otherwise.
Street Non-empty
Url Starts with http: or https:
UsEin Dashes and spaces stripped from input by us, must be 9 numeric character string
UsSn Dashes and spaces stripped from input by us, must be 9 numeric character string
YearMonth In format yyy-MM
Year JSON number