NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Journal Entry → Insert or update record

AI-generated

Summary

Insert or update a Journal Entry record in NetSuite by specifying its external ID and related fields, optionally including custom fields and request preferences.

Inputs

  • Id (required) — External identifier for the Journal Entry record to insert or update.
  • Debug Mode — Include full request and response info in the output if enabled.
  • Additional Fields — Optional fields for the Journal Entry including accounting details, approval status, date, memo, lines, subsidiary information, reversal details, and more.
  • Custom Fields — List of custom fields with their names, types, and values to add or update on the Journal Entry.

Output shape

a JSON object representing the inserted or updated Journal Entry record, including optionally debugging information if requested.

The operation uses the specified external ID to identify the Journal Entry. Additional and custom fields can be provided to set or update record details. Preferences like asynchronous execution and validation strictness can also be specified via Additional Fields. The output format depends on the NetSuite REST API response and debug mode.

Examples

Example 1: Insert a new Journal Entry with specified lines and subsidiary.

Provide the external Id and set Additional Fields including lines and subsidiary. Optionally set 'approved' to post immediately.

Example 2: Update an existing Journal Entry by external Id to add memo and mark as reversal.

Specify the existing external Id, set 'memo' and 'isReversal' in Additional Fields, with optional custom fields.

Discussion