<!-- Canonical: https://www.ezdis.net/en/manual/1.0/config/nubefact | Language: en -->

# Invoicing with Nubefact (Peru)

This guide explains how to connect your **Nubefact** account to issue electronic Boletas and Facturas to SUNAT directly from EzDIS.

## 1. What you need

- Your company’s **RUC** with electronic invoicing enabled.
- An account registered with [Nubefact](https://nubefact.com). If you don’t have one, sign up on their website.
- Your Nubefact **Route (URL)** and **Token**.

## 2. Where to find your URL and Token in Nubefact

To connect the app, we need two key values:
1. Sign in to your Nubefact account.
2. Go to the **APIs** or **Integration** section in the main menu.
3. There you’ll see your **Route** (usually something like `https://api.nubefact.com/api/v1/...`) and your **Token** (a long string of letters and numbers).
4. Copy both values; you’ll need them in the next step.

## 3. Enter the credentials in EzDIS

1. Open your admin panel.
2. Open the side menu and go to **Settings > Invoicing** or **Company settings**.
3. Find the Nubefact fields:
   - **Nubefact URL**: paste the Route you copied.
   - **Nubefact Token**: paste the Token you copied.
4. Make sure your company’s **RUC** is entered in the general details.
5. Save the changes.

## 4. Issuing documents

Once the changes are saved, the system is ready to invoice:
1. Create a new Factura or Boleta for a client or store (making sure their DNI/RUC is entered).
2. On the delivery route or at the counter, click **Declare to SUNAT**.
3. If the data is correct, the document is accepted and you can download or send by WhatsApp the **official PDF** with its QR code.

> **Important:** the app generates documents with the exact structure SUNAT requires. Remember to keep your prices and stock up to date.

## FAQ

- **Is there any extra cost to use Nubefact from EzDIS?**  
  No, the app works as a free technology intermediary. You only pay Nubefact for its issuing service.
- **I get an authentication error when declaring**  
  Check that you copied the whole token (no blank spaces at the start or end) and that the URL includes your account’s unique code.
