Contents12 sections ↓
What is the NetSuite REST API?
The NetSuite REST API — officially named SuiteTalk REST Web Services — is Oracle NetSuite's HTTP/JSON interface for reading and writing records programmatically. It uses standard REST conventions: GET to read, POST to create, PATCH to update, and DELETE to remove records. SuiteQL, NetSuite's SQL-92-based query language, is exposed through the same REST web services, which makes it the single integration surface for most use cases.
NetSuite has offered two web services APIs: SOAP web services and REST web services. Oracle has now put end dates on SOAP, so REST is the only one to build new integrations on.
The NetSuite REST API (SuiteTalk REST web services) is a JSON interface at https://{accountId}.suitetalk.api.netsuite.com/services/rest/ for creating, reading, updating and deleting records and running SuiteQL queries. It authenticates with OAuth 2.0, is documented in Oracle's Help Center and the REST API Browser, and shares one concurrency pool with SOAP and RESTlets.
Checked against Oracle's documentation on 21 October 2026, including the NetSuite 2027.1 authentication changes.
TL;DR: The NetSuite REST API provides CRUD operations on the record types Oracle lists as supported (custom records included; custom sublists and legacy tax features are not), SuiteQL for queries, and JSON payloads. Authenticate with OAuth 2.0 — from NetSuite 2027.1 you can't create new token-based authentication (TBA) integrations. Your account's metadata catalog at /services/rest/record/v1/metadata-catalog describes every exposed record and field, including your customizations. Concurrency is one pool per account, shared by SOAP, REST and RESTlets: 5, 15 or 20 requests on current service tiers (legacy Tier 2 accounts get 10), plus 10 for each SuiteCloud Plus license.
Where to find the NetSuite REST API documentation
Oracle keeps the REST documentation in two public places, no login needed:
| Resource | What it is | URL |
|---|---|---|
| SuiteTalk REST Web Services API Guide | The Help Center chapter: setup, authentication, records, sublists, SuiteQL, async requests, errors | docs.oracle.com, "Overview of SuiteTalk REST Web Services" |
| REST API Browser | A visual reference of every standard record, field and operation in the Record API, built from OpenAPI 3.0 metadata and published per release | system.netsuite.com, Record API v1, 2026.1 |
| Records Catalog | The in-product reference for every record and field in your account, including SuiteQL table names | Setup > Records Catalog inside NetSuite (Records Catalog Overview) |
| Metadata catalog | Your own account's OpenAPI 3.0 and JSON Schema description, customizations included | https://{accountId}.suitetalk.api.netsuite.com/services/rest/record/v1/metadata-catalog (Getting Metadata) |
The REST API Browser URL carries the release number. As of 21 October 2026 the Help Center links to the 2026.1 browser, and the 2026.2 path doesn't resolve yet, so follow the "Go to the REST API Browser" link on Oracle's REST API Browser page rather than guessing the version. For the authentication pages, start at Setting Up Authentication and the OAuth 2.0 chapter.
SOAP and TBA end-of-life dates
Oracle has published a timeline for retiring SOAP web services and token-based authentication (SOAP Removal Plans FAQ, Preparing for TBA End of Support, Authentication release notes):
| Release | What changes |
|---|---|
| 2025.2 | The last planned SOAP web services endpoint. |
| 2026.1 | All newly built integrations should use REST web services with OAuth 2.0. |
| 2027.1 | No new TBA integrations for SOAP, REST or RESTlets (IssueToken and the three-step flow included), so no new SOAP integrations. NLAuth stops working. PKCE becomes required for new OAuth 2.0 authorization code integrations. |
| 2027.2 | Only the last SOAP endpoint (2025.2) is supported and receives bug fixes. |
| 2028.2 | All SOAP endpoints are disabled. Support for existing TBA integrations tentatively ends (SuiteAnalytics Connect excluded). |
If you maintain a SOAP integration or an integration that signs requests with TBA, plan the move to REST web services and OAuth 2.0 now rather than in 2028. Oracle's list of what breaks when TBA support ends includes custom RESTlet callers and third-party connectors that still rely on TBA (Oracle names Boomi, Celigo, MuleSoft and Informatica as examples that may need a configuration or version update). The SuiteScript 2.1 requirement lands in the same 2028.2 release, so on our SuiteScript 2.1 migration projects we inventory the scripts and the integrations that call them together.
Authentication
OAuth 2.0 (recommended)
OAuth 2.0 is Oracle's preferred authentication method. It's for REST web services, RESTlets and SuiteAnalytics Connect, and it isn't supported for SOAP web services (OAuth 2.0).
- Enable the features. REST Web Services is in the SuiteTalk (Web Services) section and OAuth 2.0 in the Manage Authentication section, both on the SuiteCloud subtab at Setup > Company > Enable Features (REST prerequisites, Enable the OAuth 2.0 Feature).
- Create an integration record with OAuth 2.0 enabled and the grant type you need (Create Integration Records for Applications to Use OAuth 2.0). Note the client ID and client secret; the secret is shown once.
- Give the integration a role with the REST Web Services and Log in using Access Tokens permissions (Setup subtab) and SuiteAnalytics Workbook (Reports subtab), plus Log in using OAuth 2.0 Access Tokens (OAuth 2.0 Permissions). Oracle says using the Administrator role for web services integrations "isn't recommended for security reasons".
- Pick the flow (OAuth 2.0 for Integration Application Developers):
- Authorization code grant. A user signs in to NetSuite and approves access at
https://{accountId}.app.netsuite.com/app/login/oauth2/authorize.nl; the application exchanges the code for an access token and a refresh token. Sendcode_challenge(SHA-256,code_challenge_method=S256). Oracle: "As of 2027.1, the code_challenge parameter is required for OAuth 2.0 for new integrations, regardless of a client" (Step One). Use it when a person is behind the integration. - Client credentials (machine-to-machine). No user interaction; the integration signs a JWT with a certificate you upload to NetSuite. Use it for server-to-server integrations. Outline below.
- Authorization code grant. A user signs in to NetSuite and approves access at
- Send the access token in the
Authorization: Bearerheader. Access tokens are valid for 60 minutes (expires_inis always 3600).
OAuth 2.0 client credentials: the machine-to-machine outline
This is the flow for scheduled jobs, middleware and anything with no user at the keyboard. From Oracle's Client Credentials Setup, Request Token Structure and token endpoint pages:
- Integration record. Check Client Credentials (Machine to Machine) Grant on the integration record.
- Certificate mapping. Generate a key pair, then at Setup > Integration > Manage Authentication > OAuth 2.0 Client Credentials (M2M) Setup click Create New, choose the entity (user), role and application, and upload the public certificate. NetSuite returns a Certificate ID. Up to five active certificates per integration, entity and role combination; a sandbox refresh clears the setup.
- Build the client assertion. A JWT with header
typ: JWT,algof PS256, PS384, PS512, ES256, ES384 or ES512, andkid= the Certificate ID. Payload:iss= client ID,scope=rest_webservices(orrestlets,suite_analytics, comma-separated),aud=https://{accountId}.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token,iat, andexpless than 60 minutes afteriat. Sign it with the private key. - Request the token. POST to that same endpoint, form-encoded:
Example: client credentials token request
POST /services/rest/auth/oauth2/v1/token HTTP/1.1
Host: {accountId}.suitetalk.api.netsuite.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
&client_assertion={signed JWT}- Use and renew. The response carries
access_token,expires_in: 3600andtoken_type: bearer. No refresh token is issued: when the token expires the endpoint returnsinvalid_grant, and the application starts the flow again with a new assertion.
Token-Based Authentication (TBA): existing integrations only
TBA signs each request with OAuth 1.0 using a consumer key and secret (from the integration record) plus a token ID and secret (from an access token tied to a user and role). Existing TBA integrations keep working for now, but from NetSuite 2027.1 you can't create new TBA integrations, and support for existing ones tentatively ends in 2028.2 (Preparing for TBA End of Support). Don't start new work on TBA. To find what you still have on it, check the integration records at Setup > Integration > Manage Integrations and the Login Audit Trail at Setup > Users/Roles > User Management > View Login Audit Trail.
NLAuth
Request-level credentials (NLAuth) are already unsupported for REST web services, and Oracle states that "as of 2027.1, all integrations that use NLAuth as an authentication method will stop working" (Authentication release notes). If a RESTlet caller still sends an NLAuth header, move it to OAuth 2.0 too.
Need a custom NetSuite integration built?
REST web services, RESTlets, SuiteQL and OAuth 2.0 setup, or moving an existing SOAP or TBA integration before the cutoff. NetSuite-only since 2017.
Scope my integrationMaking API requests
Base URL
Example: base URL pattern for all REST API requests
https://{accountId}.suitetalk.api.netsuite.com/services/rest/Replace {accountId} with your NetSuite account ID (e.g., 1234567 or 1234567_SB1 for sandbox).
Record operations (CRUD)
Create a record (POST):
Example: create a new customer record
POST /services/rest/record/v1/customer
Content-Type: application/json
{
"companyName": "Acme Corp",
"email": "info@acme.com",
"subsidiary": {"id": "1"}
}Read a record (GET):
Example: get a single customer by internal ID
GET /services/rest/record/v1/customer/123Returns JSON with the fields the role can access.
Update a record (PATCH):
Example: update specific fields on an existing customer
PATCH /services/rest/record/v1/customer/123
Content-Type: application/json
{
"phone": "555-0123",
"email": "new@acme.com"
}PATCH changes only the fields you send; any omitted field is left unchanged.
Upsert a record by external ID (PUT):
PUT is used for one thing in REST web services: the upsert operation, when the request URL carries an external ID. If a record with that external ID exists it's updated, otherwise it's created.
Example: upsert a customer by external ID
PUT /services/rest/record/v1/customer/eid:CID002
Content-Type: application/json
{
"firstName": "John",
"lastName": "Smith"
}Delete a record (DELETE):
Example: permanently delete a customer record
DELETE /services/rest/record/v1/customer/123Sublists (line items)
Records with sublists (e.g., sales order lines, vendor bill lines) include nested arrays. Custom sublists aren't available through REST web services.
Example: POST body for a sales order with two line items
{
"entity": {"id": "123"},
"item": {
"items": [
{
"item": {"id": "456"},
"quantity": 10,
"rate": 25.00
},
{
"item": {"id": "789"},
"quantity": 5,
"rate": 50.00
}
]
}
}Filtering and querying records
List records with filters:
Example: get all customers whose company name contains "Acme"
GET /services/rest/record/v1/customer?q=companyName CONTAIN "Acme"Collection queries return record IDs and links, not field values. To get the fields, read each record or use SuiteQL.
Pagination:
Example: retrieve the first 100 customer records
GET /services/rest/record/v1/customer?limit=100&offset=0Use limit and offset to page through large result sets. The default is 1,000 results per page, and the offset must be divisible by the limit (Collection Paging).
Catch misspelled field names
By default, a field name REST web services doesn't recognize only produces a warning. Send the X-NetSuite-PropertyNameValidation: error header so a typo fails the request instead of being silently ignored (Error Handling in REST Web Services).
SuiteQL
SuiteQL is NetSuite's query language, based on SQL-92, and it's available through REST web services, the SuiteScript N/query module and SuiteAnalytics Connect. It enforces the same role-based access restrictions as SuiteAnalytics Workbook (SuiteQL). For the language itself, see our SuiteQL guide.
Endpoint:
Example: run a SuiteQL query to retrieve customers created in 2026
POST /services/rest/query/v1/suiteql?limit=1000&offset=0
Content-Type: application/json
Prefer: transient
{
"q": "SELECT id, companyname, email FROM customer WHERE datecreated >= TO_DATE('2026-01-01', 'YYYY-MM-DD')"
}The Prefer: transient header is required. Results come back 1,000 rows per page by default, up to 100,000 results per query; for larger extracts, Oracle points to SuiteAnalytics Connect with the NetSuite2.com data source (Executing SuiteQL Queries Through REST Web Services). Bound parameters are supported: pass ? placeholders in q and the values in a params array.
SuiteQL capabilities
- Joins across related tables
- Aggregate functions (SUM, COUNT, AVG, MAX, MIN)
- GROUP BY and HAVING
- Subqueries and UNION
- Built-in functions (TO_DATE, NVL, CASE)
Rules that catch people, from Oracle's SuiteQL Performance and Best Practices: WITH clauses aren't supported, dates must be wrapped in TO_DATE() rather than compared as plain strings, string concatenation uses || not +, an IN clause takes at most 1,000 arguments, and you can't mix ANSI and non-ANSI join syntax in one query.
Example queries
Top 10 customers by revenue:
Example: SuiteQL query — top 10 customers by invoiced revenue in 2026
SELECT TOP 10
c.companyname,
SUM(tl.netamount) AS total_revenue
FROM transaction t
JOIN transactionline tl ON t.id = tl.transaction
JOIN customer c ON t.entity = c.id
WHERE t.type = 'CustInvc'
AND t.trandate >= TO_DATE('2026-01-01', 'YYYY-MM-DD')
GROUP BY c.companyname
ORDER BY total_revenue DESCOpen purchase orders by vendor:
Example: SuiteQL query — count and total open purchase orders grouped by vendor
SELECT
v.companyname AS vendor,
COUNT(t.id) AS open_pos,
SUM(t.foreigntotal) AS total_amount
FROM transaction t
JOIN vendor v ON t.entity = v.id
WHERE t.type = 'PurchOrd'
AND t.status = 'PurchOrd:B'
GROUP BY v.companyname
ORDER BY total_amount DESCSuiteQL vs. saved searches
SuiteQL is the better fit when you need:
- Joins the saved search interface doesn't offer
- Subqueries or UNION
- Several levels of aggregation
- Programmatic access for an integration or a large export
Saved searches are better for:
- Scheduled emails and alerts when records change
- Dashboard portlets
- Reports that business users build and adjust themselves
The metadata catalog and the REST API Browser
Your account's metadata catalog is the reference to read before you write integration code:
Example: metadata catalog URL for your NetSuite account
https://{accountId}.suitetalk.api.netsuite.com/services/rest/record/v1/metadata-catalogEach record's metadata is served as OpenAPI 3.0 (application/swagger+json) or JSON Schema (application/schema+json), and you can narrow the catalog with ?select=customer,salesOrder. Oracle describes it as "a fully personalized view on the resources (per user)": custom records and custom fields appear in it as they're added (Working with Resource Metadata). For each record type it shows the fields with their data types, the sublists, and the operations available.
The REST API Browser is a separate, Oracle-hosted reference for the standard record schema, built from the same OpenAPI 3.0 metadata and published per release. It's useful for exploring, but it doesn't reflect any one account's customizations; the metadata catalog does.
RESTlets vs. REST API
NetSuite has two REST-related features that are often confused:
REST API (SuiteTalk REST web services): The standard API for CRUD operations on records. No custom code required. Works with the record types Oracle lists as supported, including custom records.
RESTlets: Custom SuiteScript endpoints that you write and deploy. RESTlets handle HTTP requests and can run any business logic, not just CRUD operations.
When to use REST API: Standard operations — create records, read records, update records, query data with SuiteQL.
When to use RESTlets: Custom business logic — calculate pricing, validate data against custom rules, aggregate data across several record types in a single call, or any operation that doesn't map to a simple CRUD action.
NetSuite REST API
Building an integration? Get it right the first time.
Shopify, banks, WMS, CRMs and AI agents connected to NetSuite through REST, RESTlets and SuiteQL, with the retries and logging that keep them running.
Talk to the teamRate limits and performance
Concurrency limits
- One pool per account: the concurrency limit applies to the combined total of SOAP web services, REST web services and RESTlet requests (Web Services and RESTlet Concurrency Governance).
- Size: 5 for Standard, 15 for Premium, 20 for Enterprise and Ultimate service tiers (accounts on the older numbered tiers get 5 for Shared and Tier 3, 10 for Tier 2, 15 for Tier 1 and 1+, 20 for Tier 0), increased by 10 for each SuiteCloud Plus license. Development and partner accounts stay at 5 regardless of licenses (limits by service tier).
- SuiteQL requests count against the same pool.
What happens over the limit
- REST web services return HTTP 429 with
CONCURRENCY_LIMIT_EXCEEDED("Concurrent request limit exceeded. Request blocked.") (error handling). - RESTlets return HTTP 400 with
SSS_REQUEST_LIMIT_EXCEEDED(concurrency violation errors). - Requests that run longer than 15 minutes time out (Concurrency Governance and Session Management).
Oracle doesn't document a Retry-After header. Retry after a delay, and increase the delay on each attempt.
Performance tips
Use SuiteQL for bulk reads. One SuiteQL query that returns 1,000 rows is one request; reading the same records one by one is a thousand requests against a shared concurrency pool.
Use PATCH for updates. PATCH changes only the fields you send. PUT is reserved for upserts by external ID.
Batch and async operations. Batch requests take up to 100 records of one type per request, run asynchronously (sequentially by default, or in parallel with prefer: batch-processing="parallel"), and return HTTP 202 with a Location header for the job (Batch Operations). Any single request can also be sent with Prefer: respond-async to get a 202 and a job URL instead of waiting (REST Web Services Request Processing).
Minimize round trips. Use expandSubResources=true to include sublists and subrecords in a single GET request instead of fetching the record and then each sublist separately (Format of Sublists and Subrecords). Going the other way, ?fields=companyName,email returns only the body fields you name.
Cache the metadata catalog. Don't query the metadata catalog on every request — cache it and refresh periodically.
Common error codes and fixes
Understanding the HTTP status codes returned by the REST API speeds up debugging significantly.
| HTTP status | Meaning | Common cause | Fix |
|---|---|---|---|
| 400 Bad Request | Invalid payload or field value | Wrong field name, missing required field, wrong data type | Check the metadata catalog for required fields and field IDs |
| 401 Unauthorized | Authentication failure | Expired access token, wrong client ID, or wrong account | Refresh the token; verify the account ID in the base URL matches the integration |
| 403 Forbidden | Permission denied | Role missing permission for the record type or operation | Add the required permission at Setup > Users/Roles > User Management > Manage Roles |
| 404 Not Found | Record does not exist | Wrong internal ID or wrong account (sandbox vs. production) | Confirm the record ID and that you're hitting the right account URL |
| 429 Too Many Requests | Concurrency limit exceeded | More concurrent requests than the account's pool allows | Back off and retry with increasing delays |
| 5xx Server Error | Server-side error | Locked record, scripting conflict, platform issue | Check the error message body; 4xx codes point to the request, 5xx to the server |
Handling 429 errors in code
Example: retry with exponential backoff on 429 responses (Python)
import time
import requests
def request_with_retry(url, headers, max_retries=5):
delay = 2
for attempt in range(max_retries):
response = requests.get(url, headers=headers)
if response.status_code == 429:
time.sleep(delay)
delay *= 2
continue
response.raise_for_status()
return response
raise Exception("Max retries exceeded")REST API vs. SOAP API
| Feature | REST API | SOAP API |
|---|---|---|
| Protocol | HTTP + JSON | SOAP + XML |
| Authentication | OAuth 2.0 (TBA for existing integrations only) | TBA only; OAuth 2.0 isn't supported |
| Query language | SuiteQL | Saved search criteria |
| Payload size | Smaller (JSON) | Larger (XML) |
| Schema reference | Metadata catalog (OpenAPI 3.0) | WSDL |
| Custom records | Supported | Supported |
| Bulk operations | SuiteQL, batch | Search, getList |
| Status | Current | Last endpoint 2025.2; no new integrations from 2027.1; disabled in 2028.2 |
Recommendation: Build every new integration on REST web services with OAuth 2.0. If you maintain a SOAP or TBA integration, plan its migration before 2027.1, when new SOAP and TBA integrations can no longer be created. Oracle's SOAP to REST upgrade guide maps each SOAP operation to its REST equivalent. For RESTlets and the wider API landscape, see our NetSuite API guide.
Sources and references
All Oracle NetSuite Help Center pages, checked 21 October 2026:
- Overview of SuiteTalk REST Web Services and Prerequisites and Setup for REST Web Services
- The REST API Browser and the REST API Browser, Record API v1, 2026.1
- Working with Resource Metadata and Getting Metadata
- Using the Upsert Operation, Collection Paging, Limitations of REST Web Services
- Executing SuiteQL Queries Through REST Web Services, SuiteQL, SuiteQL Performance and Best Practices
- REST Web Services Request Processing and Batch Operations
- Error Handling in REST Web Services
- Web Services and RESTlet Concurrency Governance, limits by service tier, Concurrency Governance and Session Management
- OAuth 2.0, Authorization Code Grant Flow, Step One, Client Credentials Setup, Request Token Structure, Token Endpoint and Access Token Response
- SOAP Removal Plans FAQ, Preparing for TBA End of Support, Authentication (2026.2 release notes)
What clients ask before signing
Mercedes · BrokenRubik
Replies by email within 24 hours
Mercedes
Stuck on a script, a query or an API call? Paste the error and a developer will reply with what we'd check first.

Joaquin Vigna
Co-Founder & CTO
Co-founder and Chief Technology Officer at BrokenRubik with 12+ years of experience in software architecture and NetSuite development. Leads technical strategy, innovation initiatives, and ensures delivery excellence across all projects.
