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

# 4 - Incluir Solicitação de Análise de Crédito

Esse método verifica se a integração informada permite análise de crédito, em caso afirmativo, inclui uma nova solicitação.


## OpenAPI

````yaml post /SolicitacaoAnalise/IncluirSolicitacaoAnaliseCredito
openapi: 3.0.1
info:
  title: BMPDigitalCore.ApiExterna.SolicitacaoAnalise.API
  version: '1.0'
servers:
  - url: https://api.bmpdigital.moneyp.dev.br/
    description: Localhost
security:
  - Bearer: []
paths:
  /SolicitacaoAnalise/IncluirSolicitacaoAnaliseCredito:
    post:
      tags:
        - SolicitacaoAnalise
      parameters:
        - name: IdempotencyKey
          in: header
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SolicitacaoAnaliseCreditoCommand'
          text/json:
            schema:
              $ref: '#/components/schemas/SolicitacaoAnaliseCreditoCommand'
          application/*+json:
            schema:
              $ref: '#/components/schemas/SolicitacaoAnaliseCreditoCommand'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/SolicitacaoAnaliseCreditoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/SolicitacaoAnaliseCreditoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/SolicitacaoAnaliseCreditoResponse'
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ResponseBase'
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBase'
            text/json:
              schema:
                $ref: '#/components/schemas/ResponseBase'
components:
  schemas:
    SolicitacaoAnaliseCreditoCommand:
      type: object
      properties:
        dto:
          $ref: '#/components/schemas/SolicitacaoAnaliseCreditoDTO'
        parametros:
          type: array
          items:
            $ref: '#/components/schemas/ParametroDTO'
          nullable: true
      additionalProperties: false
    SolicitacaoAnaliseCreditoResponse:
      type: object
      properties:
        msg:
          type: string
          nullable: true
        result:
          type: boolean
          writeOnly: true
        hasError:
          type: boolean
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          nullable: true
        codigo:
          type: string
          format: uuid
      additionalProperties: false
    ResponseBase:
      type: object
      properties:
        msg:
          type: string
          nullable: true
        result:
          type: boolean
          writeOnly: true
        hasError:
          type: boolean
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          nullable: true
      additionalProperties: false
    SolicitacaoAnaliseCreditoDTO:
      required:
        - documentoCliente
      type: object
      properties:
        documentoCliente:
          maxLength: 20
          minLength: 0
          type: string
          description: Refere-se ao documento federal do cliente.
          nullable: true
        identificador:
          maxLength: 50
          minLength: 0
          type: string
          description: Identificação da solicitação (valor exclusivo do integrador).
          nullable: true
        vlrSolicitadoMin:
          maximum: 10000000000000000
          minimum: 0
          type: number
          description: Refere-se ao valor mínimo solicitado.
          format: double
          nullable: true
        vlrSolicitadoMax:
          maximum: 10000000000000000
          minimum: 0
          type: number
          description: Refere-se ao valor máximo solicitado.
          format: double
          nullable: true
        observacoes:
          type: string
          description: Observações sobre a análise de crédito solicitada.
          nullable: true
        prioridade:
          maximum: 5
          minimum: 1
          type: integer
          description: >-
            Refere-se a um enumerador utilizado para discriminar a urgência da
            análise de crédito, sendo: Prioridade da análise de 1 a 5, onde: 1 =
            Muito baixa; 2 = Baixa; 3 = Normal; 4 = Alta; 5 = Muito alta. Quando
            não informado assume o valor 3 (normal).
          format: int32
          nullable: true
      additionalProperties: false
    ParametroDTO:
      type: object
      properties:
        nome:
          type: string
          description: Refere-se ao nome do parâmetro.
          nullable: true
        valor:
          type: string
          description: Refere-se ao valor do parâmetro.
          nullable: true
      additionalProperties: false
    Message:
      type: object
      properties:
        messageType:
          $ref: '#/components/schemas/ErrorType'
        code:
          type: string
          nullable: true
        context:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        field:
          type: string
          nullable: true
      additionalProperties: false
    ErrorType:
      enum:
        - 1
        - 2
        - 3
      type: integer
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Informe o token
      name: Authorization
      in: header

````