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

# Sync to accounting

> Filter charges by sync status and push reconciled charges with matched invoices to Xero or QuickBooks.

After a charge is reconciled in ClearSpend, you can push it to **Xero** or **QuickBooks** with its matched invoice.

You can connect only **one** accounting tool at a time — either [Xero](https://docs.clearspend.ai/connect/xero.md) or [QuickBooks](https://docs.clearspend.ai/connect/quickbooks.md), not both. To switch, disconnect the current one on **Integrations**, then connect the other.

The **sync status tabs** on [Transactions](https://docs.clearspend.ai/features/transactions) show where each charge is in that pipeline. They are separate from **Evidence** and **Reconciled**, which track documentation and match quality inside ClearSpend.

See [Xero](https://docs.clearspend.ai/connect/xero.md) or [QuickBooks](https://docs.clearspend.ai/connect/quickbooks.md).

<video controls src="https://assets.clearspend.ai/content/videos/sync%20tabs%20video.mp4">
  Your browser does not support the video tag.
</video>

## Sync status tabs

Tabs above the table on **Transactions** filter charges by sync status:

| Tab | What it shows | Typical next step |
| - | - | - |
| **All** | Every charge (no sync filter) | Reconcile or review as usual |
| **Needs Review** | Not ready to push yet | Add a GL code, attach or confirm a match, then re-check |
| **Ready to Sync** | Reconciled with a GL code and matched invoice | Click **Sync to Xero** or **Sync to QuickBooks** |
| **Sync Error** | A previous push failed | Fix the issue, then retry the sync button |
| **Synced** | Successfully pushed to your accounting tool | Audit or no action needed |

### Ready to Sync requirements

A charge moves to **Ready to Sync** when it has:

1. A **chart of accounts (GL code)** assigned
2. A **matched invoice** linked to the charge

If either is missing, the charge stays in **Needs Review** until both are in place. Reconciliation alone does not move a charge to Ready to Sync.

Charges can come from Plaid, Xero, QuickBooks, or a statement upload. What matters is that they are reconciled in ClearSpend and ready to push.

## Sync to Xero or QuickBooks

1. Connect [Xero](https://docs.clearspend.ai/connect/xero.md) or [QuickBooks](https://docs.clearspend.ai/connect/quickbooks.md) if you have not already. Disconnect the other first if it is already connected.
2. Open the **Ready to Sync** or **Sync Error** tab on **Transactions**.
3. Click **Sync to Xero** or **Sync to QuickBooks** in the toolbar.

ClearSpend sends eligible charges and their matched invoices to your accounting tool. That click is the **ClearSpend → Xero** or **ClearSpend → QuickBooks** push. Import happens on **Xero → ClearSpend** or **QuickBooks → ClearSpend**. Sync runs in the background. Refresh **Transactions** to see updated statuses.

If a push fails, open **Sync Error**, fix the issue (for example a missing bank account or account code), then try again.

## Related workflows in ClearSpend

| Task | Where |
| - | - |
| Attach or match an invoice | [Matching invoices](https://docs.clearspend.ai/features/transactions-matching.md) |
| Assign GL codes | Charge row or subscription detail |
| Export a CSV for manual import | [Filters & export](https://docs.clearspend.ai/features/transactions-filters-export.md) |
| Connect Xero | [Xero integration](https://docs.clearspend.ai/connect/xero.md) |
| Connect QuickBooks | [QuickBooks integration](https://docs.clearspend.ai/connect/quickbooks.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.