When requesting a Customer Payment, use the requestJSON to pass the Customer Payment data, and the response will have responseJSON which stores the Customer Payments response returned by NetSuite.
The Customer Payment object has the following parameters.
Read-Only field, provides the Salesforce Record ID upon successful creation or updation in Salesforce.
Select the Accounts Receivable account that will be affected by this invoice. Internal ID of the Account.
Internal ID of the Class.
Read-Only field, the Date will be returned as a Unix timestamp in seconds.
Read-Only field, returns the Currency Name.
Internal ID of the Currency.
Internal ID of the Entity (Customer).
Custom fields and their values.
Internal ID of the Custom Form.
Internal ID of the Department.
Supported only while creating, holds the value of the Exchange Rate.
Unique ID that NetSuite holds. It is required during the update of a Record.
Read-Only field and the Date is returned as a Unix timestamp in seconds.
Internal ID of the Location.
Sets the total amount of payment for this customer.
Read-Only field, returns the Status of the Invoice.
Internal ID of the Subsidiary. By default, NetSuite considers the Subsidiary of the Customer if not provided.
The date is accepted and returned as a Unix timestamp in seconds.
Provide Order # (number) or auto-generated by NetSuite
Read-Only field, returns the Total Amount.
List of LineItem Records.
The default value for the replaceAll attribute is true. If true, NetSuite will replace all the Line Items with the new ones
The field is required and must referance the internal ID of the invoice the customer payment will be applied to.