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

# Buscar Saque

> Consulte os detalhes de um saque específico

Busca um saque específico pelo ID.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://api.eyowallet.ru/api/v1/withdraw/get/withdraw_abc123' \
    -H 'X-API-Key: sua_api_key'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "success": true,
    "data": {
      "id": "withdraw_abc123",
      "correlationID": "mistic_transaction_id",
      "value": 10000,
      "status": "COMPLETED",
      "pixKey": "usuario@example.com",
      "pixKeyType": "EMAIL",
      "transactionId": "mistic_transaction_id",
      "fee": 50,
      "sent": 9950,
      "completedAt": "2024-01-15T10:30:00Z",
      "failedAt": null,
      "failureReason": null,
      "createdAt": "2024-01-15T10:30:00Z",
      "updatedAt": "2024-01-15T10:30:00Z"
    }
  }
  ```
</ResponseExample>

### Parâmetros

<ParamField path="id" type="string" required>
  ID único do saque.
</ParamField>

### Campos da Resposta

<ResponseField name="id" type="string">
  ID único do saque.
</ResponseField>

<ResponseField name="value" type="integer">
  Valor total do saque em centavos.
</ResponseField>

<ResponseField name="correlationID" type="string">
  ID de correlação da transação na gateway.
</ResponseField>

<ResponseField name="transactionId" type="string">
  ID da transação na gateway.
</ResponseField>

<ResponseField name="fee" type="integer">
  Taxa cobrada pelo saque em centavos.
</ResponseField>

<ResponseField name="sent" type="integer">
  Valor líquido enviado em centavos (amount - fee).
</ResponseField>

<ResponseField name="pixKey" type="string">
  Chave PIX do destinatário.
</ResponseField>

<ResponseField name="pixKeyType" type="string">
  Tipo da chave PIX utilizada.
</ResponseField>

<ResponseField name="status" type="string">
  Status atual do saque: `PENDING`, `COMPLETED`, ou `FAILED`.
</ResponseField>

<ResponseField name="completedAt" type="string">
  Data e hora de conclusão do saque (ISO string). Null se ainda não foi completado.
</ResponseField>

<ResponseField name="failedAt" type="string">
  Data e hora de falha do saque (ISO string). Null se não falhou.
</ResponseField>

<ResponseField name="failureReason" type="string">
  Motivo da falha do saque. Null se não falhou.
</ResponseField>

### Permissões Necessárias

Esta rota requer a permissão `read:withdraws`.

### Rate Limiting

* **10 req/s (600 req/min) por API Key**


## OpenAPI

````yaml GET /api/v1/withdraw/get/{id}
openapi: 3.1.0
info:
  title: Eyo Wallet API
  description: >-
    API para integração com a Eyo Wallet - Plataforma de pagamentos PIX para
    desenvolvedores e empresas
  version: 1.0.0
  contact:
    name: Eyo Wallet
    url: https://eyowallet.ru
servers:
  - url: https://api.eyowallet.ru
    description: Servidor de Produção
security:
  - apiKeyAuth: []
tags:
  - name: Payments
    description: Endpoints para criar e gerenciar pagamentos PIX
  - name: Withdraws
    description: Endpoints para criar e gerenciar saques via PIX
  - name: Transfers
    description: Endpoints para transferências internas entre contas Eyo Wallet
  - name: User
    description: Endpoints para informações do usuário e configurações
paths:
  /api/v1/withdraw/get/{id}:
    get:
      tags:
        - Withdraws
      summary: Buscar Saque
      description: Consulta os detalhes de um saque específico
      operationId: getWithdraw
      parameters:
        - name: id
          in: path
          required: true
          description: ID único do saque
          schema:
            type: string
      responses:
        '200':
          description: Saque encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWithdrawResponse'
        '404':
          description: Saque não encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GetWithdrawResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            id:
              type: string
            correlationID:
              type: string
            value:
              type: integer
            status:
              type: string
              enum:
                - PENDING
                - COMPLETED
                - FAILED
            pixKey:
              type: string
            pixKeyType:
              type: string
            transactionId:
              type: string
            fee:
              type: integer
            sent:
              type: integer
            completedAt:
              type: string
              format: date-time
              nullable: true
            failedAt:
              type: string
              format: date-time
              nullable: true
            failureReason:
              type: string
              nullable: true
            createdAt:
              type: string
              format: date-time
            updatedAt:
              type: string
              format: date-time
    Error:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
          description: Mensagem de erro
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key obtida no painel da Eyo Wallet

````