NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Account → Update record

AI-generated

Summary

Update an existing NetSuite Account record by specifying its internal ID (required) and the fields to update.

Inputs

  • id (required) — The internal ID of the account to update (number).
  • acctname — The account name (string, up to 31 characters).
  • acctnumber — The account number (string, up to 60 characters).
  • acctType — The account type (options: NonPosting, Bank, LongTermLiab, etc.).
  • description — A description for the account (string, up to 255 alphanumeric characters).
  • isInactive — Whether to inactivate the account (boolean).
  • openingBalance — The opening balance for the account (number).
  • currency — The currency for the account (collection with internal/external identifier).
  • replace — Comma-separated list of sublist names to replace entirely (string).
  • replaceSelectedFields — If true, all fields to be deleted must be included in the 'replace' parameter (boolean).
  • prefer — Set to 'respond-async' for asynchronous execution (options: empty or 'respond-async').
  • xNetSuiteIdempotencyKey — A user-defined idempotency key for asynchronous requests (string, UUID format).
  • isDebugMode — Whether to include full request and response info in the output (boolean).

Output shape

The updated account record, or error details if the update fails. When debug mode is enabled, includes full request and response information.

The response structure matches the NetSuite GET /account/{id} response for the updated record.

Examples

Example 1: Update an account's name and number

Set id to 123, acctname to 'New Account Name', acctnumber to '1000'.

Example 2: Asynchronous update with idempotency key

Set id to 456, prefer to 'respond-async', xNetSuiteIdempotencyKey to a UUID.

Links

Discussion