Actions979
- Account Actions
- Accounting Period Actions
- Adv Intercompany Journal Entry Actions
- Assembly Build Actions
- Assembly Item Actions
- Assembly Unbuild Actions
- Billing Account Actions
- Billing Revenue Event Actions
- Billing Schedule Actions
- Bin Actions
- Bin Transfer Actions
- Blanket Purchase Order Actions
- Bom Actions
- Bom Revision Actions
- Calendar Event Actions
- Campaign Actions
- Campaign Response Actions
- Cash Refund Actions
- Cash Sale Actions
- Charge Actions
- Check Actions
- Classification Actions
- Commerce Category Actions
- Competitor Actions
- Consolidated Exchange Rate Actions
- Contact Actions
- Contact Category Actions
- Contact Role Actions
- Cost Category Actions
- Coupon Code Actions
- Credit Card Charge Actions
- Credit Card Refund Actions
- Credit Memo Actions
- Currency Actions
- Currency Rate Actions
- Customer Actions
- Customer Category Actions
- Customer Deposit Actions
- Customer Message Actions
- Customer Payment Actions
- Customer Refund Actions
- Customer Status Actions
- Customer Subsidiary Relationship Actions
- [Custom Record] Actions
- Department Actions
- Deposit Actions
- Deposit Application Actions
- Description Item Actions
- Discount Item Actions
- Download Item Actions
- Email Template Actions
- Employee Actions
- Estimate Actions
- Expense Category Actions
- Expense Report Actions
- Fair Value Price Actions
- Fulfillment Request Actions
- Gift Certificate Item Actions
- Inbound Shipment Actions
- Intercompany Journal Entry Actions
- Intercompany Transfer Order Actions
- Inventory Adjustment Actions
- Inventory Cost Revaluation Actions
- Inventory Count Actions
- Inventory Item Actions
- Inventory Number Actions
- Inventory Transfer Actions
- Invoice Actions
- Issue Actions
- Item Fulfillment Actions
- Item Group Actions
- Item Receipt Actions
- Item Revision Actions
- Job Actions
- Job Status Actions
- Job Type Actions
- Journal Entry Actions
- Kit Item Actions
- Location Actions
- Manufacturing Cost Template Actions
- Manufacturing Operation Task Actions
- Manufacturing Routing Actions
- Markup Item Actions
- Merchandise Hierarchy Level Actions
- Merchandise Hierarchy Node Actions
- Merchandise Hierarchy Version Actions
- Message Actions
- Nexus Actions
- Non Inventory Purchase Item Actions
- Non Inventory Resale Item Actions
- Non Inventory Sale Item Actions
- Note Type Actions
- Opportunity Actions
- Other Charge Purchase Item Actions
- Other Charge Resale Item Actions
- Other Charge Sale Item Actions
- Other Name Actions
- Other Name Category Actions
- Partner Actions
- Paycheck Actions
- Payment Item Actions
- Payment Method Actions
- Phone Call Actions
- Price Book Actions
- Price Level Actions
- Price Plan Actions
- Pricing Group Actions
- Project Task Actions
- Promotion Code Actions
- Purchase Contract Actions
- Purchase Order Actions
- Purchase Requisition Actions
- Resource Group Actions
- Return Authorization Actions
- Rev Rec Schedule Actions
- Rev Rec Template Actions
- Sales Order Actions
- Sales Role Actions
- Sales Tax Item Actions
- Service Purchase Item Actions
- Service Resale Item Actions
- Service Sale Item Actions
- Ship Item Actions
- Statistical Journal Entry Actions
- Subscription Actions
- Subscription Change Order Actions
- Subscription Line Actions
- Subscription Plan Actions
- Subscription Term Actions
- Subsidiary Actions
- Subtotal Item Actions
- [SuiteQL] Actions
- Support Case Actions
- Task Actions
- Tax Type Actions
- Term Actions
- Time Bill Actions
- Time Sheet Actions
- Topic Actions
- Transfer Order Actions
- Units Type Actions
- Usage Actions
- Vendor Actions
- Vendor Bill Actions
- Vendor Category Actions
- Vendor Credit Actions
- Vendor Payment Actions
- Vendor Prepayment Actions
- Vendor Prepayment Application Actions
- Vendor Return Authorization Actions
- Vendor Subsidiary Relationship Actions
- Web Site Actions
- Work Order Actions
- Work Order Close Actions
- Work Order Completion Actions
- Work Order Issue Actions
Invoice → Update record
AI-generatedSummary
Update an existing NetSuite Invoice record by its internal ID, modifying specified fields and sublists.
Inputs
- Id (required) — The internal identifier of the invoice to update.
- Additional Fields — Select standard invoice fields to modify, such as general information (e.g., memo, transaction date, associated entity, sales representative, subtotal, payment terms), billing or shipping addresses, or line items. For line items, specify details like item ID, quantity, rate, amount, description, class, department, location, and subsidiary.
- Custom Fields — Add or update custom fields on the invoice record. For each custom field, specify its
Field Name,Field Type(e.g., Boolean, Date Time, Number, String, Select, Multi Select), and the correspondingValue. - Replace — A comma-separated list of sublist names (e.g., 'item') whose existing lines will be completely replaced by the new lines provided in the 'Additional Fields' or 'Custom Fields' section. If a sublist name is not included, existing lines in that sublist will be preserved unless explicitly modified.
- Replace Selected Fields — If set to 'true', any body fields intended for deletion in the update request must also be included in the 'Replace' query parameter.
- Prefer — Request specific server behavior, such as 'respond-async' for asynchronous execution of the update.
- X-NetSuite-Idempotency-Key — A unique UUID to ensure that asynchronous requests are executed exactly once, preventing duplicate processing if the request is retried.
- X-NetSuite-PropertyNameValidation — Sets the strictness for validating property names in the request payload ('Error', 'Warning', 'Ignore').
- X-NetSuite-PropertyValueValidation — Sets the strictness for validating property values in the request payload ('Error', 'Warning', 'Ignore').
- Debug Mode — When enabled, the output will include detailed request and response information for debugging purposes.
Output shape
A single NetSuite Invoice record with its updated properties.
If 'Debug Mode' is enabled, the output will include the full request and response details. If 'Prefer' is set to 'respond-async', the operation may return an acknowledgement of the asynchronous request rather than the fully updated record immediately.
Examples
Example 1: Update the memo and payment terms for an existing invoice.
Set 'Id' to the invoice's internal ID, 'Additional Fields.Memo' to "New memo for invoice", and 'Additional Fields.Terms.id' to the internal ID of the desired payment terms.
Example 2: Replace all line items on an invoice with a new set of items.
Set 'Id' to the invoice's internal ID, set 'Replace' to "item", and provide the complete new list of line items under 'Additional Fields.Item.items'.
Example 3: Update a custom field on an invoice asynchronously.
Set 'Id' to the invoice's internal ID, add an entry under 'Custom Fields' with the Field Name, Field Type, and Value for the custom field, and set 'Prefer' to "respond-async" with a unique 'X-NetSuite-Idempotency-Key'.