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

# Recarregar saldo

> Recarga mínima R$ 30. `billingType`: `PIX` ou `CREDIT_CARD`. Escopo `billing:manage`.



## OpenAPI

````yaml /es/platform-api/api-reference/openapi-platform.json post /v1/platform/workspaces/{id}/balance/recharge
openapi: 3.0.3
info:
  title: Notifique API Platform
  description: >-
    Conta, billing, API keys, equipe e tudo que o painel faz — via API. Rotas
    públicas: `register`, `verify`, `login`. Autentique o restante com
    `Authorization: Bearer sk_live_...` ou `x-api-key`. Escopos: `api_keys:*`,
    `billing:*`, `workspace:members:*` conforme a rota.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfPlatformBearerAuth: []
  - ntfPlatformApiKeyHeader: []
tags:
  - name: 'Platform: Conta'
    description: Registro, verificação de telefone e login.
  - name: 'Platform: Billing'
    description: >-
      Assinatura, saldo, recarga e histórico de uso de créditos (`billing:read`
      / `billing:manage`).
  - name: 'Platform: API Keys'
    description: Gestão de chaves do workspace (`api_keys:read` / `api_keys:manage`).
  - name: 'Platform: Workspace'
    description: Listagem de workspaces (sessão) e recursos por workspace.
  - name: 'Platform: Equipe'
    description: >-
      Membros e convites (`workspace:members:read` /
      `workspace:members:manage`).
  - name: Sandbox
    description: Mensajes de prueba interceptados en el entorno sandbox.
paths:
  /v1/platform/workspaces/{id}/balance/recharge:
    post:
      tags:
        - 'Platform: Billing'
      summary: Recarregar saldo
      description: >-
        Recarga mínima R$ 30. `billingType`: `PIX` ou `CREDIT_CARD`. Escopo
        `billing:manage`.
      operationId: ntfPlatform_rechargeBalance
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NtfPlatform_RechargeBody'
            example:
              billingType: PIX
              paymentMethodId: clxx...
              cpfCnpj: string
              value: 1
      responses:
        '200':
          description: Recarga iniciada.
          content:
            application/json:
              examples:
                pix:
                  value:
                    success: true
                    data:
                      billingType: PIX
                      amountCents: 5000
                      pixQrCode: 00020126...
                      pixCopyPaste: 00020126...
                      expiresAt: '2026-08-14T23:00:00.000Z'
                card:
                  value:
                    success: true
                    data:
                      billingType: CREDIT_CARD
                      amountCents: 5000
                      status: CONFIRMED
              schema:
                $ref: '#/components/schemas/ntfPlatform_RechargeBalanceResponse'
        '403':
          $ref: '#/components/responses/NtfPlatform_Forbidden'
components:
  schemas:
    NtfPlatform_RechargeBody:
      type: object
      required:
        - amountCents
        - billingType
      properties:
        billingType:
          $ref: '#/components/schemas/NtfPlatform_BillingType'
        paymentMethodId:
          type: string
        cpfCnpj:
          type: string
        value:
          type: number
          minimum: 30
          description: Valor em reais (BRL), mínimo 30.
      example:
        billingType: PIX
        paymentMethodId: clxx...
        cpfCnpj: string
        value: 1
    ntfPlatform_RechargeBalanceResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            billingType:
              type: string
            amountCents:
              type: integer
            pixQrCode:
              type: string
            pixCopyPaste:
              type: string
            expiresAt:
              type: string
            status:
              type: string
              example: CONFIRMED
      example:
        success: true
        data:
          billingType: string
          amountCents: 1
          pixQrCode: string
          pixCopyPaste: string
          expiresAt: string
    NtfPlatform_BillingType:
      type: string
      enum:
        - PIX
        - CREDIT_CARD
      description: Forma de pagamento.
    NtfPlatform_Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        code:
          type: string
        message:
          type: string
          example: Campo inválido ou ausente.
        retryAfter:
          type: integer
          example: 60
      example:
        success: false
        error: string
        code: string
  responses:
    NtfPlatform_Forbidden:
      description: Escopo ausente ou sem acesso ao workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NtfPlatform_Error'
          example:
            success: false
            code: FORBIDDEN
  securitySchemes:
    ntfPlatformBearerAuth:
      type: http
      scheme: bearer
      description: API key (`sk_live_...`) ou `sessionToken` de login.
    ntfPlatformApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: Alternativa ao Bearer.

````