Xero
Synchronisation scope
Invoices and credit notes
Younium → Xero
When an invoice is posted in Younium, with invoice posting on
Accounts
Xero → Younium
On demand from the integration settings, or as a scheduled job
Accounts
Younium → Xero
On demand from the integration settings, or as a scheduled job
Products
Xero → Younium
On demand from the integration settings, or as a scheduled job
Chart of accounts
Xero → Younium
When the integration settings are saved
Not in scope: payments, journals, exchange rates.
Overview
The Xero integration connects Younium to Xero accounting for account and product synchronisation and outbound sales invoices. When posting is enabled, Younium creates a draft accounts receivable invoice or credit note in Xero when an invoice is posted in Younium, and stores the Xero document number on Invoice.ExternalERPId.
Authentication uses Xero OAuth 2.0 with a stored tenant id.
Authentication
You connect Younium to Xero by authorising it from Xero itself: sign in, choose the Xero organisation to connect, and approve the access Younium asks for. Younium remembers which organisation you chose and renews its own access from then on, so the connection stays live without reauthorising.
Activation and deactivation
Connect through the Xero OAuth flow; Younium stores the resulting tokens and tenant against the integration settings. Each authorisation attempt is single-use: Younium checks the callback against the connection attempt that started it, so completing the same authorisation link a second time, or returning to Xero on a stale or bookmarked link, fails and the connection must be started again from Younium. Deactivating removes those settings and stops invoice posting; documents already in Xero are untouched.
Saving the settings turns invoice posting on or off to match your choice. Deactivating removes the connection and stops invoice posting; documents already in Xero are untouched.
Custom fields
Account
Xero Tax Code
List
List key sent as Xero TaxType on lines when set
Eligibility and filtering
Lines sorted by product line number;
HideZeroAmountRecurringandHideZeroAmountUsageAndMeasurementLinesapplied.Credit path when
Invoice.TotalAmount.Amount < 0→ Xero credit notes API.Account must have
ExternalERPId(Xero contact GUID).
Field mapping — posted invoice (Younium → Xero)
Invoice / credit note header
Account.ExternalERPId
Contact.ContactID (GUID)
—
Type = ACCREC (invoice) or ACCRECCREDIT (credit)
Invoice.InvoiceDate
Date
Invoice.DueDate
DueDate
Invoice.YourReference
Reference (debit invoices only)
—
Status = DRAFT
Derived rate from subtotal base/amount or ExchangeRate
CurrencyRate
Currency.Code (mapped via GetCurrencyXero)
CurrencyCode
Invoice.Notes
Extra LineItem with description only
Account list custom Xero Tax Code value → list item Key → line TaxType when present.
Line item
ChargeDescription + service period + notes
Description
GetPricePerUnitAndQuantity().Quantity
Quantity
GetPricePerUnitAndQuantity().Price (negated on credits)
UnitAmount
OrderProductCharge.ExternalERPId or product ExternalERPId
ItemCode
Write-back (Younium)
InvoiceNumber / CreditNoteNumber
Invoice.ExternalERPId
Post invoice workflow
Runs when: an invoice is posted in Younium.
Throttled (ThrottledIntegration.Xero). Creates invoice or credit note batch via Xero Accounting API.
Import jobs
Import accounts and products from Xero; export Younium accounts to Xero.
Last updated
Was this helpful?