Electronic invoicing setup in Argentina (AFIP)

Full guide: Follow these steps to configure AFIP electronic invoicing in Doctor Vet. You will be able to issue electronic invoices directly from the app.

Setup steps

1 Install OpenSSL

Download and install OpenSSL on a Windows computer:

Download OpenSSL 64-bit

2 Open a command window

Open Run and start a command session:

Windows + R

3 Generate private key

Run the following command and press Enter:

openssl genrsa -out private_key.key 2048

4 Generate certificate request

Important: Replace “My company name” with your business name and “123456789” with your CUIT (Argentine tax ID) with no spaces or dashes.

Run the following command (replace the values):

openssl req -new -key private_key.key -subj "/C=AR/O=My company name/CN=Certificate 2024/serialNumber=CUIT 123456789" -out certificate_request.csr

5 Enable AFIP digital certificate manager

On the AFIP website, search for: Administrador de certificados digitales (Digital certificate manager).

If you cannot find it, enable it using this path:

Administrador de relaciones de clave fiscal → adherir servicio → AFIP → servicios interactivos → administración de certificados digitales → confirmar

6 Create certificate in AFIP

In the digital certificate manager, follow these steps:

  1. Add alias
  2. Enter a symbolic name (e.g. “electronic invoicing”)
  3. Upload the certificate request created earlier (certificate_request.csr)
  4. Add alias
  5. View → download

7 Convert certificate from CRT to PEM

Run these commands on the downloaded file:

openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM

8 Configure point of sale in AFIP

On the AFIP website, search for: Administración de puntos de venta y domicilios

(If inactive, enable it from the fiscal key relationship manager.)

Create an electronic point of sale RCE web services and note the point-of-sale number.

9 Enable invoicing web services

Follow this path in AFIP:

Administración de Relaciones de Clave Fiscal → nueva relación → seleccionar representado → AFIP → Web services → facturación electrónica → seleccionar computador fiscal → confirmar

10 Transfer files to your phone

Copy these files to your phone:

  • private_key.key
  • server.pem

11 Configure in Doctor Vet

In the Doctor Vet app:

  1. Create an electronic point of sale with the same number as in AFIP
  2. Select the .key and .pem files

Setup complete! You can now issue electronic invoices directly from Doctor Vet.

If you have questions or issues during setup, contact us: