Oracle NetSuite
Oracle NetSuite integration via SuiteTalk REST Web Services v1 and SuiteQL: OAuth 2.0 with PKCE, account-specific domains, subsidiary discovery, idempotent writes, and incremental sync.
Subsidiaries, contacts, accounts, invoices, payments, purchase orders, credit memos, and
estimates for connected Oracle NetSuite accounts via SuiteTalk REST Web Services v1 and SuiteQL.
Register your NetSuite Integration Record in the console, then create a connect session with
netsuite.
Oracle NetSuite runs behind the same public API as Xero and QuickBooks Online. Subsidiaries,
customers, vendors, accounts, invoices, customer payments, purchase orders, credit memos, and
estimates normalize into the shared AccountingKit shapes while keeping NetSuite dimensions
(subsidiary_id, location_id, department_id, class_id, item_id, expense_account_id)
explicit and strictly typed.
Capability summary
| Area | Support |
|---|---|
| Authentication | NetSuite OAuth 2.0 Authorization Code Grant with mandatory S256 PKCE, rest_webservices scope |
| Account routing | Strictly validated account-specific domains (<account-id>.app.netsuite.com, suitetalk.api) |
| Reads | SuiteQL paginated lists (Prefer: transient), live Record API v1 point reads, exact live search |
| Writes | Normalized contacts, invoices, payments, purchase orders, and quotes (estimate) |
| Read-only resources | Organizations (subsidiary), accounts (account), and credit notes (creditMemo) |
| Synchronization | Incremental SuiteQL sync on lastmodifieddate including inactive records |
| Webhooks | Not native in NetSuite REST; AccountingKit reconciles via scheduled and on-demand sync |
| Reports | Profit and Loss is not exposed as a native REST endpoint (provider_unsupported) |
Supported resources and operations
| Resource | NetSuite REST v1 record | List | Get | Create | Update | Notes |
|---|---|---|---|---|---|---|
| Organizations | subsidiary | ✓ | ✓ | — | — | Root subsidiary on non-OneWorld; picker on OneWorld |
| Contacts | customer, vendor | ✓ | ✓ | ✓ | ✓ | Namespaced Customer:<id> / Vendor:<id> |
| Accounts | account | ✓ | ✓ | — | — | Includes inactive accounts (isinactive) |
| Invoices | invoice | ✓ | ✓ | ✓ | ✓ | Idempotent PUT eid:<externalId>; PATCH ?replace=item |
| Payments | customerPayment | ✓ | ✓ | ✓ | — | Applies to target invoice via apply sublist |
| Purchase orders | purchaseOrder | ✓ | ✓ | ✓ | ✓ | Supports item_id or expense_account_id |
| Credit notes | creditMemo | ✓ | ✓ | — | — | Read-only in v1 |
| Quotes | estimate | ✓ | ✓ | ✓ | ✓ | Maps to NetSuite Estimate |
Not supported in this release
These resources and operations report provider_unsupported in the connection capability manifest
and return 400:
- overpayments, prepayments, tax rates, and branding themes;
- native REST webhooks (NetSuite has no built-in REST webhook subscription engine);
- native Profit and Loss report (
GET /v1/connections/:connection_id/reports/profit-and-loss); - native invoice voiding via
POST .../cancel(SuiteTalk REST v1 has no/voidrecord action; voiding requires NetSuite UI, SuiteScriptN/transaction.void(), or issuing a credit memo); - document PDF downloads, online payment URLs, deep links, and raw
provider_datawrites.
Set up your NetSuite Integration Record
Enable SuiteTalk REST Web Services and OAuth 2.0
In NetSuite under Setup → Company → Enable Features → SuiteCloud, enable REST Web Services and OAuth 2.0.
Create the Integration Record
Open Setup → Integration → Manage Integrations → New and enable:
- Authorization Code Grant
- REST Web Services (
rest_webservicesscope) - PKCE (Proof Key for Code Exchange) — AccountingKit sends S256
code_challengeandcode_verifieron every authorization as required by NetSuite 2026.2+.
Register AccountingKit's exact redirect URI:
https://api.accountingkit.dev/connect/netsuite/callbackStore Account ID and OAuth credentials in AccountingKit
Copy your Account ID from Setup → Company → Company Information (for example
1234567_SB1 in Test or 1234567 in Live) together with the Integration Record's Consumer
Key (Client ID) and Consumer Secret (Client Secret) into Provider apps in the
console. Sandbox underscores (_SB1) are normalized to hyphens (-sb1) automatically and
validated strictly before constructing any NetSuite URL.
Connect a NetSuite account
Create a connect session with "provider": "netsuite". Pass account_id to target a customer's
NetSuite account when using a distributed Integration Record, or omit it to use the default account
ID configured on the provider app.
curl --request POST "https://api.accountingkit.dev/v1/connect-sessions" \
--header "Authorization: Bearer $ACCOUNTINGKIT_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"provider": "netsuite",
"external_account_id": "erp_customer_123",
"account_id": "1234567_SB1",
"redirect_uri": "https://app.example.com/integrations/netsuite/complete",
"retention_mode": "cached"
}'After authorization, AccountingKit queries active subsidiaries via SuiteQL. Single-subsidiary and non-OneWorld accounts connect automatically; multi-subsidiary OneWorld accounts present the hosted subsidiary picker so the user selects the target subsidiary.
Writing invoices, estimates, and purchase orders
curl --request POST "https://api.accountingkit.dev/v1/connections/$CONNECTION_ID/invoices" \
--header "Authorization: Bearer $ACCOUNTINGKIT_API_KEY" \
--header "Idempotency-Key: invoice-order-10042" \
--header "Content-Type: application/json" \
--data '{
"external_reference": "order_10042",
"contact_id": "Customer:42",
"due_date": "2026-12-31",
"line_items": [
{"description": "Implementation", "quantity": 1, "unit_amount": 1200}
],
"provider_options": {
"netsuite": {
"subsidiary_id": "1",
"item_id": "86",
"location_id": "2",
"department_id": "3",
"class_id": "4"
}
}
}'- Idempotency. Creates use SuiteTalk REST's native external-ID upsert
(
PUT /services/rest/record/v1/<record>/eid:<external_reference>), followed byGET ...?expandSubResources=trueusing the internal ID from the204 No ContentLocationheader. - Sublist updates. Updates use
PATCH /services/rest/record/v1/<record>/<id>?replace=item(or?replace=expense/?replace=addressbook) so omitted lines are removed rather than silently left behind. - OneWorld vs. single-subsidiary. Omit
subsidiary_idon non-OneWorld accounts if your form does not expose a subsidiary field; passprovider_options.netsuite.subsidiary_id(or connect a specific OneWorld subsidiary) on OneWorld accounts.
Operational facts and limits
- Refresh token lifetime. NetSuite Authorization Code Grant refresh tokens expire after 7
days by default (configurable up to 30 days depending on account settings). When a refresh token
expires or is revoked, AccountingKit marks the connection
action_requiredso the customer can reauthorize without losing resource mappings. - Access tokens expire after 1 hour (
3600seconds) and are refreshed automatically under a per-connection database lock. - Concurrency limits. NetSuite enforces an account-wide concurrent request pool rather than a
fixed per-minute quota. When NetSuite returns
429 CONCURRENCY_LIMIT_EXCEEDED, AccountingKit surfaces429 RATE_LIMITEDwithretry_after_secondsand backs off durable worker retries. - SuiteQL pagination. AccountingKit uses
limitandoffsetdivisible bylimitwith deterministicORDER BY id ASCandPrefer: transient. Incremental sync filters onlastmodifieddateand includes inactive entities (isinactive IN ('T', 'F')).
QuickBooks Online
QuickBooks Online integration with verified webhooks: Intuit OAuth and realm identity, intuit-signature checks on CloudEvents, invoices, payments, voids, and incremental sync.
FreshBooks
FreshBooks API integration with verified webhooks: OAuth 2.0 with single-use rotating refresh tokens, business/account discovery, canonical invoices, payments, contacts, taxes, and sync.