Person Creation
POST/v1/api/people/create
This endpoint allows clients to create a new person by sending a POST request with the desired personal data, address, and loyalty data.
The endpoint ensures flexibility by allowing optional parameters to be included, such as special loyalty program details.
Upon successful creation, the response will contain the created person's details, including the generated person ID and creation date.
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
First name.
Last name.
Email.
Phone.
CPF.
Passport.
Date of birth.
Country of origin.
Registration source.
Street.
Address 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
Successful creation response.
- application/json
- Schema
- Example (from schema)
Schema
First name.
Last name.
Email.
Phone.
CPF.
Passport.
Date of birth.
Country of origin.
Registration source.
Street.
Address 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.
Person ID.
Creation date.
Default value: true
Whether the person is enabled or not.
{
"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
}