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

# Create a new billing group for a client

> Operacion: Create a new billing group for a client.



## OpenAPI

````yaml /generated/specs/finance.json post /api/v1/billing/clients/{clientId}/groups
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/billing/clients/{clientId}/groups:
    post:
      tags:
        - Billing - Grupos de Facturación
      summary: Create a new billing group for a client
      description: 'Operacion: Create a new billing group for a client.'
      operationId: BillingGroupController_createGroup
      parameters:
        - name: clientId
          required: true
          in: path
          description: Client UUID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBillingGroupDto'
      responses:
        '201':
          description: Billing group created successfully
        '400':
          description: Validation error
        '409':
          description: Subscription already assigned to another group
      security:
        - bearerAuth: []
components:
  schemas:
    CreateBillingGroupDto:
      type: object
      properties:
        name:
          type: string
          description: Nombre del grupo de facturación
          example: Flota Norte
          maxLength: 100
        description_template:
          type: string
          description: >-
            Plantilla de descripción para la línea de factura. Acepta {mes},
            {año}, {patente}.
          example: Servicio GPS Flota Norte - {mes} {año}
          maxLength: 500
        receiver_giro:
          type: string
          description: >-
            Giro del receptor para las facturas del grupo. Vacío o null usa el
            giro del cliente.
          example: Venta al por menor de alimento y accesorios para mascotas
          maxLength: 500
          nullable: true
        subscription_detail_ids:
          description: IDs de suscripciones a asignar a este grupo
          example:
            - uuid-1
            - uuid-2
          type: array
          items:
            type: string
      required:
        - name
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Token de sesión Better Auth para rutas de backoffice; las rutas de
        portal usan su token propio.

````

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