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

# Transferência Interna

> Transfira saldo para outra conta Eyo Wallet usando o email

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST 'https://api.eyowallet.ru/api/v1/transfer/internal' \
    -H 'X-API-Key: sua_api_key' \
    -H 'Content-Type: application/json' \
    -d '{
      "email": "destinatario@example.com",
      "value": 50.00,
      "description": "Pagamento de serviço"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "success": true,
    "message": "Transferência realizada com sucesso",
    "data": {
      "id": "transfer_abc123",
      "value": 5000,
      "valueInReais": 50.00,
      "recipientEmail": "destinatario@example.com",
      "recipientName": "João Silva",
      "description": "Pagamento de serviço",
      "createdAt": "2024-01-15T10:30:00Z"
    }
  }
  ```

  ```json Error - Usuário não encontrado theme={null}
  {
    "success": false,
    "error": "Usuário não encontrado"
  }
  ```

  ```json Error - Saldo insuficiente theme={null}
  {
    "success": false,
    "error": "Saldo insuficiente para realizar a transferência"
  }
  ```
</ResponseExample>

### Parâmetros

<ParamField body="email" type="string" required>
  Email do destinatário da transferência. Deve ser uma conta Eyo Wallet ativa.
</ParamField>

<ParamField body="value" type="number" required>
  Valor da transferência em reais. Pode ser qualquer valor acima de R\$ 0,01.
</ParamField>

<ParamField body="description" type="string">
  Descrição opcional da transferência. Aparecerá no extrato do destinatário.
</ParamField>

### Campos da Resposta

<ResponseField name="id" type="string">
  ID único da transferência.
</ResponseField>

<ResponseField name="value" type="integer">
  Valor da transferência em centavos.
</ResponseField>

<ResponseField name="valueInReais" type="number">
  Valor da transferência em reais.
</ResponseField>

<ResponseField name="recipientEmail" type="string">
  Email do destinatário.
</ResponseField>

<ResponseField name="recipientName" type="string">
  Nome do destinatário.
</ResponseField>

<ResponseField name="description" type="string">
  Descrição da transferência.
</ResponseField>

### Vantagens da Transferência Interna

| Característica  | Descrição                        |
| --------------- | -------------------------------- |
| **Gratuita**    | Sem taxa de transferência        |
| **Instantânea** | Saldo disponível imediatamente   |
| **Sem limite**  | Sem valor mínimo ou máximo       |
| **Simples**     | Apenas email + valor necessários |

<Tip>
  Transferências internas são a forma mais rápida e econômica de enviar dinheiro para outros usuários Eyo Wallet.
</Tip>

### Erros Comuns

| Código | Erro                                      | Descrição                                                 |
| ------ | ----------------------------------------- | --------------------------------------------------------- |
| 404    | `Usuário não encontrado`                  | O email informado não pertence a nenhuma conta Eyo Wallet |
| 400    | `Saldo insuficiente`                      | Você não tem saldo suficiente para a transferência        |
| 400    | `Não é possível transferir para si mesmo` | O email é o mesmo da sua conta                            |

### Permissões Necessárias

Esta rota requer a permissão `write:transfer:internal`.

### Rate Limiting

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


## OpenAPI

````yaml POST /api/v1/transfer/internal
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/transfer/internal:
    post:
      tags:
        - Transfers
      summary: Transferência Interna
      description: >-
        Transfere saldo para outra conta Eyo Wallet usando o email.
        Transferências internas são gratuitas e instantâneas.
      operationId: internalTransfer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InternalTransferRequest'
      responses:
        '200':
          description: Transferência realizada com sucesso
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalTransferResponse'
        '400':
          description: Saldo insuficiente ou transferência para si mesmo
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Usuário não encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    InternalTransferRequest:
      type: object
      required:
        - email
        - value
      properties:
        email:
          type: string
          format: email
          description: Email do destinatário (conta Eyo Wallet ativa)
        value:
          type: number
          description: Valor da transferência em reais (mínimo R$ 0,01)
          minimum: 0.01
        description:
          type: string
          description: Descrição opcional da transferência
    InternalTransferResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
          properties:
            id:
              type: string
            value:
              type: integer
              description: Valor em centavos
            valueInReais:
              type: number
              description: Valor em reais
            recipientEmail:
              type: string
            recipientName:
              type: string
            description:
              type: string
            createdAt:
              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

````