The service tests whether an email address belongs to a domain representing a company.
Syntax | …/svc/2.0/address/companydomain/<address> |
Example | …/svc/2.0/address/companydomain/foo@bar.com |
Parameter | An ASCII email address as last part of the URL |
Result
<companyDomainStatus> <infoId>bar.com</infoId> <result>1</result> </companyDomainStatus>
or
{"infoId": "bar.com", "result": 1}
- result: the evaluation result
- 0: no company domain found
- 1: company domain found
- infoId: if result == 1, this contains the ID (domain name) for looking up more information about a company domain resource
Functionality
The domain of the requests address is checked against the company_domain database table. If a match is found a positive result (1) is returned. The ID of the matching entry, the domain name, is also returned for further lookup.
Each execution of the check will be documented as a business event (database table business_event) with type 119.