> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudify.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoice / Quote Creation Rules

> Configure when and how WooCommerce orders are converted into Xero invoices or quotes.

This step controls when the integration creates a document in Xero and what type of document it creates. These are the most important settings in the setup — they determine how your WooCommerce sales appear in your Xero account.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/3Frzbbzb2uveq_Jz/images/Screenshot-2026-06-25-005723.jpeg?fit=max&auto=format&n=3Frzbbzb2uveq_Jz&q=85&s=0e7fa965be6f7893cbd1749144fa3996" alt="Screenshot 2026 06 25 005723" width="1044" height="684" data-path="images/Screenshot-2026-06-25-005723.jpeg" />
</Frame>

## Order Stage

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/3Frzbbzb2uveq_Jz/images/Screenshot-2026-06-25-005824.jpeg?fit=max&auto=format&n=3Frzbbzb2uveq_Jz&q=85&s=6e8e21495b0fcabfb44eb6fa3fcc42d8" alt="Screenshot 2026 06 25 005824" width="1048" height="666" data-path="images/Screenshot-2026-06-25-005824.jpeg" />
</Frame>

The order stage is the trigger. When a WooCommerce order reaches the status you select here, the integration automatically creates a document in Xero.

**Completed** is the recommended default for most stores. It ensures a document is only created once the order has been fully fulfilled — keeping your Xero records clean and avoiding invoices for orders that might still be cancelled or refunded.

If your business needs to record revenue earlier — for example, at the point of payment — you can select **Processing** instead.

## Document Type

Choose whether the integration creates a **draft invoice** or a **quote** in Xero.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/3Frzbbzb2uveq_Jz/images/Screenshot-2026-06-25-005909.jpeg?fit=max&auto=format&n=3Frzbbzb2uveq_Jz&q=85&s=d3eaa4e0c82d656cad51fed549b5065b" alt="Screenshot 2026 06 25 005909" width="1159" height="670" data-path="images/Screenshot-2026-06-25-005909.jpeg" />
</Frame>

* **Draft invoice** — The right choice for most stores. It records the sale as a receivable in Xero, which you can approve and send to your customer directly from Xero.
* **Quote** — Use this if your WooCommerce orders represent estimates or pending sales that haven't been confirmed yet.

## Shipping Fees

If you charge shipping on your orders, you can include it as a separate line item on your Xero invoices.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/3Frzbbzb2uveq_Jz/images/Screenshot-2026-06-25-005958.jpeg?fit=max&auto=format&n=3Frzbbzb2uveq_Jz&q=85&s=57c3b41effe56367d537c74b896d7d01" alt="Screenshot 2026 06 25 005958" width="1033" height="751" data-path="images/Screenshot-2026-06-25-005958.jpeg" />
</Frame>

If you leave this disabled, shipping costs will not appear as a line item in Xero.

Click **Next** to continue.
