NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Accounting Period → Update record

AI-generated

Summary

Updates an existing NetSuite Accounting Period record via a PATCH request to /accountingPeriod/{id}.

Inputs

  • Id (required) — Internal identifier of the accounting period to update (used as the path parameter).
  • Internal ID — Optional internal ID string that can be sent in the request body.
  • AP Locked — Whether accounts payable is locked for this period.
  • AR Locked — Whether accounts receivable is locked for this period.
  • All Locked — Whether both AP and AR are locked for this period.
  • Allow Non-G/L Changes — Allows users with the Allow Non-G/L Changes permission to enter non-posting transactions after the period is closed.
  • Closed — Indicates whether the period is closed.
  • Date Closed — Timestamp when the period was closed.
  • End Date — End date of the accounting period.
  • Fiscal Calendars — Complex field describing associated fiscal calendars, including items, full name, parent, reference name, and year.
  • Inactive — Marks the period as inactive.
  • Is Posting — Indicates whether the period is open for posting transactions.
  • Last Modified Date — Timestamp of the last modification to the period record.
  • Period is a Quarter — Marks the period as a fiscal quarter.
  • Period is a Year — Marks the period as a fiscal year.
  • Period is Adjustment — Indicates whether the period is an adjustment period (used for special tax adjustments, year‑end impairment, or management reporting).
  • Period Name — Name of the period; must be unique within its fiscal calendar.
  • Prefer — Header value requesting server behavior; use 'respond-async' for asynchronous execution.
  • Reference Name — Alternative name for the period.
  • Replace — Comma‑delimited list of sub‑list names whose existing lines should be replaced by those supplied in the request.
  • Replace Selected Fields — When true, all fields to be deleted in the update must be listed in the 'replace' query parameter.
  • Start Date — Start date of the accounting period.
  • X-NetSuite-Idempotency-Key — User‑defined unique idempotency key for asynchronous requests (UUID format). Ignored for synchronous calls.
  • X-NetSuite-PropertyNameValidation — Strictness of property name validation (options: Error, Warning, Ignore).
  • X-NetSuite-PropertyValueValidation — Strictness of property value validation (options: Error, Warning, Ignore).
  • Year — Year associated with the period (internal and external identifiers).
  • Custom Fields — Array of custom field objects, each containing field name, type (boolean, dateTime, multiSelect, number, select, string), and corresponding value.
  • Debug Mode — When enabled, includes full request and response details in the node output.

Output shape

object

Returns the updated accounting period record as supplied by NetSuite. If Debug Mode is true, the output also contains the request sent and the raw response for troubleshooting.

Examples

Example 1: Close an accounting period

Set Id to the period’s internal ID, Closed to true, and provide a Date Closed.

Links

Discussion