Here we will find the existing lookup type codes under the PERSON.ADDRESS entity.
The first query parameter is the group code (in this case, PERSON).
The second query parameter is the entity name (in this case, PERSON.ADDRESS).
To find the lookup type codes, use the following endpoint:
Below you will find the response to the sample request:
We can see the list of lookup type codes for the PERSON.ADDRESS entity. The sample response shows that there are 2 types of addresses that are valid for a person - private and legal. Next, we will find the address lookup types for private persons.
https://lookup-api.sandbox.tuumplatform.com/api/v1/lookup-type?groupCode=PERSON&entityName=PERSON.ADDRESS
Learn more about the endpoint in the Tuum developer portal.
You can also get similar responses using the module-specific API endpoint.
For example, you can use this and enter the entity name as the path parameter:
person-api.sandbox.tuumplatform.com
/api/v1/entity/PERSON.ADDRESS/lookup