# How do I issue invoices with Wafeq?

Wafeq is for Saudi Arabia: ZATCA phase 2 e-invoices, signed and reported by Wafeq. 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 Wafeq, select your organization, open **Settings › Developer › API Keys**, click **Create key** and copy it. Connect your ZATCA device in Wafeq once (**Settings › ZATCA**, with the OTP from the Fatoora portal).
2. In Dropify, go to **Apps › Discover**, open **Wafeq** and click **Install**.
3. On the app page, fill in **API key** 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. Pick the VAT rate, revenue account and cash account; products with another rate are set under **Product tax codes**.
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

- "Wafeq refused this API key" → copy the credentials again from your Wafeq account.
- "Finish the Wafeq settings on the app page before issuing invoices" → fill in every required field in **Invoicing**.
- Business buyer → enter the buyer VAT number on the invoice card before issuing to get a standard invoice.

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