alandaitchalandaitchCommunity·1 Agent Skills Included

afip-facturacion

Issue Argentine electronic invoices with CAE and official PDF

Issues Factura C electronic invoices for Argentine monotributo taxpayers through AFIP/ARCA web services. Handles WSAA certificate authentication, CAE authorization via WSFEv1, and generates the official PDF with QR code per RG 4291/2018. Eliminates manual portal logins and third-party invoicing apps by running everything from one terminal command. Caches tokens and logs every issued invoice for easy record keeping.
npx skills add alandaitch/afip-facturacion --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install afip-facturacion?

Run `npx skills add alandaitch/afip-facturacion --all -g -y` in your terminal to install it globally, then follow the setup guide to configure your AFIP certificate.

How to issue a Factura C from the terminal?

Once configured, run `python3 scripts/facturar.py --monto 5000 --descripcion "Consultoría"` or simply ask your agent in plain language to issue the invoice. It returns the CAE and generates the official PDF automatically.

What do I need to set up AFIP electronic invoicing?

You need an active monotributo, an AFIP fiscal key level 3, and a one-time certificate setup where you generate a CSR, upload it to AFIP, and link it to the electronic invoicing web service.

Can I test invoices before issuing real ones?

Yes. Set the environment variable AFIP_ENV=homo to point to the AFIP homologation servers, so you can test the full flow without creating real fiscal records.

Does it generate the official invoice PDF with QR code?

Yes. It replicates the official ARCA invoice format and embeds a valid verification QR code compliant with RG 4291/2018.

Related Repositories in Finance & Accounting

View All in Finance & Accounting