Skip to content

NetSuite

Connect fyrn to Oracle NetSuite to automate ERP workflows — manage customers, create sales orders, generate invoices, and run SuiteQL queries through the SuiteTalk REST API.

PropertyValue
Typehttp
Authenticationoauth2
CategoryFinance & Accounting
FieldTypeRequiredDescription
account_idstringYesNetSuite account ID (e.g. 1234567 or 1234567_SB1 for sandbox)
consumer_keystringYesOAuth 1.0a consumer key (integration record)
consumer_secretstringYesOAuth 1.0a consumer secret
token_idstringYesToken-based auth token ID
token_secretstringYesToken-based auth token secret

Retrieve a single NetSuite record by type and internal ID.

EndpointGET /{recordType}/{recordId}
MethodGET

Create a new NetSuite record of the specified type.

EndpointPOST /{recordType}
MethodPOST

Update an existing NetSuite record (partial update via PATCH).

EndpointPATCH /{recordType}/{recordId}
MethodPATCH

Delete a NetSuite record by type and internal ID.

EndpointDELETE /{recordType}/{recordId}
MethodDELETE

List NetSuite records of a given type with optional filtering.

EndpointGET /{recordType}
MethodGET

Create a new sales order in NetSuite with line items.

EndpointPOST /salesOrder
MethodPOST

Create a new customer record in NetSuite.

EndpointPOST /customer
MethodPOST

Create a new invoice in NetSuite with line items.

EndpointPOST /invoice
MethodPOST

Execute a SuiteQL query against NetSuite.

EndpointPOST /services/rest/query/v1/suiteql
MethodPOST
name: shopify-to-netsuite
description: Sync new Shopify orders into NetSuite as customers and sales orders
trigger:
type: webhook
event: shopify.order.created
steps:
- id: create-customer
connector: netsuite
action: create-customer
params:
companyName: "{{ trigger.body.customer.first_name }} {{ trigger.body.customer.last_name }}"
email: "{{ trigger.body.customer.email }}"
phone: "{{ trigger.body.customer.phone }}"
addressBook:
- addr1: "{{ trigger.body.shipping_address.address1 }}"
city: "{{ trigger.body.shipping_address.city }}"
state: "{{ trigger.body.shipping_address.province_code }}"
zip: "{{ trigger.body.shipping_address.zip }}"
country: "{{ trigger.body.shipping_address.country_code }}"
- id: create-sales-order
connector: netsuite
action: create-sales-order
params:
entity: "{{ steps.create-customer.result.id }}"
tranDate: "{{ trigger.body.created_at | date: '%Y-%m-%d' }}"
item:
items: "{{ trigger.body.line_items | map: 'sku', 'quantity', 'price' }}"
- id: log-order
connector: netsuite
action: run-suiteql
params:
q: "SELECT tranId, total FROM transaction WHERE id = {{ steps.create-sales-order.result.id }}"