> ## Documentation Index
> Fetch the complete documentation index at: https://documentacao.credicarro.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Criar Simulação de Financiamento

> Cria uma nova simulação de financiamento



## OpenAPI

````yaml POST /v1/proposal/simulation/financing
openapi: 3.1.0
info:
  title: API Credicarro
  description: API para gerenciamento de cobranças e pagamentos usando o Credicarro.
  version: 1.0.0
servers:
  - url: https://api.staging.credicarro.com.br/integration
    description: Servidor para o ambiente de staging
security: []
paths:
  /v1/proposal/simulation/financing:
    post:
      tags:
        - Proposta
      summary: Criar uma nova simulação de financiamento
      description: Cria uma nova simulação de financiamento
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: Os dados da sua simulação
              required:
                - cpf
                - isVeiculoZeroKm
                - placa
                - valorVeiculo
                - uf
                - valorEntrada
              additionalProperties: false
              properties:
                cpf:
                  minLength: 11
                  type: string
                  description: CPF do cliente **somente números** (11 dígitos)
                  example: '12345678901'
                isVeiculoZeroKm:
                  type: boolean
                  description: >-
                    Indica se o veículo é zero quilômetro. true para novo, false
                    para usado.
                  example: true
                placa:
                  type: string
                  description: Placa do veículo
                  example: ABC1D23
                valorVeiculo:
                  type: number
                  description: Valor total do veículo
                  format: double
                  example: 45000
                uf:
                  type: string
                  description: >-
                    UF (Unidade Federativa) do registro do veículo, em formato
                    de 2 letras (ex. SP, RJ, MG). Campo opcional
                  example: SP
                valorEntrada:
                  type: number
                  description: >-
                    Valor de entrada do financiamento, em reais. Utilize ponto
                    como separador decimal. Campo opcional
                  format: double
                  example: 45000
      responses:
        '201':
          description: Simulação criada com sucesso
          content:
            application/json:
              schema:
                type: object
                properties:
                  simulacoes:
                    type: array
                    items:
                      type: object
                      properties:
                        id_simulacao:
                          type: string
                          format: uuid
                          example: 123e4567-e89b-12d3-a456-426614174000
                        valor_solicitado:
                          type: number
                          format: double
                          example: 1
                        prazo:
                          type: integer
                          format: int32
                          example: 1
                        valor_parcela:
                          type: number
                          format: double
                          example: 1
                        valor_tac:
                          type: number
                          format: double
                          example: 1
                        valor_boleto:
                          type: number
                          format: double
                          example: 1
                        valor_seguro:
                          type: number
                          format: double
                          example: 1
                        valor_iof:
                          type: number
                          format: double
                          example: 1
                        percentual_iof:
                          type: number
                          format: double
                          example: 1
                        valor_credito_total:
                          type: number
                          format: double
                          example: 1
                        valor_divida_total:
                          type: number
                          format: double
                          example: 1
                        percentual_cet_mensal:
                          type: number
                          format: double
                          example: 1
                        percentual_cet_anual:
                          type: number
                          format: double
                          example: 1
                        percentual_juros_mensal:
                          type: number
                          format: double
                          example: 1
                        percentual_juros_anual:
                          type: number
                          format: double
                          example: 1
                        valor_retencao_diaria_aproximado:
                          type: number
                          format: double
                          nullable: true
                          example: null
        '400':
          description: Erro na requisição
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - bearerAuth: []
components:
  schemas:
    ProblemDetails:
      type: object
      properties:
        tipo:
          type: string
          description: Tipo de problema encontrado
          example: Partner.AccountIsIncompleted
        titulo:
          type: string
          description: Título do erro
          example: Bad Request
        status:
          type: integer
          format: int32
          description: Status Code do erro
          example: 400
        detalhe:
          type: string
          description: Descrição do erro
          example: Cadastro de conta não finalizado
        erro:
          type: 'null'
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Cabeçalho de autenticação Bearer no formato `Bearer <token>` onde
        `<token>` é seu TOKEN de autenticação

````