# How do I issue invoices with PlugNotas?

PlugNotas is for Brazil: the NF-e (modelo 55) of your orders, authorised by SEFAZ. Each order gets its invoice once, automatically when it is delivered (the cash is collected) or paid, or when you click **Issue invoice**; the number and the PDF show on the order and in **Latest documents**.

## Steps

1. In your PlugNotas customer portal, generate an API token and copy it with your company CNPJ.
2. In Dropify, go to **Apps › Discover**, open **PlugNotas** and click **Install**.
3. On the app page, choose the **Environment** (**Test mode** for test credentials), fill in **API key** and **Company CNPJ** and click **Connect**.
4. Under **Invoicing**, choose **Issue the invoice**: "When the order is delivered (recommended for COD)" is recommended for cash on delivery. Fill in the required fields until no warning remains.
5. Set the default NCM, then NCM / CFOP per product under **Product tax codes** where they differ.
6. Test it: open a delivered order and click **Issue invoice**. The invoice number appears on the order card with **Invoice PDF**; clicking it again never creates a second invoice.

## Common problems

- "PlugNotas refused these credentials" → copy the credentials again from your PlugNotas account and use the matching environment.
- "Finish the PlugNotas settings on the app page before issuing invoices" → fill in every required field in **Invoicing**.
- "Order #… has no CPF or CNPJ" or "no valid CEP" → add the buyer's CPF/CNPJ on the invoice card, and make sure your checkout asks for the CEP.

## Related
- [How do I issue invoices with Focus NFe?](https://help.dropify.shop/en/productivity_apps/focusnfe/)
- [How do I issue invoices with NFE.io?](https://help.dropify.shop/en/productivity_apps/nfeio/)
- [How do I generate invoices and shipping labels with InvoiceCraft?](https://help.dropify.shop/en/productivity_apps/invoicecraft/)
