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

# Listar faturas

> Lista as faturas da sua organizacao, com filtro opcional por assinatura.

Lista as faturas da organizacao autenticada. Cada item retorna `id`, `subscription_id` e `status`. Use `subscription_id` na query para filtrar por assinatura. Paginacao por `page` e `limit` (maximo 100).

Se `page` estiver além do fim, a API retorna `data: []` com `total`, `page`, `limit` e `total_pages` validos.

Exemplo de resposta:

```json theme={null}
{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440002",
      "subscription_id": "550e8400-e29b-41d4-a716-446655440003",
      "status": "open"
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 10,
  "total_pages": 1
}
```

Erros comuns: `400` (`page`/`limit`/`subscription_id` invalidos), `401`/`403` (auth/produto), `429` (20 req/min).


## OpenAPI

````yaml GET /v1/subscriptions/invoices
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:
    get:
      tags:
        - Faturas
      summary: Listar faturas
      description: >-
        Lista as faturas da organização autenticada. Filtro opcional por
        `subscription_id`. Se `page` estiver além do fim, retorna `data: []` com
        `total`, `page`, `limit` e `total_pages` válidos.
      operationId: listRecurrencyInvoices
      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: subscription_id
          in: query
          required: false
          description: Filtrar faturas de uma assinatura
          schema:
            type: string
            format: uuid
        - name: page
          in: query
          required: false
          description: Página (1-based)
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: limit
          in: query
          required: false
          description: Itens por página (máximo 100)
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
      responses:
        '200':
          description: >-
            Página de faturas. Página além do fim: `data: []` com metadados
            válidos.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRecurrencyInvoicesResponseDto'
              examples:
                page:
                  summary: Página com itens
                  value:
                    data:
                      - id: 550e8400-e29b-41d4-a716-446655440002
                        subscription_id: 550e8400-e29b-41d4-a716-446655440003
                        status: open
                    total: 1
                    page: 1
                    limit: 10
                    total_pages: 1
                empty_page:
                  summary: Página além do fim
                  value:
                    data: []
                    total: 3
                    page: 50
                    limit: 10
                    total_pages: 1
        '400':
          description: >-
            Parâmetros inválidos (`page`, `limit` fora do intervalo, ou
            `subscription_id` não UUID)
        '401':
          description: Credenciais inválidas ou ausentes
        '403':
          description: Produto `recurrency` não habilitado para o merchant
        '429':
          description: Limite de requisições excedido (20 requests per 60 seconds)
components:
  schemas:
    ListRecurrencyInvoicesResponseDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/RecurrencyInvoiceListItemDto'
        total:
          type: integer
        page:
          type: integer
        limit:
          type: integer
        total_pages:
          type: integer
      example:
        data:
          - id: 550e8400-e29b-41d4-a716-446655440002
            subscription_id: 550e8400-e29b-41d4-a716-446655440003
            status: open
        total: 1
        page: 1
        limit: 10
        total_pages: 1
    RecurrencyInvoiceListItemDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        subscription_id:
          type: string
          format: uuid
          nullable: true
        status:
          type: string
          enum:
            - open
            - paid
            - void
            - uncollectible
          description: Status da fatura
      required:
        - id
        - subscription_id
        - status
  securitySchemes:
    client-id:
      type: apiKey
      in: header
      name: client-id
    client-secret:
      type: apiKey
      in: header
      name: client-secret

````