Seguros APIseguros-api reference
Person Controller_create Person With Vehicle
x-api-key<token>
In: header
Request Body
application/json
Create a new person with associated vehicles
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/person" \ -H "Content-Type: application/json" \ -d '{ "fullName": "Nome completo", "cpf": "12345678900", "whatsapp": "+5561999887766", "rg": "1122334455", "cnh": "1234567890", "birthDate": "1990-01-01", "gender": "Masculino", "maritalStatus": "Solteiro", "personalEmail": "[email protected]", "commercialEmail": "[email protected]", "residentialPhone": "+5561333444555", "commercialPhone": "+5561333444556", "optionalPhone": "+5561333444557", "residentialAddress": "Rua X Quadra Y", "postalCode": "12345", "city": "Brasília", "state": "DF", "vehicles": [ { "manufacturer": "Toyota", "brand": "Corolla", "model": "XLE", "color": "Red", "manufactureYear": 2019, "modelYear": 2020, "fipeCode": "1234567890", "renavan": "987654321", "fuelType": "Gasoline", "sellerId": "V001", "sellerName": "Carlos Vendedor", "financingApprovalDate": "2024-01-15" } ] }'Empty