NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Intercompany Journal Entry → Insert or update record

AI-generated

Summary

Create or replace an Intercompany Journal Entry by ID via NetSuite SuiteTalk REST, returning the updated record and optionally the full request/response data when Debug Mode is enabled.

Inputs

  • Debug Mode — Include full request and response in the output.
  • Id (required) — External identifier of the Intercompany Journal Entry to replace.
  • Additional Fields — Main transaction fields (e.g., accounting book, accounting book detail, approval status, class, currency, date, lines, memo, subsidiary, etc.).
  • Custom Fields — Custom field names and values for the record.

Output shape

A JSON object representing the created or updated Intercompany Journal Entry, including system fields such as internal ID, external ID, transaction date, and lines. When Debug Mode is on, the output contains the full HTTP request and response details.

The operation performs an HTTP PUT to /intercompanyJournalEntry/{id}. It uses the NetSuite REST API. Only the fields provided in Additional Fields and Custom Fields are sent; missing fields are left unchanged. If the supplied ID does not exist, the API will create a new record or return an error.

Examples

Example 1: Update an existing journal entry with a new posting date and memo

Set Id to existing entry ID, set Additional Fields -> Date to 2024-08-30, set Memo to 'Revised posting date', enable Debug Mode for troubleshooting.

Example 2: Create a new intercompany journal entry with custom lines

Set Id to new external ID, add line items in Additional Fields -> Line -> Items with account, debit, credit amounts, set Approve to true, and optionally add Custom Fields such as 'Reference Note'.

Example 3: Replace an entry but keep most fields unchanged

Provide Id, leave Additional Fields and Custom Fields empty; only Debug Mode enabled to verify the request payload.

Discussion