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

# Crear una solicitud de recuperación de fondos

> Usa este endpoint para crear una nueva solicitud de recuperación de fondos para una transacción Pix sospechosa de fraude.

**Notas:**
- El rootTransactionId debe ser un End-to-End ID Pix válido de 32 caracteres
- situationType indica el tipo de situación de fraude (SCAM, ACCOUNT_TAKEOVER, COERCION, FRAUDULENT_ACCESS, OTHER, UNKNOWN)
- La información de contacto (correo electrónico y teléfono) es obligatoria para la comunicación durante el proceso de recuperación



## OpenAPI

````yaml es/openapi/v3-current/indirect-pix.yaml POST /v1/dict/funds-recoveries
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:
    post:
      tags:
        - Funds Recovery API
      summary: Crear una solicitud de recuperación de fondos
      description: >-
        Usa este endpoint para crear una nueva solicitud de recuperación de
        fondos para una transacción Pix sospechosa de fraude.


        **Notas:**

        - El rootTransactionId debe ser un End-to-End ID Pix válido de 32
        caracteres

        - situationType indica el tipo de situación de fraude (SCAM,
        ACCOUNT_TAKEOVER, COERCION, FRAUDULENT_ACCESS, OTHER, UNKNOWN)

        - La información de contacto (correo electrónico y teléfono) es
        obligatoria para la comunicación durante el proceso de recuperación
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFundsRecoveryInput'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFundsRecoveryOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '409':
          description: Conflict
          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:
    CreateFundsRecoveryInput:
      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: Customer reported receiving a call from fake bank employee
          maxLength: 2000
          type: string
        rootTransactionId:
          description: RootTransactionID es el ID de la transacción Pix End-to-End original
          example: E12345678202411241430ABCDEFGHIJK
          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
        trackingGraphParameters:
          allOf:
            - $ref: '#/components/schemas/TrackingGraphParametersInput'
          description: >-
            TrackingGraphParameters contiene parámetros opcionales para la
            generación del grafo de rastreo
      required:
        - contactInformation
        - rootTransactionId
        - situationType
      type: object
    CreateFundsRecoveryOutput:
      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
        trackingGraph:
          allOf:
            - $ref: '#/components/schemas/TrackingGraphOutput'
          description: >-
            TrackingGraph es el grafo de rastreo generado durante la creación
            (PRD 4.1 / US-01)

            Presente cuando se proporcionaron trackingGraphParameters en la
            solicitud
        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
    TrackingGraphParametersInput:
      properties:
        hopWindow:
          example: PT24H
          type: string
        maxHops:
          example: 5
          type: integer
        maxTransactions:
          example: 500
          type: integer
        minTransactionAmount:
          example: '200.00'
          type: string
      type: object
    TrackingGraphOutput:
      properties:
        accounts:
          items:
            $ref: '#/components/schemas/TrackingGraphAccountOutput'
          type: array
        creationTime:
          example: '2023-11-07T05:31:56Z'
          format: date-time
          type: string
        fundsRecoveryId:
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
        parameters:
          $ref: '#/components/schemas/TrackingGraphParametersOutput'
        persons:
          items:
            $ref: '#/components/schemas/TrackingGraphPersonOutput'
          type: array
        rootTransactionId:
          example: E12345678202411241430ABCDEFGHIJK
          type: string
        transactions:
          items:
            $ref: '#/components/schemas/TrackingGraphTxOutput'
          type: array
      type: object
    TrackingGraphAccountOutput:
      properties:
        id:
          type: integer
          example: 1
        openingDate:
          example: '2020-01-15'
          type: string
        ownerId:
          type: integer
          example: 1
        participant:
          example: '12345678'
          type: string
      type: object
    TrackingGraphParametersOutput:
      properties:
        hopWindow:
          example: PT24H
          type: string
        maxHops:
          example: 5
          type: integer
        maxTransactions:
          example: 500
          type: integer
        minTransactionAmount:
          example: '200.00'
          type: string
      type: object
    TrackingGraphPersonOutput:
      properties:
        entityCreationDate:
          example: '2020-01-15'
          type: string
        id:
          type: integer
          example: 1
        type:
          example: NATURAL_PERSON
          type: string
      type: object
    TrackingGraphTxOutput:
      properties:
        amount:
          example: 1000.5
          type: number
        creditorAccountId:
          example: 2
          type: integer
        debtorAccountId:
          type: integer
          example: 1
        id:
          example: E12345678202411241430ABCDEFGHIJK
          type: string
        refundableAmount:
          example: 1000.5
          type: number
        settlementTime:
          example: '2023-11-07T05:31:56Z'
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````