NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Invoice → Insert record

AI-generated

Summary

Insert a new Invoice record into NetSuite using the REST API by providing the necessary invoice data and optional additional fields.

Inputs

  • authMethod — Choose the authentication method for NetSuite API: OAuth1 or OAuth2.
  • additionalFields — Specify any optional fields for the invoice such as billing and shipping addresses, dates, amounts, custom fields, line items, status, and other invoice details to customize the created record.
  • customFields — Set custom field values on the Invoice record with specified field names, types, and their corresponding values.
  • isDebugMode — Enable to include full HTTP request and response details in the output for debugging purposes.

Output shape

a single record representing the created Invoice, including its unique identifier and any returned response data from NetSuite.

The output includes standard invoice fields and any server response details. If debug mode is enabled, additional request and response information is appended. Errors or validation issues are returned as operation errors.

Examples

Example 1: Create an invoice with mandatory fields

Specify basic invoice fields such as entity (customer), transaction date, and items in additionalFields.

Example 2: Create an invoice with custom fields set

Provide necessary invoice details and set values for one or more custom fields to be stored in the invoice record.

Links

Discussion