Skip to Content
AccountingKitDocs
Integrations

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.

Available

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

AreaSupport
AuthenticationNetSuite OAuth 2.0 Authorization Code Grant with mandatory S256 PKCE, rest_webservices scope
Account routingStrictly validated account-specific domains (<account-id>.app.netsuite.com, suitetalk.api)
ReadsSuiteQL paginated lists (Prefer: transient), live Record API v1 point reads, exact live search
WritesNormalized contacts, invoices, payments, purchase orders, and quotes (estimate)
Read-only resourcesOrganizations (subsidiary), accounts (account), and credit notes (creditMemo)
SynchronizationIncremental SuiteQL sync on lastmodifieddate including inactive records
WebhooksNot native in NetSuite REST; AccountingKit reconciles via scheduled and on-demand sync
ReportsProfit and Loss is not exposed as a native REST endpoint (provider_unsupported)

Supported resources and operations

ResourceNetSuite REST v1 recordListGetCreateUpdateNotes
Organizationssubsidiary✓✓——Root subsidiary on non-OneWorld; picker on OneWorld
Contactscustomer, vendor✓✓✓✓Namespaced Customer:<id> / Vendor:<id>
Accountsaccount✓✓——Includes inactive accounts (isinactive)
Invoicesinvoice✓✓✓✓Idempotent PUT eid:<externalId>; PATCH ?replace=item
PaymentscustomerPayment✓✓✓—Applies to target invoice via apply sublist
Purchase orderspurchaseOrder✓✓✓✓Supports item_id or expense_account_id
Credit notescreditMemo✓✓——Read-only in v1
Quotesestimate✓✓✓✓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 /void record action; voiding requires NetSuite UI, SuiteScript N/transaction.void(), or issuing a credit memo);
  • document PDF downloads, online payment URLs, deep links, and raw provider_data writes.

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_webservices scope)
  • PKCE (Proof Key for Code Exchange) — AccountingKit sends S256 code_challenge and code_verifier on every authorization as required by NetSuite 2026.2+.

Register AccountingKit's exact redirect URI:

https://api.accountingkit.dev/connect/netsuite/callback

Store 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 by GET ...?expandSubResources=true using the internal ID from the 204 No Content Location header.
  • 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_id on non-OneWorld accounts if your form does not expose a subsidiary field; pass provider_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_required so the customer can reauthorize without losing resource mappings.
  • Access tokens expire after 1 hour (3600 seconds) 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 surfaces 429 RATE_LIMITED with retry_after_seconds and backs off durable worker retries.
  • SuiteQL pagination. AccountingKit uses limit and offset divisible by limit with deterministic ORDER BY id ASC and Prefer: transient. Incremental sync filters on lastmodifieddate and includes inactive entities (isinactive IN ('T', 'F')).

On this page