NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Accounting Period → Insert or update record

AI-generated

Summary

Upsert a NetSuite Accounting Period record.

Inputs

  • isDebugMode — Whether to include full request and response info in the output
  • authMethod — Authentication method for the API request
  • id (required) — External identifier. Maps to the URL path segment {id}.
  • additionalFields — Optional fields to update on the Accounting Period. Available options include apLocked, arLocked, allLocked, allowNonGLChanges, closed, closedOnDate, endDate, fiscalCalendars, isInactive, isPosting, lastModifiedDate, parent, isQuarter, isYear, isAdjust, periodName, refName, replace, replaceSelectedFields, startDate, X-NetSuite-Idempotency-Key, X-NetSuite-PropertyNameValidation, X-NetSuite-PropertyValueValidation, and year.
  • customFields — List of custom fields to assign. Each entry requires a field name and type (boolean, dateTime, number, string, or multi-select), with a corresponding value.
  • Prefer — Execute the request asynchronously when set to 'respond-async'.
  • X-NetSuite-Idempotency-Key — Unique idempotency key (RFC 4122 UUID) to ensure the request executes only once.
  • X-NetSuite-PropertyNameValidation — Sets strictness of property name validation.
  • X-NetSuite-PropertyValueValidation — Sets strictness of property value validation.
  • replace — Comma-delimited names of sublists to replace. All sublist lines will be replaced with lines specified in the request.
  • replaceSelectedFields — If true, all deleted fields must be included in the 'replace' query parameter.
  • periodName — The name of the selected period. Required per NetSuite API.
  • startDate — The date this period starts. Required per NetSuite API.
  • endDate — The end date of this period. Required per NetSuite API.
  • isInactive — Check to inactivate this numbering sequence.
  • isPosting — Indicates if the period is used for posting.
  • isQuarter — Check if this period is a quarter.
  • isYear — Check if this period is a year.
  • isAdjust — Identifies if the period is an adjustment period. Journal entries can only be posted in adjustment periods.
  • closed — Check to close the period.
  • closedOnDate — The date the period was closed.
  • lastModifiedDate — Last modified date of the period.
  • fiscalCalendars — Fiscal calendar associations.
  • parent — Parent period identifier (internal or external ID).
  • year — Year identifier (internal or external ID) for the period.
  • refName — Reference name for the period.

Output shape

NetSuite Accounting Period record object reflecting the upserted state.

The operation uses HTTP PUT against /accountingPeriod/{id}. The 'id' parameter is required and maps to the URL path. Optional parameters control authentication, field-level updates, custom field assignment, async execution, idempotency, validation strictness, sublist replacement, and period metadata (name, dates, status, calendar associations).

Links

Discussion