NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Purchase Requisition → Insert or update record

AI-generated

Summary

Insert or update a Purchase Requisition record in NetSuite via the REST API using a specified internal ID.

Inputs

  • id (required) — The internal identifier of the Purchase Requisition record to update.
  • additionalFields — Optional fields and sub-records to include in the Purchase Requisition, such as accounting details, items, currency, dates, statuses, and other attributes.
  • customFields — List of custom fields with names, types, and values to be applied on the Purchase Requisition record.
  • authMethod — Authentication method to use for the request: OAuth1 or OAuth2.
  • isDebugMode — Whether to include full request and response information in the output for debugging purposes.

Output shape

a single JSON object representing the inserted or updated Purchase Requisition record as returned from NetSuite's REST API

The output includes the Purchase Requisition record data and, if debug mode is enabled, full HTTP request and response details. The operation requires specifying the record's internal ID and supports extensive optional fields and custom fields. Errors will be returned if the record cannot be found or updated.

Examples

Example 1: Update a Purchase Requisition by internal ID with additional properties and custom fields

Set 'id' to target the Purchase Requisition, provide 'additionalFields' to specify fields like 'memo', 'tranDate', and line items, and optionally add 'customFields' for user-defined fields. Choose 'authMethod' as needed and optionally enable 'isDebugMode' to get detailed request logs.

Links

Discussion