Person Creation
POST/v1/api/people/create
This API endpoint allows the creation of people. It enables clients to create person information based on specific criteria provided in the request payload.
Clients can send a POST request to this endpoint with appropriate parameters, including details such as personal data, address and client data.
The endpoint ensures flexibility by allowing optional parameters to be included, such as special loyalty program details.
Upon successful person creation, the client application will receive a confirmation response containing the created person ID.
In case of errors or conflicts during person creation, the response structure is designed to provide detailed information on the issue encountered, facilitating efficient error handling and resolution.
Request
- application/json
Body
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.
Responses
- 200
CreatePersonResponse()
- application/json
- Schema
- Example (from schema)
Schema
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
{
"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
}