NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Invoice → Insert or update record

AI-generated

Summary

Update an existing Invoice record in NetSuite by specifying its external identifier along with any fields to modify, optionally replacing sublist lines or selecting specific fields to replace. Allows sending the request synchronously or asynchronously and supports detailed custom fields and extensive invoice properties.

Inputs

  • id (required) — The external identifier of the Invoice record to update.
  • additionalFields — Optional comprehensive set of invoice fields to specify details such as billing address, items, currency, subsidiary, dates, status, and custom invoice properties.
  • customFields — An optional list of custom fields to update on the Invoice, with field names, types, and values.
  • replace — Comma-delimited names of sublists on the record; all lines on these sublists will be replaced with those specified in the request.
  • replaceSelectedFields — If true, includes all fields that should be deleted in the update request, requiring them to be listed in the 'replace' parameter.
  • Prefer — Request execution behavior. Use 'respond-async' to execute request asynchronously.
  • X-NetSuite-Idempotency-Key — A UUID string to ensure idempotency of asynchronous requests, so the request executes only once.
  • X-NetSuite-PropertyNameValidation — Sets strictness for property name validation: 'Error', 'Warning', or 'Ignore'.
  • X-NetSuite-PropertyValueValidation — Sets strictness for property value validation: 'Error', 'Warning', or 'Ignore'.

Output shape

an object representing the updated Invoice record as returned by the NetSuite REST API, including any fields modified or retrieved; includes detailed response data if Debug Mode is enabled.

If Debug Mode is enabled, the output includes full request and response information. The operation requires the Invoice 'id' external identifier. The request can be made synchronously or asynchronously depending on the 'Prefer' header. Use 'replace' and 'replaceSelectedFields' to control sublist lines replacement. Custom fields can be included. Authentication method can be OAuth1 or OAuth2.

Links

Discussion