NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Check → Update record

AI-generated

Summary

Modify an existing Check record by its internal ID via a PATCH request, optionally replacing fields or sublists and adding custom fields.

Inputs

  • isDebugMode — When true, the node outputs full request and response details for troubleshooting.
  • id (required) — Internal NetSuite identifier of the Check to update.
  • Prefer — Server behavior hint, e.g., 'respond-async' to run asynchronously.
  • X-NetSuite-Idempotency-Key — Unique key to guarantee idempotent execution of asynchronous requests.
  • X-NetSuite-PropertyNameValidation — Strictness level for property name validation.
  • X-NetSuite-PropertyValueValidation — Strictness level for property value validation.
  • replace — Comma‑delimited list of sublist names whose lines should be replaced entirely by the update payload.
  • replaceSelectedFields — If true, any field to be removed must be listed in the 'replace' parameter.
  • customFields — Collection of custom field values to set on the Check.
  • additionalFields — All other optional fields for a Check, such as amount, date, memo, payee, accounting book details, and any line items.

Output shape

JSON object representing the updated Check record

If Debug Mode is enabled, the output will additionally contain request and response objects. The structure follows NetSuite’s REST API response for a Check – including standard fields (id, tranId, tranDate, amount, etc.) and any custom fields you supplied. The node does not stream results; it returns one record per run.

Examples

Example 1: Update a Check’s amount and memo

Set "id" to 123456, enable global debug mode, fill "additionalFields.amount" with 500.00 and "additionalFields.memo" with "Updated payment".

Example 2: Print a Check immediately

Set "id" to 789012, check the "To Be Printed" flag in "additionalFields", and enable the "Prefer" option with value "respond-async" to trigger asynchronous printing.

Example 3: Replace all expense lines

Set "id", supply new expense line items in "additionalFields.expense.items", and set "replace" to "expense", "replaceSelectedFields" to true to ensure all old expense lines are removed.

Discussion