NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Accounting Period → Insert or update record

AI-generated

Summary

Update an existing Accounting Period record by its external identifier or insert a new one if it does not exist, including setting standard, additional, and custom fields.

Inputs

  • Id (required) — External identifier of the Accounting Period to update.
  • Additional Fields — Optional fields to set or update on the Accounting Period, such as dates, locked status, parent, fiscal calendars, period properties like quarter or adjustment flags, and validation preferences.
  • Custom Fields — List of custom fields and their values to set or update on the Accounting Period record.
  • Debug Mode — Include full request and response details in the output for debugging purposes.

Output shape

a single record representing the inserted or updated Accounting Period, including any requested debug information

The operation uses the HTTP PUT method to update or insert by 'Id'. If 'Debug Mode' is enabled, the full request and response info are included in the output. Additional fields and custom fields are optional and can be used to set various properties on the record.

Examples

Example 1: Update an existing Accounting Period with id 'AP2023Q1', setting it as closed with specified start and end dates.

Set 'Id' to 'AP2023Q1', set 'Additional Fields' including 'Closed' true, and provide 'Start Date' and 'End Date'.

Discussion