NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Vendor Prepayment → Insert or update record

AI-generated

Summary

Update an existing Vendor Prepayment record in NetSuite identified by its external ID, changing specified fields or adding detailed sublist and custom fields.

Inputs

  • Id: External identifier of the Vendor Prepayment record to update (required). Specify the record to insert or update. (required) — External identifier.
  • Additional Fields: Optional fields to update on the Vendor Prepayment record including account, balance, bill details, payment amount, dates, entity, memo, subsidiary, status, and others. These fields support detailed nested collections for complex updates. — Various optional parameters for the Vendor Prepayment record such as Account, Bill, Currency, Dates, etc.
  • Custom Fields: Optional custom fields to upsert on the Vendor Prepayment record. Allows setting diverse field types like boolean, dateTime, multiSelect, number, select, and string with their values. — List of custom fields to update on the record with respective field types and values.
  • Debug Mode: Optionally include full request and response information in the node output for debugging purposes. — Whether to include full request and response info in the output.

Output shape

a single record representing the updated Vendor Prepayment resource as returned by the NetSuite REST API

The update is performed via an HTTP PUT request to /vendorPrepayment/{id} where 'id' is the external identifier. Optional fields and custom fields can be included to specify updates. Debug mode, if enabled, adds detailed request/response data. The server's preference header can request asynchronous execution. The output includes the resultant record data or error details.

Examples

Example 1: Update memo and payment amount for a vendor prepayment

Set 'Id' to the external ID of target vendor prepayment, add 'memo' and 'payment' fields in additionalFields with new values.

Discussion