NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Expense Report → Insert or update record

AI-generated

Summary

Insert or update an Expense Report record in NetSuite by specifying the record's internal identifier and providing fields to create or modify the record.

Inputs

  • id (required) — The internal identifier of the Expense Report record to insert or update.
  • isDebugMode — Option to enable inclusion of full request and response details in the output for debugging.
  • authMethod — Select the authentication method to use, OAuth1 or OAuth2.
  • additionalFields — Optional additional properties of the Expense Report such as account, accounting approval, dates, department, expenses, currency, status, subsidiary, and other financial and organizational details.
  • customFields — Custom fields for the Expense Report with specified field names, types, and values, supporting multiple data types including boolean, dateTime, multiSelect, number, select, and string.

Output shape

The response includes details of the inserted or updated Expense Report record as returned by the NetSuite REST API, potentially including the record's internal ID and other metadata. If debug mode is enabled, full request and response information is also returned.

The operation targets the HTTP PUT endpoint '/expenseReport/{id}', where 'id' denotes the internal identifier of the Expense Report to create or update. The output may vary depending on the server's response and debug mode setting. Custom and standard Expense Report fields can be specified. Fields not included are left unchanged unless 'replace' parameters are used to replace sublists. This operation supports idempotency keys and property validation modes for advanced use cases.

Links

Discussion