NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Vendor Bill → Transform to vendorCredit

AI-generated

Summary

Transform a specified Vendor Bill into a Vendor Credit in NetSuite using its internal identifier, optionally customizing the transformation with various additional fields.

Inputs

  • id (required) — Internal identifier of the Vendor Bill to be transformed.
  • authMethod — Authentication method to use, either OAuth1 or OAuth2 (default OAuth1).
  • additionalFields — Optional fields to customize the Vendor Credit creation, including account details, amounts, addresses, dates, entity, currency, items, memo, and other transaction-specific information.
  • isDebugMode — Whether to include full request and response information in the output for debugging purposes.

Output shape

a JSON object representing the created Vendor Credit record or error details if the transformation fails.

The operation returns the API response from NetSuite for the transformed Vendor Credit. If debugging is enabled, full request and response data are included. The input id parameter is mandatory; all other fields in additionalFields are optional and used to modify the created Vendor Credit. Errors from the NetSuite API are propagated in the response.

Examples

Example 1: Transform Vendor Bill with no additional customization

Provide the internal ID of the Vendor Bill and execute the transform operation, receiving the created Vendor Credit record in response.

Example 2: Transform Vendor Bill and specify a memo and due date

Supply the ID along with memo and dueDate fields inside additionalFields to set those properties on the resulting Vendor Credit.

Links

Discussion