NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Vendor → Transform to purchaseOrder

AI-generated

Summary

Transform an existing Vendor record into a Purchase Order in NetSuite by calling the REST API endpoint with the specified vendor ID and optional purchase order details.

Inputs

  • id (required) — Internal identifier of the Vendor record to transform.
  • authMethod — Authentication method to use (OAuth1 or OAuth2).
  • isDebugMode — Whether to include detailed request and response information in the output.
  • additionalFields — Optional fields to customize the purchase order, including addresses, dates, financial terms, items, and more as defined by NetSuite's purchase order schema.

Output shape

A single JSON object representing the created Purchase Order record or API response, potentially including full debug data if debug mode is enabled.

The output will include the purchase order details returned by NetSuite after transforming the vendor record. When 'Debug Mode' is enabled, the response will contain additional HTTP request and response details. The operation performs a POST to /vendor/{id}/!transform/purchaseOrder using the internal vendor ID provided.

Examples

Example 1: Transform a vendor with ID 123 into a purchase order with a specified date and memo.

Set 'id' to 123, provide 'tranDate' and 'memo' in 'additionalFields', select authentication method, and optionally enable Debug Mode.

Links

Discussion