NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Invoice → Insert record

AI-generated

Summary

Creates a new Invoice record in NetSuite by sending a POST request to the /invoice REST endpoint. The invoice payload is built from the Additional Fields collection; every field is optional in the node UI and NetSuite applies its own defaults and required-field rules. Commonly used header fields include Entity (customer), Date (defaults to today if blank), Due Date, Invoice # (auto-numbered if blank), Memo, Currency, Exchange Rate, Subsidiary, Location, Class, Department, Terms, Created From, Posting Period, Custom Form, Sales Rep, and discount/total amounts. Line items are added under Item > Items as a multi-value list, each with an item reference (internal/external id), quantity, rate, amount, description, units, price, and line-level classifications and VSOE fields. Billing and shipping details can be provided either as plain address fields (billAddr1, billCity, billState, billZip, billPhone, etc.) or as structured address collections. The operation also exposes communication flags (To Be Emailed, To Be Faxed, To Be Printed) and REST request controls: Prefer respond-async, X-NetSuite-Idempotency-Key, X-NetSuite-PropertyNameValidation, X-NetSuite-PropertyValueValidation, and replace (comma-separated sublist names whose lines are replaced). Custom Fields adds account-specific custom fields: pick a field name loaded from NetSuite, choose its type (boolean, dateTime, multiSelect, number, select, string), and supply a matching value. Returns the created invoice record from NetSuite; with Debug Mode enabled, the output also includes full request and response info. Requires the NetSuite REST OAuth2 credential.

Inputs

None.

Output shape

Discussion