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

# Realizar um saque



## OpenAPI

````yaml POST /account-balance/withdraw
openapi: 3.0.0
info:
  title: payera-api
  description: Documentação de endpoints e entidades da payera
  version: '1.0'
  contact: {}
servers:
  - url: https://api.rivoopay.com
security:
  - ApiKeyAuth: []
paths:
  /account-balance/withdraw:
    post:
      tags:
        - Saldo da conta
      summary: Iniciar saque (envia OTP por email)
      operationId: AccountBalanceController_initiateWithdraw
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitiateWithdrawDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitiateWithdrawResponse'
        '400':
          description: Valor mínimo não atingido
        '409':
          description: Saque pendente já existe
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingWithdrawConflictResponse'
        '422':
          description: Conta RivooPay não aprovada ou email não cadastrado
components:
  schemas:
    InitiateWithdrawDto:
      type: object
      properties:
        value:
          type: number
          example: 10000
          description: Valor do saque em centavos (mínimo 101 = R$ 1,01)
      required:
        - value
    InitiateWithdrawResponse:
      type: object
      properties:
        status:
          type: number
        message:
          type: string
        data:
          $ref: '#/components/schemas/InitiateWithdrawData'
      required:
        - status
        - message
        - data
    PendingWithdrawConflictResponse:
      type: object
      properties:
        statusCode:
          type: number
          example: 409
        message:
          type: string
          example: >-
            Já existe um saque pendente para esta empresa. Confirme ou aguarde o
            processamento antes de iniciar um novo.
        withdrawId:
          type: string
          example: withdraw_abc123
          description: ID do saque pendente — use para confirmar, cancelar ou reenviar OTP
      required:
        - statusCode
        - message
        - withdrawId
    InitiateWithdrawData:
      type: object
      properties:
        withdrawId:
          type: string
          example: withdraw_abc123
          description: ID do saque criado
      required:
        - withdrawId
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````