NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Expense Report → Update record

AI-generated

Summary

Update an existing NetSuite Expense Report record by its internal ID, optionally modifying fields such as status, accounting approval, dates, custom fields, and expense line items.

Inputs

  • isDebugMode — Include full request and response data in the output.
  • id (required) — Internal numeric identifier of the expense report to update.
  • additionalFields — Key-value pairs for mutable expense report fields (e.g., account, accountingapproval, tranDate, total, custom form, etc.). Use sub-collections like expense.items or accountingBookDetail.items to modify nested structures.
  • customFields — Content for any custom fields on the record. Select field name, type, and value via the node’s custom field picker.

Output shape

a single Expense Report record reflecting the changes made

The returned object contains the full updated record; if Debug Mode is enabled, the output will also include the raw HTTP request and response objects. Pagination is not applicable for this operation.

Examples

Example 1: Mark an expense report complete and approve it

Set id to the report’s internal ID, add additionalFields.complete = true, additionalFields.accountingapproval = true, and optionally supply a tranDate.

Example 2: Adjust an expense line item amount and add a comment

Set id, include new expense.items with modified amount, and set expense.items[0].memo to a comment.

Example 3: Apply a custom field value

Set id, use customFields with a chosen field name and string value, then execute.

Discussion