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

# Factura con IPSI

> Generación de un registro de facturación con un desglose IPSI admitido por la API

## Encabezados HTTP

<CodeGroup>
  ```http Headers HTTP theme={"dark"}
  Accept: application/json
  X-Qbikode-ClientApiKey: API-KEY de la empresa
  ```

  ```bash cURL theme={"dark"}
  curl -H 'Accept: application/json' \
       -H 'X-Qbikode-ClientApiKey: API-KEY de la empresa' \
       …
  ```
</CodeGroup>

## Cuerpo JSON de la petición

Ejemplo ficticio de una factura simplificada por `104.00`, con base imponible de `100.00` e IPSI del `4.00%`. Usa una de las claves de régimen IPSI admitidas por la API; este ejemplo no representa cobertura completa de todos los regímenes IPSI.

<CodeGroup>
  ```json JSON theme={"dark"}
  {
    "sif_id": "00000000-0000-4000-8000-000000000001",
    "invoice_type_key": "F2",
    "sender_data": {
      "company_name": "Empresa emisora de ejemplo",
      "tax_id_number": "NIF-EMISOR-EJEMPLO"
    },
    "full_invoice_number": "2026-IPSI-000001",
    "fiscal_year": 2026,
    "issue_date": "2026-10-06",
    "operation_description": "Factura simplificada de ejemplo sujeta a IPSI.",
    "total_quota": 4.00,
    "total_amount": 104.00,
    "tax_breakdown": [
      {
        "tax_type_key": "02",
        "ipsi_tax_regime_key": "01",
        "operation_type_key": "S1",
        "tax_base": 100.00,
        "tax_rate": 4.00,
        "tax_quota": 4.00
      }
    ]
  }
  ```
</CodeGroup>


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