Electronic invoicing for Argentina's tax authority (ARCA, formerly AFIP).
cd skills/arca-invoicing
npm install
npm run setupThe setup script will prompt for:
- Environment (production or homologation)
- CUIT (with validation)
- Company name
- Certificate name
And generate the OpenSSL key and CSR automatically.
# List available commands
npm run cli
# List sales points
npm run cli -- puntos-venta
# Get last invoice number
npm run cli -- ultimo 3 11 # PV 3, Factura C (type 11)
# Get invoice info
npm run cli -- info 3 11 1 # PV 3, Factura C, number 1
# List invoice types
npm run cli -- tipos
# Check server status
npm run cli -- status
# View configuration
npm run cli -- configConfiguration is stored in ~/.arca/ (not committed to git):
~/.arca/
├── arca.key # Private key
├── arca.crt # Certificate
├── arca.csr # Certificate signing request
├── config.json # CUIT, company, environment
├── cuit.txt
├── afipsdk_access_token.txt
└── puntos_de_venta.txt