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

# Consultar fatura

> Consulta uma fatura pelo id interno.

Retorna uma fatura da organizacao autenticada.

`status` pode ser: `open`, `paid`, `void`, `uncollectible`.

Erros comuns: `400` (UUID invalido), `401`/`403` (auth/produto), `404` (nao encontrada ou outra organizacao), `429` (20 req/min).


## OpenAPI

````yaml GET /v1/subscriptions/invoices/{invoiceId}
openapi: 3.0.0
info:
  title: UvviPay Public API
  description: >-
    Endpoints públicos da plataforma UvviPay para integração de subcontas
    (submerchants).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.uvvipay.com.br
    description: Produção
  - url: https://api-staging.uvvipay.com.br
    description: Staging
security:
  - client-id: []
    client-secret: []
tags: []
paths:
  /v1/subscriptions/invoices/{invoiceId}:
    get:
      tags:
        - Faturas
      summary: Consultar fatura
      description: >-
        Retorna uma fatura pelo id interno, restrita à organização das
        credenciais.
      operationId: getRecurrencyInvoice
      parameters:
        - name: client-id
          in: header
          description: ID público da credencial do merchant
          required: true
          schema:
            type: string
        - name: client-secret
          in: header
          description: Secret da credencial do merchant
          required: true
          schema:
            type: string
        - name: invoiceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Fatura
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecurrencyInvoiceDto'
        '400':
          description: UUID de path inválido
        '401':
          description: Credenciais inválidas ou ausentes
        '403':
          description: Produto `recurrency` não habilitado para o merchant
        '404':
          description: Fatura não encontrada
        '429':
          description: Limite de requisições excedido (20 requests per 60 seconds)
components:
  schemas:
    RecurrencyInvoiceDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        subscription_id:
          type: string
          format: uuid
          nullable: true
        amount:
          type: integer
        discount:
          type: integer
          nullable: true
        currency:
          type: string
          example: BRL
        cycle_start:
          type: string
          format: date-time
        cycle_end:
          type: string
          format: date-time
          nullable: true
        due_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - open
            - paid
            - void
            - uncollectible
          description: Status da fatura
  securitySchemes:
    client-id:
      type: apiKey
      in: header
      name: client-id
    client-secret:
      type: apiKey
      in: header
      name: client-secret

````