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

# Listar fechamentos de competência



## OpenAPI

````yaml https://api.juridiq.com.br/api-docs/client/openapi.json get /financial/periods
openapi: 3.1.0
info:
  title: Juridiq API — Documentação para Integradores
  description: >-
    API REST para integradores autenticados com chave (`x-juridiq-api-key`).


    ## Rate limit


    A API aberta limita **120 requisições a cada 60s por chave**.

    Ao exceder, a resposta é `429 Too Many Requests` com os headers
    `x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset` e
    `retry-after`.

    Respeite o `retry-after` antes de tentar de novo. Sincronizações em lote
    devem paginar e tratar 429 com backoff.
  version: 1.0.0
servers:
  - url: https://api.juridiq.com.br
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /financial/periods:
    get:
      tags:
        - Financial
      summary: Listar fechamentos de competência
      parameters:
        - schema:
            type: integer
            minimum: 2000
            maximum: 2100
          in: query
          name: year
          required: false
          description: Ano
      responses:
        '200':
          description: Fechamentos
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      format: uuid
                      description: ID do fechamento
                    officeId:
                      type: string
                      format: uuid
                      description: ID do escritório
                    year:
                      type: integer
                      description: Ano
                    month:
                      type: integer
                      description: Mês
                    status:
                      type: string
                      enum:
                        - closed
                        - reopened
                      description: Status
                    closedAt:
                      anyOf:
                        - type: string
                        - type: string
                          format: date-time
                      description: Fechado em
                    closedByUserId:
                      type: string
                      format: uuid
                      description: Quem fechou
                    reopenedAt:
                      anyOf:
                        - type: string
                        - type: string
                          format: date-time
                      nullable: true
                      description: Reaberto em
                    reopenedByUserId:
                      type: string
                      format: uuid
                      nullable: true
                      description: Quem reabriu
                    createdAt:
                      anyOf:
                        - type: string
                        - type: string
                          format: date-time
                      description: Criado em
                    updatedAt:
                      anyOf:
                        - type: string
                        - type: string
                          format: date-time
                      description: Atualizado em
                  required:
                    - id
                    - officeId
                    - year
                    - month
                    - status
                    - closedAt
                    - closedByUserId
                  additionalProperties: true
                description: Fechamentos
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-juridiq-api-key
      description: >-
        Chave de API do escritório (criada no painel). Envie o valor no header
        x-juridiq-api-key. A API aberta aplica rate limit por chave (veja a
        documentação de integradores).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.