# Criar Lead

Essa rota recebe dados de contato do lead e dos valores do imóvel, capta o lead e retorna detalhes da simulação:

Endpoint da rota:

POST https://api-partner.credihome.com.br/staging/simulations - Staging
POST https://api-partner.credihome.com.br/v1/production/simulations - Produção

Corpo da requisição:

{
  "type": "home_equity",
  "userId": "445aaw-254...",
  "mortgageValue": 250000.55,
  "realtyPrice": 500000.55,
  "duration": 360,
  "partnerId": 1234,
  "source": "api",
  "downPayment": 100000.55,
  "thirdParty": false,
  "mailingAllowed": true,
  "exibirNomesOperadores": true,
  "parseBankName": true,
  "user": {
    "name": "Roberto Daciolo",
    "email": "roberto@email.com",
    "phone": "11940028922",
    "cpf": "123.456.789-01",
    "dateOfBirth": "2000-01-01"
  },
  "utm": {
    "source_url": "https://simulador-staging.credihome.com.br/credihome/"
  },
  "finality": [
    "reform",
    "other",
    "study"
  ]
}

Retorno da requisição:

{
  "leadId": "675f6910-1d1b-11ea-b4a2-d9ef17e8db0c",
  "duration": 360,
  "firstPayment": 1456.45,
  "results": [
    {
      "duration": 360,
      "payment": 1456.45,
      "amortization": 1456.45,
      "interest": 131.12,
      "mip": 35.2,
      "dfi": 17.2,
      "tac": 25,
      "value": 1456.45,
      "minimunIncome": 5214.21,
      "name": "Credihome ou Banco 1",
      "table": "SAC ou PRICE",
      "totalMortgageValue": 25214.21,
      "monthlyInterestRate": 0.8,
      "anualInterestRate": 0.8
    }
  ]
}

Saiba mais aqui (opens new window)