NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Intercompany Journal Entry → Insert record

AI-generated

Summary

Create a new intercompany journal entry record in NetSuite via the REST API.

Inputs

  • isDebugMode — Include full request and response data in the output.
  • tranDate — Date of the journal entry; defaults to today if left blank.
  • approved — Mark the entry as approved so it posts immediately; otherwise it awaits approval.
  • customForm — Specify a custom form by internal or external ID; optionally set a reference name.
  • accountingBook.id — Internal identifier of the accounting book to use.
  • accountingBook.externalId — External identifier of the accounting book.
  • accountingBookDetail.items — Array of accounting book detail items; each can reference an accounting book, set exchange rate, reference name, and subsidiary.
  • class.id — Internal ID of the class.
  • class.externalId — External ID of the class.
  • currency.id — Internal ID of the currency.
  • currency.externalId — External ID of the currency.
  • location.id — Internal ID of the location.
  • location.externalId — External ID of the location.
  • subsidiary.id — Internal ID of the subsidiary.
  • subsidiary.externalId — External ID of the subsidiary.
  • toSubsidiary.id — Internal ID of the subsidiary receiving the entry.
  • toSubsidiary.externalId — External ID of the subsidiary receiving the entry.
  • postingPeriod.id — Internal ID of the posting period.
  • postingPeriod.externalId — External ID of the posting period.
  • line.items — Array of line items; each may include account, class, department, subsidiary, debit, credit, memo, etc.

Output shape

A single object containing the newly created intercompany journal entry details, including its internal ID, external ID, and any fields returned by NetSuite.

When Debug Mode is enabled, the output also contains full request and response payloads. The entry may be posted immediately if approved; otherwise it awaits approval.

Examples

Example 1: Create a basic intercompany journal entry with two line items

Set tranDate, approved=false, line.items two times with appropriate account, debit, credit values.

Example 2: Post an approved journal entry and override currency exchange rate

Set approved=true, currency to USD, set exchangeRate to 1.1, include at least one line item.

Example 3: Add a custom form and reference name to the entry

Select customForm id 214, set customForm.refName to "ACME Form", include necessary accountingBook and subsidiary details.

Discussion