NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Invoice → Transform to customerPayment

AI-generated

Summary

Create a Customer Payment record from a specified Invoice by POSTing to the NetSuite REST transform endpoint.

Inputs

  • Debug Mode — Include full request and response details in the output.
  • Id (required) — Internal identifier of the Invoice to transform.
  • Additional Fields — Optional fields to set on the new Customer Payment, such as amount, date, applied credits, account, and other payment details.

Output shape

a JSON object representing the created Customer Payment record (e.g., tranId, customer, payment, date, applied lines).

When Debug Mode is enabled, the output adds two properties – request and response – containing the full HTTP payloads sent to and received from NetSuite.

Examples

Example 1: Transform a simple invoice into a customer payment

Invoice Id: 456; Payment amount: 200; Date: 2024-08-15; Additional Fields: { payment: 200, tranDate: '2024-08-15' }

Example 2: Apply credit and set applied amount

Invoice Id: 789; Applied: 50; Credit applied: true; Additional Fields: { applied: 50, credit: { items: [{ amount: 50 }] } }

Example 3: Debug the transform request

Invoice Id: 321; Debug Mode: true

Discussion