NetSuite REST operation
The NetSuite REST operation defines how to interact with your NetSuite account. It represents a specific action to perform against a specific NetSuite record type. You must create a separate operation component for each action and object combination that your integration requires.
The NetSuite REST operation supports the following actions:
- Inbound: Query. The operation requires query filter parameters at runtime to request data.
- Execute SuiteQL: Runs a SuiteQL SELECT statement against NetSuite and retrieves results as individual documents.
- Outbound: Create, Update, Upsert, and Delete. Send request JSON data into the connector that corresponds with the defined JSON profile.
Create
The outbound Create action inserts a new Standard or Custom object record into NetSuite.
The connector sends an HTTP POST request to: /services/rest/record/v1/{objectType}.
The request body contains the JSON payload with the fields of the record to create. The response returns the newly created record, including the system-generated internal ID.
Query
The inbound Query action retrieves Standard or Custom object records based on specific filter criteria. At least one query filter must be provided.
The connector sends an HTTP GET request to: /services/rest/record/v1/{objectType}.
Query parameters are appended to the URL based on the filters configured in the operation. A single Query request can return zero or more object record documents.
Update
The outbound Update action modifies an existing Standard or Custom object record in NetSuite.
The connector sends an HTTP PATCH request to: /services/rest/record/v1/{objectType}/{id}
The id field must be present in the input JSON payload. If the id field is missing, the operation fails with: Id is needed for UPDATE operation.
| Field | Required | Description |
|---|---|---|
| id | Yes | The internal ID of the record to update. Must be present in the input JSON payload. |
Upsert
The outbound Upsert action inserts or updates a Standard or Custom object record based on an external identifier. If a record matching the externalId exists, it is updated; otherwise, a new record is created.
The connector sends an HTTP PUT request to: /services/rest/record/v1/{objectType}/eid:{externalId}
The externalId field is extracted from the input payload and used in the URL. It is removed from the payload body before the request is sent to NetSuite.
| Field | Required | Description |
|---|---|---|
| externalId | Yes | The external ID used to identify or create the record. Must be present in the input JSON payload. |
If the externalId field is missing, the operation fails with: externalId is needed for UPSERT operation.
Delete
The outbound Delete action removes an existing Standard or Custom object record from NetSuite.
The connector sends an HTTP DELETE request to: /services/rest/record/v1/{objectType}/{id}
The record to be deleted is identified by its record ID, which is passed as the Object ID in the Delete operation - not in the input payload.
| Field | Required | Description |
|---|---|---|
| Object ID | Yes | The internal ID of the record to delete. Provided as the tracked object ID in the Delete operation. |
If the Object ID is blank, the operation fails with: ID field is missing.
Attach
The Attach action creates or attaches a relationship between two NetSuite records. Select the record type being attached as the object type, then specify the record it is attached from.
The connector sends a POST request to:
POST /services/rest/record/v1/{targetType}/{targetId}/!attach/{sourceType}/{sourceId}
For example:
POST https://{NS_Account_ID}.suitetalk.api.netsuite.com/services/rest/record/v1/customer/660/!attach/contact/106
Operation fields
| Field | Required | Description |
|---|---|---|
Attach to | Yes | Target record type. |
Target Object Internal ID | Yes | Internal ID of the target record. Supports a per-document Dynamic Operation Property override. |
Attachment Record Internal ID | Yes | Internal ID of the record being attached. Supports a per-document Dynamic Operation Property override. |
Supported object types
| Object being attached | Can be attached to |
|---|---|
| Contact | Cash Refund, Cash Sale, Check, Credit Memo, Customer, Customer Deposit, Customer Payment, Customer Refund, Entity Group, Estimate, Intercompany Transfer Order, Inventory Adjustment, Invoice, Item Fulfillment, Item Receipt, Job, Opportunity, Partner, Purchase Order, Purchase Requisition, Return Authorization, Sales Order, Transfer Order, Vendor, Vendor Bill, Vendor Credit, Vendor Payment, Vendor Return Authorization |
| Customer, Employee, Job, Partner, Vendor | Entity Group |
Request, response, and errors
Request profile: Exists only when the selected object is Contact, with role as a node.
Contact is the only attach type that accepts a request body (role, optional). Customer, Employee, Job, Partner, and Vendor attach to Entity Group with no request body.
Response profile: NetSuite's standard error wrapper only (o:errorDetails, status, title, type).
- Success: HTTP
204 No Content. NetSuite returns no body orLocationheader. The connector produces a success document with the title "Record Attached" and status204. - Missing IDs, or no Attach from selection for Contact: Failure result with status
400and the message "Missing input for Attach operation." - Invalid target: Failure result with status
400identifying the target.
Detach
The outbound Detach action removes a relationship between two NetSuite records. Select the record type being detached as the object type, then specify the record it is detached from.
The connector sends a bodyless POST request to:
POST /services/rest/record/v1/{targetType}/{targetId}/!detach/{sourceType}/{sourceId}
For example:
POST https://{NS_Account_ID}.suitetalk.api.netsuite.com/services/rest/record/v1/customer/660/!detach/contact/106
Detach uses internal IDs for both records. External IDs are not supported.
Operation fields
| Field | Required | Description |
|---|---|---|
Detach from | Yes | Target record type. Required for Contact. For Customer, Employee, Job, Partner, and Vendor, a blank value defaults to Entity Group. |
Target Object Internal ID | Yes | Internal ID of the target record. Supports a per-document Dynamic Operation Property (DOP) override. |
Detachment Record Internal ID | Yes | Internal ID of the record being detached. Supports a per-document DOP override. |
Supported object types
| Object being detached | Can be detached from |
|---|---|
| Contact | Cash Refund, Cash Sale, Check, Credit Memo, Customer, Customer Deposit, Customer Payment, Customer Refund, Entity Group, Estimate, Intercompany Transfer Order, Inventory Adjustment, Invoice, Item Fulfillment, Item Receipt, Job, Opportunity, Partner, Purchase Order, Purchase Requisition, Return Authorization, Sales Order, Transfer Order, Vendor, Vendor Bill, Vendor Credit, Vendor Payment, Vendor Return Authorization |
| Customer, Employee, Job, Partner, Vendor | Entity Group |
Response and errors
- Success: HTTP
204 No Content. NetSuite returns no body orLocationheader. The connector produces a success document with the title "Record detached" and status204. - Missing IDs, or no Detach from selection for Contact: Failure result with status
400and the message "Missing input for Detach operation." - Invalid target: Failure result with status
400identifying the target.
Execute SuiteQL
The inbound Execute SuiteQL action runs a user-supplied SuiteQL SELECT statement against the NetSuite SuiteQL REST API (/services/rest/query/v1/suiteql). SuiteQL is a SQL-like query language that allows direct querying of NetSuite records, including multi-table joins, aggregate functions, and WHERE clause filtering. Each row returned by NetSuite is output as a separate JSON document.
Although SuiteQL formally supports ANSI SQL-92 syntax, use Oracle SQL syntax when writing queries to avoid performance issues such as timeouts that cannot be resolved at runtime. For Oracle SQL reference, see the Oracle Database SQL Language Reference. SuiteQL also supports only a defined set of SQL functions; unsupported functions and custom aggregate functions are rejected by NetSuite at runtime.
Enter your SuiteQL SELECT statement in the SuiteQL Query field within the Browse dialog. Import the default Execute SuiteQL object. The connector generates the Request and Response profiles based on the query:
- The Response Profile is built from the fields in the
SELECTclause using the following rules:- A plain column name is used as-is:
id→id - A table-prefixed column is stripped to the bare name:
T.tranid→tranid - An
ASalias always takes precedence:COUNT(id) AS total→total - An unaliased function or expression receives a positional name assigned left to right:
expr1,expr2, and so on. Aliasing aggregate columns is strongly recommended to get meaningful field names. - All field values in the response are typed as string, regardless of the underlying NetSuite data type (number, boolean, or date).
- NetSuite omits fields with null values from the JSON response entirely. A field with no value will not appear in the output document.
SELECT *and table wildcards (for example,T.*) are not supported and are rejected at Browse time. Explicit column names are required.
- A plain column name is used as-is:
- The Request Profile is generated only when the query contains named placeholders.
- Browse and Import are optional. You can execute a query and receive raw JSON output without importing an object. Import is only required when you need a structured profile for the mapper.
To pass dynamic values at runtime, wrap the placeholder name in curly braces ({}) directly in the SQL. For example:
SELECT id, companyname
FROM customer
WHERE id = {customer_id}
At runtime, the connector replaces each {paramName} placeholder with the corresponding value from the input document. All string values are SQL-escaped before substitution. If a required placeholder is missing or null, the connector returns a clear error before the query is sent to NetSuite.
Placeholders inside an IN (...) clause accept an array of values, which are expanded into a comma-separated list at runtime:
SELECT id, companyname
FROM customer
WHERE id IN ({id_list})
Pass ["1001", "1002", "1003"] for id_list and the connector sends IN (1001, 1002, 1003) to NetSuite.
Multi-table JOIN queries are supported, including INNER JOIN, LEFT JOIN, and multi-level joins across three or more tables.
If two joined tables have a column with the same name and neither uses an AS alias, NetSuite silently returns only one of them, causing undetected data loss. Always alias conflicting columns:
-- Incorrect: NetSuite silently drops one of the two "id" columns
SELECT T.id, L.id
FROM transaction T
JOIN transactionline L ON T.id = L.transaction
-- Correct: alias conflicting columns
SELECT T.id AS transaction_id, L.id AS line_id, T.tranid
FROM transaction T
JOIN transactionline L ON T.id = L.transaction
Aggregate functions
The Execute SuiteQL operation supports aggregate functions (SUM, COUNT, AVG, MIN, MAX) and GROUP BY / HAVING clauses. Custom aggregate functions are not supported. Aliasing aggregate columns is strongly recommended; unaliased aggregate expressions produce positional names (expr1, expr2) in the response profile, which is NetSuite's own API convention.
SELECT custbody_region, COUNT(id) AS order_count, SUM(subtotal) AS total_value
FROM transaction
WHERE type = 'SalesOrd'
GROUP BY custbody_region
HAVING COUNT(id) > 10
Operation Fields
| Field | Required | Description |
|---|---|---|
| SuiteQL Query | Yes | The SuiteQL SELECT statement to execute. SELECT * and table wildcards are not supported. |
| Page Size | No | Number of records returned per page. Accepted values: 1–1000. Default: 1000. |
| Offset | No | Number of records to skip before returning results. Must be a multiple of Page Size. Default: 0. |
The total result set is limited to 100,000 records by NetSuite. If a query would return more than 100,000 records, NetSuite returns the error: Result limit exceeded. This operation supports a maximum of 100,000 records. For datasets exceeding this limit, use NetSuite SuiteAnalytics Connect.
Options tab
Click Import Operation, then use the Import wizard to select the object type with which you want to integrate.
| Field | Create | Query | Update | Upsert | Delete | Execute SuiteQL | Attach | Detach |
|---|---|---|---|---|---|---|---|---|
| Request Profile | Conditional | Conditional | ||||||
| Response Profile | ||||||||
| Return Application Error Responses | ||||||||
| Object | ||||||||
| Tracking Direction |
Parameter Name Rules
| Rule | Valid Example | Invalid Example | Behaviour if Invalid |
|---|---|---|---|
Must be a valid identifier: [a-zA-Z_][a-zA-Z0-9_]* | {txn_type} | {123}, {my type} | Validation error before API call |
| Case-sensitive | {Type} and {type} are different params | — | Two separate profile fields created |
| No spaces allowed | {start_date} | {start date} | Validation error |
Request Profile for Execute SuiteQL is generated conditionally - only when the SuiteQL Query contains {paramName} placeholders.
- Object: Displays the object type that you selected in the Import Operation wizard.
- Tracking Direction: Select the document tracking direction for the operation, either Input Documents or Output Documents. This setting determines which document appears in Process Reporting.
- Request Profile: A JSON profile component that represents the JSON structure sent by the connector.
- Response Profile: A JSON profile component that represents the JSON structure received by the connector.
- Return Application Error Responses: Controls whether an application error prevents an operation from completing. If cleared, the process stops and reports the error on the Process Reporting page. If selected, processing continues and passes the error response to the next component.
- Attach: Creates or attaches a relationship between two NetSuite records using their internal IDs.
- Detach: Removes a relationship between two NetSuite records using their internal IDs.
Browse
The Browse capability allows you to discover available NetSuite object types and their field definitions directly within Boomi. A configured connection is required to use Browse.
-
Object Types: When you open the Browse tab on an operation, the connector retrieves the list of all available NetSuite object types from the NetSuite metadata-catalog API:
/services/rest/record/v1/metadata-catalog -
Object Definitions: When you select an object type, the connector fetches the JSON Schema for that object from the metadata-catalog API. The schema is returned as input and output profiles in JSON format and is used to build the request and response profiles for the operation.