Skip to main content

Xero

Partsemble integrates with Xero to export builds and receipts, sync suppliers, and pull sales data for margin tracking. The connection uses OAuth 2.0 — your Xero credentials are never stored in Partsemble.

How Xero Integration Works​

Xero works differently from QuickBooks Online in one important way: Partsemble manages your inventory directly rather than syncing quantities with Xero. This is because Xero doesn't have an API for inventory quantity adjustments. When you export builds and receipts, Partsemble creates journal entries in Xero that record the financial impact — your general ledger stays accurate, and Partsemble handles the inventory side.

This means a Xero business's Export mode is always Journal entries: on the Export Account Configuration card it is the only value offered, with the line "Xero cannot post inventory adjustments, so exports to Xero are journal entries." You create and manage products in Partsemble (manually, via CSV/XLSX import, or from synced Xero items), and build/receipt exports post journal entries to your Xero account. See Export Mode.

Connecting to Xero​

Navigate to Settings → Integrations and click Connect to Xero. A popup opens where you sign in to your Xero account and authorize Partsemble.

During authorization, you'll select which Xero organization to connect. Partsemble stores the connection and displays your organization name. The connection is ready immediately.

Settings Connections tab showing a connected Xero organization

What Partsemble Accesses​

With your authorization, Partsemble can:

Read items — your Xero tracked inventory and non-inventory items. This powers the item sync and product import features: open Inventory → External Items and click Sync. Each sync fetches your full Xero item list. See Syncing Items. Xero items use "Code" as their identifier (equivalent to SKU).

Read accounts — your chart of accounts, used to configure the GL export accounts for builds and receipts.

Create manual journals — when you export builds or receipts, Partsemble creates manual journal entries in Xero that debit and credit the appropriate accounts.

Read sales invoices — when sales tracking is enabled and a sales channel is connected, each sales sync pulls new sales invoices to calculate margins and track finished good consumption. A later sync carries over a void, not an edit or a deletion. Credit notes are not read. See Syncing Sales.

Read and create contacts — used to sync suppliers for receiving.

Inventory Management​

Since Xero doesn't support inventory adjustments via API, Partsemble is your inventory management system. Here's how the pieces fit together:

Products — create products manually in Partsemble, import from a CSV/XLSX file, or sync your Xero items on Inventory → External Items and import them as Partsemble products.

Stock levels — managed entirely in Partsemble through builds (increase finished goods, decrease components) and receipts (increase incoming materials via lot tracking).

Exports — builds and receipts are exported as manual journal entries. For example, a build export debits your build debit account and credits your build credit account. The financial impact is recorded; Xero item quantities are not modified.

Sales — sales invoices from Xero are synced into Partsemble for margin tracking. Partsemble consumes finished good lots via FIFO and calculates the true cost of goods sold. Voiding an invoice in Xero reverses its sale on the next sync; credit notes are not synced.

Export Accounts​

Since all exports go as journal entries, you choose the accounts in the Journal Entry Accounts block of the Export Account Configuration card, on Settings → Integrations → Accounting. Xero accounts are identified by their account code, shown in brackets.

Build Export — Debit Account (typically COGS) and Build Export — Credit Account (typically Inventory Asset) — the two sides of a build's journal entry.

Receiving Export — Debit Account (typically Inventory Asset) and Receiving Export — Credit Account (typically AP / Receiving) — the two sides of a receipt's journal entry.

Waste account — used when QA rejections result in material loss.

See Export Settings for detailed guidance.

Token Management​

Partsemble handles token refresh automatically. Xero access tokens expire after 30 minutes, and refresh tokens are single-use — each refresh returns a new refresh token. Partsemble manages this transparently. If Xero refuses the refresh (for example, because you revoked access from Xero), Partsemble prompts you to reconnect. A network problem or a Xero outage during a refresh doesn't: try the action again once Xero is reachable.

All tokens are encrypted at rest. Partsemble never stores your Xero username or password.

Disconnecting​

To disconnect, go to Settings → Integrations and click Disconnect. Your Partsemble data is preserved. You can also revoke access from within Xero under Settings → Connected Apps.