# Visualizar Lead
Ao passar um leadId, devolve os dados gravados desse lead
Endpoint da rota:
GET https://api-partner.credihome.com.br/staging/leads/{leadId} - Staging
GET https://api-partner.credihome.com.br/v1/production/leads/{leadId} - Produção
Paramêtros:
leadId: Id do Lead
Paramêtros de consulta:
mackBuyers: Envie esse parâmetro como true para forçar o atributo caso ele não exista
Retorno da requisição:
{
"leadId": "876c2b80-8e81-11ea-b38b-e74bae152df1",
"product": "mortgage",
"partnerEtapa": "documentos",
"partnerStatus": "active",
"partnerId": 3214,
"buyers": [
{
"name": "Hellen Mac Cionoith",
"cpf": "47148277825",
"dateOfBirth": "2000-02-23",
"email": "hellen@email.com.br",
"maritalStatus": "married",
"marriageSystem": "partial_community_property",
"weddingDate": "2020-02-04",
"stableUnion": true,
"stableUnionDate": "2020-02-04",
"homeCountry": "Brasil",
"homeState": "SP",
"homeTown": "Alto Porã",
"contractType": "employee",
"jobTitle": "advogado",
"jobType": "agenteAdministrativo",
"dateOfEmployment": "2020-03-03",
"monthlyIncome": 20000,
"useFgts": false,
"ownsOtherProperty": false,
"gender": "F",
"mothersName": "Mae",
"fathersName": "Pai",
"bankAccounts": [
{
"bankId": 341,
"branch": "1233",
"account": "12313",
"dac": "5"
}
],
"spouse": {
"name": "Nome do Marido",
"cpf": 12312332123,
"dateOfBirth": "2020-04-01",
"gender": "M",
"liveTogether": false
},
"docs": [
{
"type": "rg",
"docNumber": "12321321",
"issuedBy": "SSP",
"issueDate": "2020-05-05",
"issueLocation": "RS",
"category": "identification"
}
],
"address": {
"city": "São Paulo",
"complement": "ap. 123",
"neighborhood": "Jardim Paulista",
"number": "123",
"streetName": "Avenida Nove de Julho",
"type": "owned",
"uf": "SP",
"zipcode": "01406-000",
"residenceTime": 13
},
"company": {
"city": "São Paulo",
"complement": "cj. 123",
"neighborhood": "Chácara Santo Antônio (Zona Sul)",
"number": "1233",
"streetName": "Rua Alexandre Dumas",
"cnpj": "04.447.305/0001-05",
"uf": "SP",
"zipcode": "04717-000",
"name": "teste"
},
"phones": [
{
"type": "cellphone",
"number": "1231232133"
},
{
"type": "residential",
"number": "1231232133"
},
{
"type": "business",
"number": "1231232133"
}
]
}
],
"simulation": {
"duration": 360,
"firstPayment": 3081.72,
"mortgageValue": 280000,
"type": "mortgage",
"realtyPrice": 3520651.3,
"includeRegistryFees": false,
"includeProcessingFees": false
},
"realty": {
"realtyType": "condo",
"useType": "residence",
"hasRealty": true,
"streetName": "Rua Aurora Soares Barbosa",
"number": "775",
"debt": 1100.55,
"finality": [
"debts",
"reform",
"other"
],
"complement": "775",
"neighborhood": "Vila Campesina",
"zipcode": "06023010",
"city": "Osasco",
"uf": "SP",
"age": 10,
"monthlyFees": 123,
"totalArea": 102,
"purchaseTime": "oneMonth",
"valuationContact": {
"name": "Luis",
"phone": "123132323"
}
},
"lastFup": {
"name": "Tommy Sander",
"isPrivated": false,
"nextFup": "2021-01-28",
"createdDate": "2021-01-27",
"message": "Lead entrou em contato",
"creatdById": 888
},
"name": "Hellen Mac Cionoith",
"cpf": "47148277825",
"email": "hellen@email.com.br",
"dateOfBirth": "2000-02-23",
"phone": "11941133368",
"authorizes": {
"email": true,
"scr": false,
"sms": true,
"voice": false,
"whatsapp": true
}
}
Saiba mais aqui (opens new window)