Writes, concurrency and rate limits
What happens when you write, and how fast can you go? QuickBooks replaces the whole entity unless you ask it not to. Xero caps you by the day. NetSuite governs by concurrency and may reject a write for reasons that are not in your payload at all. Volatile: verify the numbers.
Endpoints
Xero
POST /Invoices with Idempotency-Key
Arrays of up to 50 objects per request
QBO
POST /invoice?requestid=…, POST /batch
Up to 30 operations per batch; requestid for idempotency
NetSuite
PATCH /record/v1/{type}/{id}
Scripts and workflows fire on write
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.
A QuickBooks update deletes the lines you omit
QBOPOST an Invoice with only the fields you meant to change and every line on it disappears. The call succeeds. The invoice is now empty and the customer's balance has moved.
Do — Read the current record, mutate it, write the whole thing back with the current SyncToken — or use sparse updates and accept their narrower semantics. A SyncToken mismatch is a real user-visible outcome, not a retryable error: someone else changed the record.
NetSuite writes can fail for reasons you cannot see
NetSuiteA user event script, a workflow condition, a mandatory custom field or a subsidiary restriction can reject a payload that is structurally perfect. The error text often names an internal field id and nothing else.
Do — Surface the raw NetSuite error to the operator, not a rewritten message. Keep the payload alongside it so support can reproduce. Never retry a rejection automatically.
The rate limits differ in shape, not just in size
Xero · QBO · NetSuiteXero's daily cap (5,000 per organization, 1,000 on Starter) makes backfill a multi-day job. NetSuite's concurrency governance means parallelism is capped hard and two workers each politely using three connections will trip a five-connection limit. QBO's 500-a-minute rate is the most forgiving of the three per minute — but its reads are now counted per month against a partner-tier allowance.
Do — One token-bucket limiter per source and tenant, shared across every worker, with retries flowing through it. Retry 429 and 5xx with exponential backoff and jitter; never retry a 400.
Idempotency is opt-in on two and absent on NetSuite
QBO · NetSuiteA timeout on a write leaves you unsure whether the document exists. Xero honors an Idempotency-Key header, and QBO a requestid query parameter — unique per company, up to 50 characters (36 in a batch) — that returns the original response instead of writing twice. Both only work if you send them. NetSuite's REST record service has neither, so a blind retry may create a duplicate invoice with a new number, which someone will eventually pay.
Do — Send the Xero key and the QBO requestid on every write, generated once per user action and reused on retry. For NetSuite, write a client-generated reference into a field it stores (tranid, externalid, a custom field) before the call, and search on it after any ambiguous failure instead of retrying blind.
The same fact, different payloads
Stacked, not tabbed, so you can compare two shapes without holding one in your head.
QBO — the read-mutate-write cycle, in full
Xero — idempotent write, per-object errors
What this changes in the interface
Every difference above that reaches the screen, and what the component does about it.
- A write can conflict
- Optimistic UI must be able to unwind. A SyncToken conflict is presented as 'someone else changed this', with a diff, not as a generic failure.
- Some writes are not idempotent
- Submit controls are single-shot with a client reference, and an ambiguous failure offers 'check whether it was created', not 'try again'.
- Throttling is normal, not exceptional
- A queued write says it is queued, with a position. Rate limiting is a visible state in the interface, not an error.
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.
- HoldToConfirmIrreversible actions, with accessible fallbacks.
- ToastSonner, configured to our tokens.
- ErrorStateWith the financial reassurance sentence.
- PostingCommitting an entry to the ledger, making it immutable
- ReversalAn offsetting entry that undoes a posted entry
- Ledger APIs: Xero, QuickBooks Online, NetSuiteXero, QuickBooks Online and NetSuite each have their own idea of what an invoice is. This page compares them object by object, so a component built against one still works on the other two.
Compared acrossXero docsQuickBooks Online docsNetSuite docsVerify quantitative claims