NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Purchase Contract → Insert or update record

AI-generated

Summary

Insert or update a Purchase Contract record in NetSuite by specifying its ID and provided details.

Inputs

  • id (required) — External identifier of the Purchase Contract record to insert or update.
  • additionalFields — Optional fields to include or update in the Purchase Contract such as accounting details, dates, locations, status, items, custom fields, and more.
  • customFields — Custom fields to set on the Purchase Contract record, supporting various data types and multiple entries.
  • isDebugMode — Flag to include full request and response information in the output for debugging purposes.
  • authMethod — Authentication method to use for the request, either OAuth1 or OAuth2.
  • Prefer — Request server behavior, e.g., 'respond-async' to execute the request asynchronously.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key to ensure the request executes only once in async mode.
  • X-NetSuite-PropertyNameValidation — Sets strictness of property name validation with options: Error, Warning, Ignore.
  • X-NetSuite-PropertyValueValidation — Sets strictness of property value validation with options: Error, Warning, Ignore.

Output shape

a single record representing the inserted or updated Purchase Contract, optionally including full request and response information if debug mode is enabled.

The operation requires the external ID of the Purchase Contract to update or insert. Additional fields and custom fields are optional to customize the record. If 'Prefer' is set to 'respond-async', the request is executed asynchronously and the response reflects that behavior. Debug mode enriches output with detailed request/response data for troubleshooting.

Links

Discussion