Find person addresses
Use case
Learn how to find a particular person's addresses in Tuum. In this example, we will demonstrate it on a private person using the following data.
Use case data
API parameters with values
Private person with Tuum personId: ID-3392
.
.../persons/ID-3392/addresses
Sample API call
To retrieve customer data, make the following API call.
Sample request
Below is an example request of the API call to retrieve person addresses.
curl --location 'https://person-api.sandbox.tuumplatform.com/api/v1/persons/ID-3392/addresses' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjQtMDUtMjFUMTA6NTc6MzIiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE3MTYyODkwNTJ9.nz1Fm5JV4tgUvL9rD-PbVb_fBVbIgbbxDhVpPdp6h2Q' \
--header 'x-channel-code: SYSTEM' \
--data ''
Sample response
Below you find an example response body to the API call above.
Response
{
"errors": null,
"validationErrors": null,
"data": [
{
"addressId": "ID-3052",
"personId": "ID-3392",
"addressTypeCode": "R",
"street1": "85 Park End St",
"street2": null,
"cityCounty": "Broomhill",
"stateRegion": null,
"zip": "NE65 0YW",
"countryCode": "GB",
"moveInDate": null,
"validityRange": {
"endTime": null,
"startTime": "2023-06-01T07:55:53.213023Z"
}
}
]
}
Result
The result of the API call is the overview of the addresses linked to the person.