> ## 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.

# Invoices / Quotes

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

The Invoices/Quotes section has two tabs: **Invoice/Quote Sync Rules** and **Invoice/Quote Field Mappings**. Work through each tab and click **Save** before moving to the next.

***

## Invoice / Quote Sync Rules

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

This tab defines the trigger for creating invoice/quote in Xero and what type of document is created. Getting these settings right ensures your Xero records accurately reflect what was sold, to whom, and when.

### Order Stage

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

This setting answers the question: *at what point in the WooCommerce order lifecycle should Xero be notified?*

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

| Stage           | Meaning                                        |
| --------------- | ---------------------------------------------- |
| Pending Payment | Order received, payment not yet confirmed      |
| Processing      | Payment confirmed, order being prepared        |
| On Hold         | Awaiting manual review or payment confirmation |
| Completed       | Order fully fulfilled                          |
| Cancelled       | Order cancelled by customer or admin           |
| Refunded        | Order has been refunded                        |
| Failed          | Payment failed or was declined                 |
| Draft           | Order saved but not yet submitted              |

**Completed** is the recommended default for most stores — it ensures an invoice is only created once the order is fully fulfilled, keeping your accounts clean and avoiding invoices for orders that may still be cancelled or refunded.

If your accounting process requires earlier visibility — for example, recording revenue at the point of payment — **Processing** may be more appropriate.

### Document Type

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

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

* **Draft invoice** — Use for confirmed sales. A draft invoice records the transaction as a receivable in Xero and can be approved and sent to the customer directly from Xero.
* **Quote** — Use when an order is not yet confirmed or when you need to send an estimate before committing to the sale.

Most WooCommerce stores should use **Create draft invoice**. Quotes are more relevant if you use WooCommerce to collect enquiries or provisional orders.

### Shipping Fees

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

By default, shipping costs are not included as a separate line item on Xero invoices. Enabling this option adds shipping as a distinct line item, linked to a specific Xero product.

To enable it:

1. Check **Select a default item to add line item for Shipping Fee**.

2. A product dropdown will appear. Select the Xero item that represents your shipping charge.

Click **Save** before continuing.

***

## Invoice / Quote Field Mappings

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

This tab controls which WooCommerce order fields are transferred to Xero invoice fields. These mappings populate the header-level details of the invoice — the dates, reference numbers, and currency — rather than the line items.

**Why this matters:** Accurate invoice metadata makes reconciliation easier. Mapping the invoice number or order reference means you can cross-reference Xero invoices back to WooCommerce orders without manual searching.

| Xero Field              | WooCommerce Field  | Notes                                                                        |
| ----------------------- | ------------------ | ---------------------------------------------------------------------------- |
| Issue Date              | Order Created Date | Pre-mapped — uses the date the order was placed                              |
| Due Date                | Not Mapped         | Must use YYYY-MM-DD format if mapped                                         |
| Invoice Number          | Not Mapped         | Map this to keep Xero invoice numbers in sync with WooCommerce order numbers |
| Reference               | Not Mapped         | Useful for adding an internal order reference to the Xero invoice            |
| Currency Code           | Not Mapped         | Provide the currency code only (e.g. USD, GBP, AUD)                          |
| Add to Item Description | Not Mapped         | Appends additional WooCommerce data to the Xero line item description        |

To update a mapping, click **Edit** next to the relevant Xero field and select the corresponding WooCommerce field. Fields showing **Not Mapped** will not be populated in Xero unless a mapping is added.

Click **Save Mappings** when finished.
