ARCA (formerly AFIP) electronic invoices can be issued by hand on ARCA's website, but when you sell every day that's wasted time and guaranteed mistakes. With a web-service integration, your website, store or system issues the invoice automatically at the moment of sale and sends it to the customer.
How ARCA's electronic invoicing API works
ARCA doesn't have an "API" in the modern sense, but web services. Two are used for invoicing:
- WSAA (authentication): using your digital certificate, the system requests a temporary permission to act on behalf of your CUIT.
- WSFEv1 (electronic invoicing): with that permission, it sends each document and ARCA approves it by returning a CAE (Electronic Authorisation Code) with its expiry date.
With the CAE we build the document with its mandatory QR code and email it or make it available in your system.
What you need before starting
- A CUIT and tax password at the required level.
- A point of sale enabled for web services, separate from the one you use to invoice by hand.
- A digital certificate issued for your CUIT, with the electronic invoicing service delegated to it.
- Clarity on which documents you issue: C if you're a monotributista; A or B if you're VAT-registered, depending on the customer.
Homologation: testing without real invoices
ARCA has a test environment, homologation, with its own certificate. There we test every case (invoices, credit notes, rejections, amounts with and without VAT) before moving to production, where every document is real.
Invoicing automatically when you get paid
The most requested case: the customer pays with Mercado Pago, the invoice is issued automatically with ARCA and arrives by email. It can also be triggered when an order is marked as delivered or at the end of the day, depending on how you work.
Integration with your management system or ERP
If you already use a management system, ERP or in-house software that doesn't invoice electronically, we add ARCA invoicing without replacing it. See also management system integration.
The certificate expires: maintenance
ARCA's digital certificates expire and the web services change version. If the certificate expires without anyone noticing, invoicing stops. With maintenance we renew it on time and adapt the integration when ARCA changes something.