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

# Create all invoices for a period

> Generates invoices for all valid clients in the specified period. Returns execution ID for progress tracking.



## OpenAPI

````yaml /generated/specs/finance.json post /api/v1/facturacion-2/create-all
openapi: 3.0.0
info:
  title: Raul API - Finanzas
  description: >-
    Facturas, boletas, ejecuciones de billing, cuentas por pagar y medios de
    pago.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/facturacion-2/create-all:
    post:
      tags:
        - Facturacion 2.0
      summary: Create all invoices for a period
      description: >-
        Generates invoices for all valid clients in the specified period.
        Returns execution ID for progress tracking.
      operationId: Facturacion2Controller_createAllInvoices
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAllInvoicesDto'
      responses:
        '200':
          description: Invoice creation process started
          content:
            application/json:
              schema:
                example:
                  ejecucion_id: uuid
                  periodo: 2026-01
                  uf_value: 39701.09
                  estado: iniciada
                  total_intentadas: 0
                  total_exitosas: 0
                  total_fallidas: 0
                  message: Proceso de facturación iniciado
        '400':
          description: Invalid period or UF value
components:
  schemas:
    CreateAllInvoicesDto:
      type: object
      properties:
        periodo:
          type: string
          description: Period in YYYY-MM format
          example: 2026-01
        uf_value:
          type: number
          description: UF value for the period
          example: 39701.09
      required:
        - periodo
        - uf_value

````