NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Vendor Payment → Insert record

AI-generated

Summary

Insert a Vendor Payment record in NetSuite with customizable fields and options to control request behavior and output detail.

Inputs

  • isDebugMode — Boolean to include full request and response information in the output for debugging purposes.
  • additionalFields — Collection of optional fields to specify details of the vendor payment, including account, amount, currency, entity (vendor), location, memo, check number, date, and other financial and transactional attributes.
  • customFields — List of custom fields to set on the Vendor Payment record; supports various field types such as boolean, dateTime, multiSelect, number, select, and string, allowing you to specify custom data relevant to your NetSuite setup.

Output shape

a single record representing the newly inserted Vendor Payment, including details from NetSuite's response, optionally extended with full request and response info if Debug Mode is enabled.

The response shape depends on whether Debug Mode is active; if true, additional request/response metadata is included. This operation supports asynchronous execution preferences and idempotency keys to ensure single successful execution in asynchronous mode.

Examples

Example 1: Insert a vendor payment with entity, amount, currency, and memo specified.

Provide entity identifiers, total amount, currency identifiers, and optionally memo text along with any custom fields; set Debug Mode to false for standard output.

Example 2: Insert a vendor payment asynchronously with full debug output.

Set the 'Prefer' field to 'respond-async', provide a unique 'X-NetSuite-Idempotency-Key' string, enable Debug Mode, and specify required payment details.

Discussion