NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Purchase Order → Insert or update record

AI-generated

Summary

Insert or update a Purchase Order record in NetSuite by specifying the record ID and providing various optional and required fields to create or modify the purchase order.

Inputs

  • id (required) — The external identifier of the Purchase Order to insert or update.
  • Authentication Method — Choose the OAuth authentication method, either OAuth1 or OAuth2.
  • Additional Fields — Optional fields to include or modify on the Purchase Order record, such as billing address, item details, currency, department, memo, and many others as per NetSuite's Purchase Order schema.
  • Custom Fields — Custom fields with their field names, types, and values to include in the Purchase Order record.
  • Debug Mode — Enable to include full request and response information in the output for debugging purposes.

Output shape

A single Purchase Order record object as returned by NetSuite's API, including updated fields and metadata.

The output includes the updated Purchase Order details from NetSuite. When Debug Mode is enabled, additional request and response data is appended to the output. The operation requires the 'id' field (external identifier) to specify the record for update or create operation. Supports rich nesting of fields according to NetSuite Purchase Order specifications.

Examples

Example 1: Create a new Purchase Order with detailed billing and item information.

Specify 'id' for the Purchase Order, fill desired 'Additional Fields' like 'billingAddress', 'item', 'entity', and optional 'Custom Fields'.

Example 2: Update an existing Purchase Order to change the memo and add a custom field.

Provide the existing Purchase Order 'id', set 'Additional Fields' for 'memo', and add 'Custom Fields' to update the record.

Links

Discussion