Electronic invoicing with ARCA (Argentina)

This guide explains how to connect EzDIS to ARCA to issue Argentine electronic tax documents from the app. EzDIS handles the technical connection: you enter the business’s tax details, declare the invoice and the app stores the CAE, the official number and the validation QR code.

In official documentation and screens you may see ARCA or AFIP. In this guide we use ARCA to refer to the same process.

What is integrated

When your account is set to Argentina, EzDIS can declare:

  • Factura A, B and C;
  • Credit Note A, B and C;
  • Debit Note A, B and C;
  • CAE and CAE expiry date;
  • ARCA point of sale;
  • official verification QR code;
  • VAT by rate;
  • documents created from manual invoices, clients, stores and routes.

There is still a single Declare button. If the document is Uruguayan, the app uses Biller/DGI. If it is Argentine, the app uses ARCA.

Administrative requirements

Before going live, confirm these points with the CUIT holder or their accountant.

  • Active CUIT.
  • Tax password (clave fiscal) with enough permissions.
  • Access to Administrador de Relaciones de Clave Fiscal.
  • Access to Administración de Certificados Digitales for production.
  • Digital certificate issued by ARCA.
  • Electronic invoicing web service linked to the certificate.
  • Point of sale enabled for web service issuing.
  • The business’s VAT status: Monotributo, Responsable Inscripto or Exento.

ARCA separates testing and production. For testing there is WSASS; for production you use Administración de Certificados Digitales and Administrador de Relaciones de Clave Fiscal.

Requirements in EzDIS

In the app you need:

  • the account country set to Argentina;
  • default currency normally set to ARS;
  • Argentine VAT types loaded;
  • ARCA activation requested from EzDIS support;
  • issuer CUIT;
  • ARCA point of sale;
  • production certificate and private key;
  • clients and stores with complete tax details.

You don’t need to touch code or install anything technical. For testing you can use a test CUIT. For production you do need the Argentine taxpayer’s real details and validation from the accountant or tax administrator.

ARCA SDK managed by EzDIS

EzDIS connects to ARCA using ARCA SDK, but we manage the account and the technical token. The business owner doesn’t have to create an ARCA SDK account, choose a plan or copy tokens.

The integration includes up to 50 declared documents per month at no extra cost. If your account goes over that volume, we quote it with the client on WhatsApp based on actual use.

What the business does have to provide is the tax information:

  • issuer CUIT;
  • point of sale;
  • VAT status;
  • production certificate and private key;
  • correct tax details for clients and stores.

The ARCA SDK token is set up centrally in EzDIS’s infrastructure and doesn’t appear in your account’s panel.

General settings

Go to Settings → General.

Field Recommended value
Country Argentina
VAT status Monotributo, Responsable Inscripto or Exento
Company name The distributor’s legal name
Tax ID CUIT
Tax address Tax or business address
Email / phone Details printed on documents

The business’s VAT status defines which documents you issue by default.

Invoicing settings

Go to Settings → Invoicing.

Field What to enter
Enable ARCA On to declare Argentine documents
ARCA environment Testing for tests, Production for real operation
ARCA issuer CUIT The distributor’s CUIT, without dashes
ARCA point of sale Point of sale enabled in ARCA
ARCA certificate Full content of the certificate
ARCA private key Full content of the private key

Paste the full content of the files. Don’t paste a local path. The certificate and key must include the -----BEGIN ...----- and -----END ...----- lines.

Testing flow

Test everything in the testing environment before issuing real documents.

  1. Ask support to activate ARCA for your account.
  2. Set ARCA environment = Testing.
  3. Use the test CUIT 20409378472 if you don’t have your own Argentine CUIT for testing.
  4. Set ARCA point of sale = 1 unless your environment says otherwise.
  5. Turn on Enable ARCA.
  6. Add a test client or store.
  7. Add products with Argentine VAT.
  8. Create an invoice.
  9. Tap Declare.
  10. Check that EzDIS stores the CAE, number, CAE expiry and QR code.

Testing documents have no real tax validity.

If you live outside Argentina, for example in Uruguay, you can still test the flow with that test CUIT as long as your account is set to Argentina and the environment is Testing. That test validates screens, calculations, testing CAE and QR, but doesn’t replace the real setup of an Argentine taxpayer.

Requesting the production certificate

The production certificate identifies the CUIT to ARCA. EzDIS needs that certificate and its private key to issue real documents.

