Person Retrieval
GET/v1/api/people/:id
This API endpoint allows the retrieval of existing people. It enables clients to access person details based on specific criteria provided in the request parameters.
Clients can send a GET request to this endpoint with appropriate parameters, such as people ID, name, address, to retrieve the desired person information.
The endpoint ensures flexibility by allowing various filtering options, enabling clients to narrow down the search results based on their specific requirements.
Upon successful retrieval, the client application will receive a response containing detailed information about the requested person, including personal details, loyalty information, address data and any additional preferences or special requests.
In case of errors or if the requested person is not found, the response structure is designed to provide appropriate error messages, facilitating efficient error handling and resolution.
Request
Path Parameters
Responses
- 200
GetPersonResponse()
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Name.
Last name.
Email.
Phone.
CPF.
Passport.
Date of birth.
Country of origin.
Registration source.
Street.
Addresss number.
Zip code.
Address complement.
Neighborhood.
City.
State.
Possible values: [ADULT
, CHILD
, null
]
Classification of the age group (Adult or Child).
Loyalty level.
Loyalty opt-in.
Default value: true
loyaltyData object[]
Lista de programas de fidelidade.
Id do programa de fidelidade.
Alias do programa de fidelidade.
Saldo.
Próxima expiração.
Próximo valor de expiração.
Nível de fidelidade.
{
"firstName": "string",
"lastName": "string",
"email": "string",
"phone": "string",
"cpf": "string",
"passport": "string",
"dob": "string",
"country": "string",
"registrationSource": "string",
"addressStreetName": "string",
"addressNumber": "string",
"addressZipCode": "string",
"addressAdditionalInformation": "string",
"addressDistrict": "string",
"addressCity": "string",
"addressState": "string",
"loyaltyLevel": "string",
"loyaltyOptIn": true,
"id": "string",
"creationDate": "string",
"enabled": true,
"loyaltyData": [
{
"id": "string",
"alias": "string",
"balance": 0,
"nextExpirationAt": "string",
"nextExpirationValue": 0,
"tier": "string"
}
]
}