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

# Recuperar Grafo de Rastreamento

> Use este endpoint para recuperar o grafo de rastreamento de uma solicitação de recuperação de recursos. O grafo de rastreamento mostra o fluxo de fundos a partir da transação raiz.

**Notas:**
- Parâmetros opcionais podem ser usados para personalizar a geração do grafo
- O grafo inclui pessoas, contas e transações relacionadas à fraude



## OpenAPI

````yaml pt/openapi/v3-current/indirect-pix.yaml GET /v1/dict/funds-recoveries/{funds_recovery_id}/tracking-graph
openapi: 3.0.3
info:
  title: Plugin BR Pix Indireto - API Completa
  description: |
    API completa para o sistema brasileiro de pagamentos instantâneos Pix,
    incluindo operações de dicionário de chaves Pix, geração/decodificação de
    QR Code, transações e limites de transações.
  version: 1.0.0
servers:
  - url: https://plugin-pix-indirect.api.lerian.net
security:
  - bearerAuth: []
paths:
  /v1/dict/funds-recoveries/{funds_recovery_id}/tracking-graph:
    get:
      tags:
        - Funds Recovery API
      summary: Recuperar Grafo de Rastreamento
      description: >-
        Use este endpoint para recuperar o grafo de rastreamento de uma
        solicitação de recuperação de recursos. O grafo de rastreamento mostra o
        fluxo de fundos a partir da transação raiz.


        **Notas:**

        - Parâmetros opcionais podem ser usados para personalizar a geração do
        grafo

        - O grafo inclui pessoas, contas e transações relacionadas à fraude
      parameters:
        - name: funds_recovery_id
          in: path
          description: ID da Recuperação de Recursos (formato UUID)
          required: true
          schema:
            type: string
        - name: min_transaction_amount
          in: query
          description: Valor mínimo da transação a incluir no grafo
          schema:
            type: string
        - name: max_transactions
          in: query
          description: Número máximo de transações a incluir
          schema:
            type: integer
        - name: hop_window
          in: query
          description: Janela de tempo para análise de saltos (duração ISO 8601)
          schema:
            type: string
        - name: max_hops
          in: query
          description: Número máximo de saltos a seguir
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTrackingGraphOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorFormat'
        '404':
          description: Not Found
          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:
    GetTrackingGraphOutput:
      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
    ErrorFormat:
      type: object
      description: A mensagem de erro da resposta.
      required:
        - code
        - title
        - message
      properties:
        code:
          type: string
          description: Um identificador único e estável para o erro.
        title:
          type: string
          description: Um breve resumo do problema.
        message:
          type: string
          description: Orientação detalhada para resolver o erro.
    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

````