This section is based on ARCA’s official procedure Generación de Certificados para Producción.

This step belongs to the taxpayer. EzDIS manages the ARCA SDK account and token, but the ARCA certificate has to be obtained by the CUIT holder, their accountant or an authorized person with a tax password. That certificate and its private key are then entered in EzDIS.

There are two important files:

File What it’s for Where you get it
Private key Identifies the system to ARCA together with the certificate Generated by whoever prepares the certificate request
ARCA certificate Authorizes that CUIT to operate by web service Downloaded from ARCA after uploading the request

ARCA doesn’t provide the private key. ARCA provides the certificate. That’s why it’s important to keep the private key generated at the start: EzDIS needs the downloaded certificate and that same private key.

1. Get the private key and the certificate request

Before going into ARCA, someone must generate a private key and a certificate signing request, also called a CSR.

If the accountant, support or a technical person does it, ask them for this:

I need to generate a private key and a CSR to issue electronic invoices by web service in ARCA/AFIP for the business's CUIT. I'll then enter the certificate and the private key in EzDIS.

They should give you:

  • a private key file or text, which usually starts with -----BEGIN RSA PRIVATE KEY----- or -----BEGIN PRIVATE KEY-----;
  • a CSR file or text, which usually starts with -----BEGIN CERTIFICATE REQUEST-----.

The CSR is only used to request the certificate in ARCA. The private key is kept to enter later in EzDIS.

The private key is sensitive. Don’t share it by WhatsApp, regular email or open channels. If it leaks, the certificate has to be revoked and a new one generated.

If a technical person needs to generate it with OpenSSL, the official format uses a 2048-bit private key and a CSR with serialNumber=CUIT .... They can use commands like these, replacing the company name, alias and CUIT:

openssl genrsa -out ezdis_afip_privada.key 2048
openssl req -new -key ezdis_afip_privada.key -subj "/C=AR/O=RAZON SOCIAL/CN=ezdis/serialNumber=CUIT 20123456789" -out ezdis_afip_pedido.csr

The .key file is the private key. The .csr file is the request uploaded to ARCA. In serialNumber it must literally say CUIT, then a space, and then the number without dashes.

2. Create the certificate in ARCA

Sign in to the ARCA portal with the tax password of the CUIT’s authorized representative or administrator.

  1. Go to arca.gob.ar or the tax password login.
  2. Sign in with CUIT/CUIL and tax password.
  3. If the Administración de Certificados Digitales service doesn’t appear, add it from Administrador de Relaciones de Clave Fiscal.
  4. In the list of services, choose Ver todos if needed.
  5. Open Administración de Certificados Digitales.
  6. Choose on whose behalf you are acting. If the user has permissions on several CUITs, choose the CUIT of the taxpayer that will invoice.
  7. Click Agregar Alias.
  8. Type a descriptive alias, for example ezdis or facturacion-1.
  9. Upload the CSR file generated in the previous step.
  10. Confirm the request.
  11. Open the detail of the generated alias/certificate.
  12. Use the Descargar option to get the digital certificate issued by ARCA, usually as a .crt file.

The downloaded certificate usually comes as a .crt, .cer file or PEM text. When opened, it should look like this:

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

That downloaded certificate and the private key generated in the previous step are the pair EzDIS needs to declare documents.

Don’t enter the CSR in EzDIS. The CSR is only used to request the certificate in ARCA.

ARCA states that issued certificates expire. When that date approaches, the best practice is to renew by generating a new CSR and linking it to a new alias (e.g. ezdis-2025), then linking that new alias to the web service in the Administrador de Relaciones.

The official PDF also mentions building a .p12 or .pfx file combining the certificate and private key. EzDIS doesn’t need that format: in the panel you paste the .crt/.cer certificate and the private key separately.

Official reference screenshots

These screenshots come from ARCA’s official PDF and help you find each step in the portal.

Tax password login in ARCA

List of administrative services and access to Administración de Certificados Digitales

Choosing the taxpayer and form to add an alias with the CSR

Alias detail and download of the issued digital certificate

Official OpenSSL commands to generate the private key and CSR

3. Authorize the electronic invoicing service

The certificate must be allowed to use electronic invoicing.

  1. Open Administrador de Relaciones de Clave Fiscal.
  2. Choose the taxpayer.
  3. Find the electronic invoicing web service.
  4. Link the certificate or alias generated for EzDIS.
  5. Confirm the relationship.

