NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Invoice → Transform to customerPayment

AI-generated

Summary

Transform an existing Invoice record into a Customer Payment in NetSuite by submitting a POST request to the /invoice/{id}/!transform/customerPayment endpoint with specified payment details.

Inputs

  • Id (required) — Internal identifier of the Invoice to transform.
  • Authentication Method — Select OAuth1 or OAuth2 authentication method; defaults to OAuth1.
  • Additional Fields — Optional parameters to customize the customer payment, including account info, applied amounts, currency, date, memo, status, subsidiary, and various payment details such as credit, deposit, payment option, and more. These fields allow fine-tuning of payment attributes, currency exchange rates, applied credits, and linked deposit/payment documents.
  • Debug Mode — If enabled, includes full request and response details in the output for debugging purposes.

Output shape

a single JSON object representing the transformed Customer Payment record response from NetSuite's REST API

The output contains the response body from the transform operation. If Debug Mode is enabled, the output also includes detailed request and response metadata. The operation is synchronous and returns the result of transforming the specified Invoice into a Customer Payment, reflecting any additional fields provided.

Examples

Example 1: Transform Invoice ID 123 into a Customer Payment with a specified payment amount and memo.

Set 'Id' to 123, optionally specify 'payment' and 'memo' fields under Additional Fields, use default OAuth1 authentication, and disable Debug Mode.

Links

Discussion