Skip to main content

All guides

NetSuite and Xero connectors: register tokens via API

Stylised view: tokens into encrypted storage, then an event to the processing queue.

These routes store OAuth tokens encrypted server-side and trigger a sync for the organisation. The NetSuite and Xero connectors are pending validation and have not yet been validated end to end: to feed the intercompany scope today, use the CSV import described in the “General ledger: CSV…” guide.

Prerequisites

Admin accounts on Ninon only. Never log refreshToken or accessToken in plain text in shared scripts or application logs.

NetSuite — token registration endpoint

JSON body: refreshToken (string, required, minimum length 8); accessToken (optional); accountId (optional, NetSuite account / tenant id); expiresAt (optional, ISO-8601 expiry for the access token). Typical response: integration object with id, provider netsuite, externalTenantId (often from accountId), expiresAt.

Xero — token registration endpoint

JSON body: refreshToken (required); accessToken (optional); tenantId (optional, instead of accountId); expiresAt (optional, ISO-8601). Typical response: integration object with provider xero and the same surfaced fields.

After the call

A background sync is triggered for your organisation. Connectors such as Business Central, Xero and NetSuite are designed to load GL lines once credentials and entity mappings are configured; they are still pending validation. Until then, and for ERPs without a connector, use the documented ledger import.