Contacts, customers and suppliers
Is a customer who is also a supplier one record or two? Xero says one. QuickBooks says two, with no link between them. NetSuite says two, related through a shared entity abstraction. This is the first modeling decision an integration has to make, and it is irreversible in practice.
Endpoints
Xero
GET /Contacts
One object, both roles
QBO
SELECT * FROM Customer / Vendor
Two entities, two queries
NetSuite
SuiteQL: FROM customer / vendor
Two record types over a shared entity table
The same concept in three vocabularies
Read across a row. An empty cell means the concept has nowhere to live in that system. Design around it; don't paper over it.
- Native
- — A field or object exists for it
- Partial
- — Exists with a caveat that changes what you can build
- Derived
- — Not stored — you compute it
- Absent
- — Nothing in the API
What differs, and what to do about it
Each difference comes with how to handle it.
The same real party is two records in QuickBooks
QBO · NetSuiteA client who is also a subcontractor is one Contact in Xero and two unlinked records in QBO, each with its own id and balance. DisplayName is unique across customers, vendors and employees, so the two cannot even share a name — the vendor is typically 'Acme Ltd (V)'. Nothing in the API says they are the same party, so any total-exposure figure has to reunite them.
Do — Model a Party with role flags and a list of source refs. Merge is an explicit action showing both balances; auto-merge on a matching tax identifier, never on a name.
Xero's role flags are read-only and historical
XeroIsCustomer and IsSupplier are not settable. They become true when the contact first appears on a sales or purchase document. A brand-new contact you intend to bill is neither, until it is.
Do — Treat roles as a hint for filtering, never as a constraint on what a user may do. A contact picker that hides suppliers from an invoice form will hide the new contact the user just created.
Sub-customers are jobs, projects and departments all at once
QBOQBO users routinely encode project structure in the customer hierarchy, because there is nowhere else to put it. The same tree is simultaneously a list of parties and a list of engagements, and BillWithParent decides which level carries the receivable.
Do — Import the hierarchy, and expose it as both a party tree and a dimension. Do not flatten it — the parent-level balance and the child-level balance are both real numbers people reconcile.
The type the components consume
The plural `sources` is the entire point of this type. Singular would force a merge decision at import time, before anyone can review it.
What this changes in the interface
Every difference above that reaches the screen, and what the component does about it.
- One party can hold two source records
- The party detail header shows both source links, and any balance shown states which source it came from. A single unlabelled balance on a merged party is a lie of omission.
- Roles are derived on Xero
- ContactPicker never filters by role in a write context. It sorts by relevance and labels the role it knows about.
- QBO customer hierarchies encode projects
- The party tree is also offered as a grouping dimension in reports, because that is what the data means to the user who entered it.
Where the accounting is explained
What consumes this payload
The components read the normalized object above. Here are the surfaces it feeds, the glossary entries for its concepts, and the document that explains the accounting.
- PayeeSelectRecipient picker with fuzzy search and last-paid.
- VendorMasterBank details versioned, never overwritten.
- CustomerCreditPanelLimit and exposure together, with hierarchy roll-up.
- VendorA party we buy from
- PayeeThe party receiving a payment
- PayerThe party paying us
- Procure to pay (AP)The payables stack from requisition to reconciliation: requisition → PO → receipt → bill → approval → payment → reconciliation.
Compared acrossXero docsQuickBooks Online docsNetSuite docs