NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Vendor Bill → Insert or update record

AI-generated

Summary

Insert a new or update an existing Vendor Bill record in NetSuite using a specified external identifier and various optional fields to define the bill's details.

Inputs

  • id (required) — External identifier for the Vendor Bill record to insert or update.
  • additionalFields — Optional details about the Vendor Bill, including accounting info, amounts, addresses, dates, status, custom fields, and more to customize the record.
  • customFields — Optional collection of custom fields with specified names, types, and values to include in the Vendor Bill.
  • isDebugMode — Flag to include full request and response information in output for debugging purposes.
  • authMethod — Authentication method to use (either OAuth1 or OAuth2).
  • Prefer — Server behavior preference; using 'respond-async' executes the request asynchronously.
  • X-NetSuite-Idempotency-Key — User-defined unique key to ensure only one execution of asynchronous requests.
  • X-NetSuite-PropertyNameValidation — Sets strictness for property name validation with options: Error, Warning, Ignore.
  • X-NetSuite-PropertyValueValidation — Sets strictness for property value validation with options: Error, Warning, Ignore.

Output shape

a single record representing the created or updated Vendor Bill, optionally including full request and response details if Debug Mode is enabled

The operation requires the external identifier 'id' field and accepts extensive optional fields to customize the Vendor Bill. For asynchronous execution, include 'Prefer' with 'respond-async' and optionally an idempotency key. Errors or warnings related to property validation can be controlled with header options. The output reflects the resulting Vendor Bill record after the API call.

Examples

Example 1: Insert a new Vendor Bill

Set 'id' to the unique external identifier and fill desired fields under 'additionalFields' like entity (vendor), amounts, dates, memo, and items. Optionally set 'customFields' for any custom attributes. Execute to create the bill.

Example 2: Update an existing Vendor Bill

Provide the same external 'id' used in NetSuite to identify the Vendor Bill, provide any fields to update in 'additionalFields' or 'customFields'. Execute to update the existing record accordingly.

Links

Discussion