> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Actualizar una solicitud de recuperación de fondos

> Usa este endpoint para actualizar una solicitud de recuperación de fondos existente. Las actualizaciones solo se permiten para solicitudes en estado CREATED, TRACKED o AWAITING_ANALYSIS.

**Notas:**
- Solo se pueden actualizar situationType, reportDetails y contactInformation
- Las actualizaciones no se permiten para solicitudes en estados terminales (COMPLETED, CANCELLED)



## OpenAPI

````yaml es/openapi/v3-current/indirect-pix.yaml PATCH /v1/dict/funds-recoveries/{funds_recovery_id}
openapi: 3.0.3
info:
  title: Plugin BR Pix Indirect - API completa
  description: |
    API completa para el sistema de pagos instantáneos Pix de Brasil, que
    incluye operaciones del diccionario de claves Pix, generación/decodificación
    de códigos QR, transacciones y límites transaccionales.
  version: 1.0.0
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - bearerAuth: []
paths:
  /v1/dict/funds-recoveries/{funds_recovery_id}:
    patch:
      tags:
        - Funds Recovery API
      summary: Actualizar una solicitud de recuperación de fondos
      description: >-
        Usa este endpoint para actualizar una solicitud de recuperación de
        fondos existente. Las actualizaciones solo se permiten para solicitudes
        en estado CREATED, TRACKED o AWAITING_ANALYSIS.


        **Notas:**

        - Solo se pueden actualizar situationType, reportDetails y
        contactInformation

        - Las actualizaciones no se permiten para solicitudes en estados
        terminales (COMPLETED, CANCELLED)
      parameters:
        - name: funds_recovery_id
          in: path
          description: ID de la recuperación de fondos (formato UUID)
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFundsRecoveryInput'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateFundsRecoveryOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
      deprecated: false
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateFundsRecoveryInput:
      properties:
        contactInformation:
          allOf:
            - $ref: '#/components/schemas/ContactInformation'
          description: >-
            ContactInformation contiene la información de contacto de la persona
            que reporta el fraude
        reportDetails:
          description: ReportDetails es la descripción detallada del incidente de fraude
          example: Updated details about the fraud incident
          maxLength: 2000
          type: string
        situationType:
          description: SituationType es el tipo de situación de fraude
          enum:
            - SCAM
            - ACCOUNT_TAKEOVER
            - COERCION
            - FRAUDULENT_ACCESS
            - OTHER
            - UNKNOWN
          example: SCAM
          type: string
      required:
        - contactInformation
        - situationType
      type: object
    UpdateFundsRecoveryOutput:
      properties:
        bacenFundsRecoveryId:
          example: 91d65e98-97c0-4b0f-b577-73625da1f9fc
          type: string
        contactInformation:
          $ref: '#/components/schemas/ContactInformation'
        createdAt:
          example: '2023-11-07T05:31:56Z'
          format: date-time
          type: string
        id:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        reportDetails:
          example: Customer reported receiving a call from fake bank employee
          type: string
        reporterParticipant:
          example: '12345678'
          type: string
        rootTransactionId:
          example: E12345678202411241430ABCDEFGHIJK
          type: string
        situationType:
          enum:
            - SCAM
            - ACCOUNT_TAKEOVER
            - COERCION
            - FRAUDULENT_ACCESS
            - OTHER
            - UNKNOWN
          example: SCAM
          type: string
        status:
          enum:
            - CREATED
            - TRACKED
            - AWAITING_ANALYSIS
            - ANALYSED
            - REFUNDING
            - COMPLETED
            - CANCELLED
          example: CREATED
          type: string
        updatedAt:
          example: '2023-11-07T05:31:56Z'
          format: date-time
          type: string
      type: object
    ErrorFormat:
      type: object
      description: El mensaje de error de la respuesta.
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: Un identificador único y estable para el error.
        title:
          type: string
          description: Un breve resumen del problema.
        message:
          type: string
          description: Orientación detallada para resolver el error.
    ContactInformation:
      properties:
        email:
          description: >-
            Email es la dirección de correo electrónico del cliente que reporta
            el fraude
          example: customer@example.com
          type: string
        phone:
          description: >-
            Phone es el número de teléfono del cliente que reporta el fraude

            Formato: se recomienda el formato E.164 (por ejemplo,
            +5511999999999)
          example: '+5511999999999'
          type: string
      required:
        - email
        - phone
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````