ARCA (formerly AFIP) electronic invoicing integration

The invoice goes out the moment you get paid.

We integrate the electronic invoicing web service of ARCA (Argentina's tax agency, formerly AFIP) with your website, store or system: type A, B and C invoices with a CAE issued automatically, and the certificate renewed on time.

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.

FAQ

What do I need to invoice through ARCA's web service?
A CUIT (tax ID) with a tax password (clave fiscal), a point of sale enabled for web services and a digital certificate linked to your CUIT, with the electronic invoicing service delegated to it. We guide you through each step, or do it with you.
Does it work for monotributistas?
Yes. Monotributistas (simplified-regime taxpayers) issue type C invoices and VAT-registered businesses (responsables inscriptos) type A or B; the integration is the same, only the document type and how VAT is reported change.
What is the CAE?
The Electronic Authorisation Code ARCA returns for each approved document. Without a CAE the invoice isn't valid, which is why the integration has to handle rejections and retries properly.
What happens when the certificate expires?
The system can no longer invoice. ARCA's digital certificates have an expiry date: if we look after maintenance, we renew it beforehand so invoicing never stops.
Can you add it to a system you didn't build?
Yes. That's the most common case: we connect it to the management system, store or software you already use, via its API or a small intermediate service.

More in