> ## 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 Refinanciamento

> Cria uma nova simulação de refinanciamento



## OpenAPI

````yaml POST /v1/proposal/simulation/refinancing
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/refinancing:
    post:
      tags:
        - Proposta
      summary: Criar uma nova simulação de refinanciamento
      description: Cria uma nova simulação de refinanciamento
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: Os dados da sua simulação
              required:
                - placa
                - valorSolicitado
                - cpf
              additionalProperties: false
              properties:
                cpf:
                  minLength: 11
                  type: string
                  description: CPF do cliente **somente números** (11 dígitos)
                  example: '12345678901'
                placa:
                  minLength: 1
                  type: string
                  description: Placa do veículo
                  example: ABC1D23
                valorSolicitado:
                  type: number
                  description: Valor total solicitado para refinanciamento
                  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

````