NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Purchase Order → Transform to itemReceipt

AI-generated

Summary

Transform a specified Purchase Order into an Item Receipt in NetSuite by invoking the REST API’s transform endpoint with the given purchase order ID and optional additional fields to customize the resulting Item Receipt record.

Inputs

  • id (required) — Internal identifier of the Purchase Order to transform.
  • isDebugMode — Boolean flag to include full request and response details in the output for debugging purposes.
  • authMethod — Authentication method to use, either OAuth1 or OAuth2.
  • additionalFields — Optional collection of fields to customize the Item Receipt, including dates, classes, currency, custom form, memo, subsidiary, location, items, and various other properties to apply during the transformation.

Output shape

A single JSON object representing the newly created Item Receipt record as returned by the NetSuite REST API, including any fields specified in the additionalFields input and possibly debug information if enabled.

The response shape closely matches the Item Receipt schema in NetSuite's REST API. If Debug Mode is enabled, full request and response details are included for troubleshooting. Errors from the API are returned as standard JSON error objects.

Examples

Example 1: Transforming a Purchase Order with ID 12345 using default settings.

Set 'id' to 12345; leave additional fields empty and Debug Mode off; use default OAuth1 authentication.

Example 2: Transforming a Purchase Order with custom transaction date, memo, and item receipt lines.

Provide 'id' of the Purchase Order; in additionalFields include 'tranDate' for the receipt date, 'memo' text, and specify 'item.items' details with quantities and locations; enable Debug Mode for tracing.

Links

Discussion