The service usually appears as Web Service de Factura Electrónica V1 or wsfev1. It’s the service that issues A, B and C documents with CAE.

4. Create or confirm the point of sale

In ARCA, check that there is a point of sale for web service.

  • If there isn’t one, create it.
  • Write down the number.
  • Enter it in EzDIS as ARCA point of sale.

The point of sale is part of the document’s official number. If it doesn’t match ARCA, issuing can fail.

Enter the certificate and key in EzDIS

Once you have the certificate and the private key, go to Settings → Invoicing.

In ARCA certificate paste:

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

In ARCA private key paste:

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

Then:

  1. Change the environment to Production.
  2. Confirm the issuer CUIT.
  3. Confirm the point of sale.
  4. Save.
  5. Issue a controlled real invoice.
  6. Check the CAE and QR code.

Tax details for clients and stores

For end-consumer clients:

  • first and last name;
  • DNI if available;
  • CUIT if applicable;
  • VAT status Consumidor Final.

For stores:

  • company name;
  • CUIT in the tax field;
  • correct VAT status;
  • email, phone and address.

In EzDIS, a Factura A must be issued to a store or company with a valid CUIT. Factura B or C can be used for end clients or stores as appropriate.

Document types

Issuer Usual documents
Responsable Inscripto Factura A or B, Notes A or B
Exento Factura C, Notes C (same as Monotributo)
Monotributo Factura C, Notes C

A note’s letter must match the original invoice. If the original invoice was Factura A, the correction must be Credit Note A or Debit Note A.

VAT on products and rates/plans

Products and rates/plans must have the right tax type.

Type ARCA code
Not taxed 1
Exempt 2
VAT 0% 3
VAT 10.5% 4
VAT 21% 5
VAT 27% 6
VAT 5% 8
VAT 2.5% 9

For distributors this is especially important because the invoice may come from a product template or a route. Check the catalog taxes before issuing in bulk.

Declare an invoice

  1. Create the invoice from Invoices, from a store or from the route flow if applicable.
  2. Choose Factura A, B or C.
  3. Check the store/client, CUIT or DNI, VAT status, currency, products, discounts, surcharges and VAT.
  4. Save.
  5. Open the document.
  6. Tap Declare.
  7. Wait for ARCA’s response.
  8. If accepted, EzDIS stores the CAE, expiry, point of sale, official number and QR code.

A declared invoice shouldn’t be edited manually. To correct it, use a credit or debit note.

Credit and debit notes

To declare a note:

  • the original invoice must be declared;
  • the note must reference that invoice;
  • the letter must match;
  • the recipient must match;
  • the currency must match.

EzDIS checks these relationships to avoid tax adjustments without a base document.

Currency

The most stable option is to declare in ARS.

The app can map some foreign currencies. When the document isn’t in ARS, EzDIS asks ARCA for the exchange rate. If the currency isn’t supported or ARCA doesn’t return a rate, declare it in ARS or check the settings before retrying.

[!NOTE] When invoicing in a foreign currency, the EzDIS PDF shows the amount in the original currency (e.g. USD). For tax purposes, however, ARCA records the document by converting that amount to Argentine pesos (ARS) using the official rate provided by the web service at the time of declaration.

Common errors

Error What to check
ARCA not enabled Turn on the integration in Settings → Invoicing
ARCA connection unavailable Ask support to activate ARCA for your account
Invalid issuer CUIT 11-digit CUIT
Production requires certificate and key Complete certificate and key
Point of sale rejected Point of sale enabled for web service
Store CUIT rejected The store’s tax details
VAT rejected Tax type of the product or rate/plan
Note rejected Original invoice declared and same letter
Authorization error Certificate linked to the right web service

Go-live checklist

  • The accountant validated the documents the business should issue.
  • The certificate was issued for the right CUIT.
  • The certificate was authorized for electronic invoicing.
  • The point of sale exists and is for web service.
  • ARCA was activated by EzDIS support.
  • The environment is set to Production.
  • CUIT, certificate and key match.
  • Products and rates/plans have the right Argentine VAT.
  • A controlled real invoice was tested.
  • The QR code and CAE were checked.

Security

  • Don’t send the private key by email or messaging.
  • Limit permissions to configure ARCA.
  • Limit permissions to declare documents.
  • If the key leaks, revoke the certificate.
  • Keep a secure backup of the private key and the certificate.

Useful sources