afip-facturacion

Emit AFIP/ARCA Factura C electronic invoices with CAE via WSFEv1.

45|10|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/alandaitch/afip-facturacion --skill afip-facturacion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: afip-facturacion
Source: https://github.com/alandaitch/afip-facturacion/tree/main
Command: npx skills add https://github.com/alandaitch/afip-facturacion --skill afip-facturacion

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires zeep, cryptography, lxml, qrcode, reportlab, Pillow, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Enables monotributistas in Argentina to issue AFIP/ARCA electronic invoices (Factura C) from the command line, obtaining CAE and generating a compliant PDF with a QR code.

Core Features & Use Cases

  • Emits Factura C (monotributo) via WSFEv1 and retrieves CAE, including generation of the official ARCA PDF with QR verification.
  • Caches the WSAA token (~12h) and logs every issued invoice for auditability.
  • Supports product, service, and mixed invoicing; handles production and homologation environments and stores user data locally.

Quick Start

Export AFIP_HOME=~/afip and run python3 scripts/facturar.py --monto 5000 --descripcion "Consultoría".

Frequently Asked Questions about afip-facturacion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I issue an AFIP Factura C from the command line and get the CAE?

This Skill generates AFIP Factura C documents for monotributistas by connecting to WSFEv1 via the command line and retrieving the required CAE. It handles product, service, and mixed invoicing while caching the WSAA token locally.

How does WSFEv1 handle mixed product and service invoices for monotributo?

WSFEv1 processes mixed monotributo invoices by accepting configuration for both products and services through the CLI. The script can generate and log invoices with specific periods for services, ensuring ARCA compliance across different scenarios.

Do I need local certificates to generate ARCA PDFs with QR codes?

Yes, you need local AFIP certificates stored in your configured AFIP_HOME directory to authenticate. The Skill uses these certificates alongside dependencies like qrcode and reportlab to generate compliant ARCA PDFs with QR verification.

Can I test facturacion in a homologation environment before production?

Yes, the Skill supports both homologation and production environments for AFIP facturacion. You can configure your local setup to target the homologation environment to test WSFEv1 invoice generation before issuing live documents.

What configuration is required to start emitting electronic invoices via WSFEv1?

You must set the AFIP_HOME environment variable pointing to a directory containing emisor_config.json and your AFIP certificates. This local configuration allows the script to authenticate, cache WSAA tokens, and write resulting PDFs to your user directory.

Why does the WSAA token need to be cached when issuing Factura C?

The WSAA token is cached for approximately 12 hours to avoid repeatedly authenticating with AFIP servers during facturacion. This caching mechanism ensures faster invoice generation and logs every issued Factura C for auditability.