> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NetSuite SuiteTalk

> Read SuiteQL, REST records and saved searches and submit bounded NetSuite record writes.

Use a [protected REST mount](https://docs.bijection.com/integrations/native-rest.md#protected-saas-mounts)
for each read mode. Bind `providerEndpoint` to the account-specific
`https://<account>.suitetalk.api.netsuite.com` origin and the exact path
below. Use a sealed SuiteTalk bearer, OAuth2 or token-based OAuth1
credential with the necessary record and search permissions.

Initialize with `{ profile: { mode: "provider", provider, limit, ...terms } }`.
NetSuite collection pages accept 1–100 records and 36 KiB. Each validates
`offset`, `count` and `hasMore`, advances by the requested page size and
restarts at zero after the terminal page. Concurrent edits can shift
offsets. Missing records stay published in every mode.

| Mode | Path and terms | Fields and key |
| - | - | - |
| `netsuite.record-ids.observations` | `/services/rest/record/v1/<type>` | Only the internal `id`, which is the key. |
| `netsuite.record.by-id` | `/services/rest/record/v1/<type>/<id>`, with `limit: 1` and `fields` | Every present scalar in the declared field list. Include `id` as the key. The fixed GET has no cursor. |
| `netsuite.suiteql.observations` | `/services/rest/query/v1/suiteql`, with `collection` set to `Transaction`, `Customer`, `Vendor` or `Item` | Transaction lands `id`, `type`, `tranid`, `trandate`, `entity`, `status`. Customer and Vendor land `id`, `entityid`, `companyname`, `isinactive`. Item lands `id`, `itemid`, `displayname`, `itemtype`, `isinactive`. All four queries order and key by `id`. |
| `netsuite.saved-search.results` | `/services/rest/query/v1/savedsearch/<searchId>/result`, with `fields` and `selection` | The declared scalar columns only. Set `selection` to a field in the list that provides one stable, unique key per row. Configure the saved search to sort deterministically with a unique tie-breaker. |

REST record types are `invoice`, `vendorBill`, `customerPayment`, `customer`,
`vendor`, `inventoryItem`, `nonInventorySaleItem` and `serviceSaleItem`.
Use a saved search exposed by your account's REST release. Search definitions
and sublist data are outside these projections.

## Declared record types

Configure [schema discovery](https://docs.bijection.com/integrations/native-rest.md#discover-and-approve-a-provider-schema)
at a protected `data` label. Use account-scoped OAuth with access to the
REST metadata catalog and the selected table in SuiteAnalytics.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const selection = {
  provider: "netsuite",
  resource: "customrecord_shipments",
  origin: "https://account.suitetalk.api.netsuite.com",
  path: "/services/rest/query/v1/suiteql",
};
```

Use a record type whose REST name and selected scalar field names are also
available in SuiteQL. Review the metadata and confirm those names in the
account's Analytics Records Catalog. The app reads the selected record's
JSON Schema and projects up to 32 direct string, boolean, integer or decimal
fields. The feed reads ordered internal ID batches, resumes from the last ID
in a full batch, and starts a new sweep after a short batch. Omissions leave
prior rows in place. Data pages are limited to 36 KiB. Complete record
metadata responses are staged in sealed parts up to 2 MiB.
[NetSuite record metadata](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_1545129726.html) · [SuiteQL REST](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_157909186990.html)

## Write REST records

Use [providerWriter](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes) with
mode `netsuite.records.create-update`, the writer passed in `receivers.writers` under that mode, the
protected label, the SuiteTalk origin and `scope: ["invoice"]` or another
supported record type. Use a credential with that record's write permission.
Send one record JSON object up to 24 KiB. POST creates a record. PATCH uses
the command's internal ID. A create acknowledges HTTP 204 with a SuiteTalk
record ID in `Location`. An update acknowledges HTTP 204 for the command
record ID. The app retains the status and record ID. Commands use
exact keys and once-only dispatch with no read cursor.

[NetSuite REST record paths](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_1546938065.html) ·
[SuiteQL through REST](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_157909186990.html) ·
[Saved searches through REST](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/article_0804090827.html)

## Upsert by external ID

Use the same protected `netsuite.records.create-update` receiver and
installed record type in `receivers.writers`. Submit mode
`netsuite.records.upsert` with `{ action: "upsert", externalId, payload }`
and an exact command key. Use up to 128 URL-safe ASCII characters for the
external ID and omit internal and external IDs from the JSON object. The
writer uses NetSuite's `eid:` record route with the bound record type.
HTTP 204 acknowledges the external ID in `record`. The receiver uses
`once`. [NetSuite REST upsert](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/article_0807093604.html)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.