NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Sales Order → Transform to returnAuthorization

AI-generated

Summary

Convert an existing Sales Order into a Return Authorization within NetSuite by submitting a POST request to the corresponding transform endpoint.

Inputs

  • Id (required) — The internal identifier of the Sales Order to transform.
  • Additional Fields — Optional parameters to customize the created Return Authorization, including billing and shipping address details, item lines, currency, subsidiary, status, and other transaction-specific fields.
  • Debug Mode — Enable to include full request and response details in the output for debugging purposes.
  • Authentication Method — Specify the authentication method used (OAuth1 or OAuth2).

Output shape

A single record representing the created Return Authorization, including any response metadata. If Debug Mode is enabled, includes detailed request and response information.

The operation sends a POST request to /salesOrder/{id}/!transform/returnAuthorization endpoint. The returned data corresponds to the newly created Return Authorization record. Optional additional fields can customize the created record. Errors related to invalid inputs or API issues are returned in the standard error format.

Examples

Example 1: Transform Sales Order #12345 to Return Authorization with debug info

Set Id to 12345, enable 'Debug Mode' to true, optionally set additional fields as needed.

Links

Discussion