Example queries
This page lists a set of example queries which can be used as a starting point when working with the Matching API.
The ClientSuppliedId is a field required to use the Matching API. It is a unique alphanumeric string assigned to each input record, which allows you to correlate your record to the Altrata returned record.
Submit queries to create a Matching job and be returned a requestId to retrieve the results.
Submit a set of Person objects to be matched by name and organization name.
clientSuppliedId, firstName, lastNameand organizationNameare mandatory input fields.
The personByIdMatch query allows you to match records via unique ids. The API accepts the following id schemes:
- altrataId
- clientSuppliedId
- bxPersonId
- rsPersonId
- workEmail
- linkedinProfile
- wxPersonId
- briPersonId
- wePersonId
clientSuppliedId is a mandatory input along with at least one of the fields. Input schemes may be mixed, that is, within one request you may match on (for example) workEmail and linkedinProfile.
If multiple ID schemes are passed within a single array element, and these result in multiple matches, the API will return these matches as discrete PossibleMatches.
The following example matches a single record by email. The email to match is [email protected] and the ID
The following example matches multiple records by email:
The following example mixes multiple ID schemes:
Submit a set of Organization objects to be matched by name.
Submit a set of Organization objects to be matched by Altrata IDs.
The organizationByIdMatch query allows you to match records via unique ids. The API accepts the following id schemes:
- altrataId
- clientSuppliedId
- bxOrganizationId
- rsOrganizationId
- workEmail
- linkedinProfile
- wxOrganizationId
- briOrganizationId
clientSuppliedId is a mandatory input along with at least one of the fields.
Check the current status of a Matching job. The job is ready for results retrieval when the status is Matched Results Available.
You must change the requestId to be the requestId which was returned to you previously.
Retrieve results for a Matching job. Three queries will be required:
personUniqueMatches to obtain all Unique Matches
personPossibleMatches to obtain all Possible Matches
personNoMatches to obtain all No Matches
Once results are obtained, you may wish to connect to the Profile API to obtain further information on your matched results
Each response may be paginated. See Paging to learn how to page over the results. Each of the above queries contains a jobSummary object which will provide the overall match statistics of your job.
Retrieve paginated unique matches for a given Matching job.
Retrieve paginated possible matches for a given Matching job.
Retrieve paginated results that were not matched.
Retrieve paginated unique matches for a given Matching job.
Retrieve paginated possible matches for a given Matching job.
Retrieve paginated results that we were unable to match.