RegulationAddress
Methods
GetAvailableRegulations
Searches for the available regulation for a link.
To call this method, make sure your service account has one of the following roles:
Parameters
country_code:
string
The country code according to the ISO 3166-1 alpha-2
phone_category_name:
string
The phone category name. See the GetPhoneNumberCategories method
phone_region_code:
string
OptionalThe phone region code. See the GetRegions method
Returns
available_address:
The available RegulationAddress records
count_in_progress:
number
The count of RegulationAddress in progress status
result:
boolean
Whether the user has at least one regulation address which is appropriate for verification or the verification is not required. If result is false, the regulations address needs to be created
GetCountries
Gets all countries.
To call this method, make sure your service account has one of the following roles:
Parameters
country_code:
string
OptionalThe country code according to the ISO 3166-1 alpha-2
Returns
count:
number
result:
GetRegions
Gets available regions in a country.
To call this method, make sure your service account has one of the following roles:
Parameters
city_name:
string
OptionalThe pattern of city's name
count:
number
OptionalThe returned regions count
country_code:
string
The country code according to the ISO 3166-1 alpha-2
offset:
number
OptionalThe first N records are skipped in the output
phone_category_name:
string
The phone category name. See the GetPhoneNumberCategories method
Returns
count:
number
result:
GetRegulationsAddress
Searches for the user's regulation address.
To call this method, make sure your service account has one of the following roles:
Parameters
country_code:
string
OptionalThe country code according to the ISO 3166-1 alpha-2
in_progress:
boolean
OptionalWhether to show only in progress regulation address
phone_category_name:
string
OptionalThe phone category name. See the GetPhoneNumberCategories method
phone_region_code:
string
OptionalThe phone region code. See the GetRegions method
regulation_address_id:
number
OptionalThe regulation address ID
verified:
boolean
OptionalWhether to show only verified regulation address
Returns
count:
number
The returned regulation address count
result:
The RegulationAddress records
GetZIPCodes
Searches for available zip codes.
To call this method, make sure your service account has one of the following roles:
Parameters
count:
number
OptionalDefaults on:Â Â 20The max returning record count
country_code:
string
The country code according to the ISO 3166-1 alpha-2
offset:
number
OptionalDefaults on:Â Â 0The first N records are skipped in the output
phone_region_code:
string
OptionalThe phone region code
Returns
count:
number
The returned zip codes count
result:
The ZipCode records
LinkRegulationAddress
Links the regulation address to a phone.
To call this method, make sure your service account has one of the following roles:
Parameters
phone_id:
number
The phone ID for link
phone_number:
string
The phone number for link
regulation_address_id:
number
The regulation address ID
Returns
result:
boolean