NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Credit Memo → Update record

AI-generated

Summary

Patch an existing Credit Memo record in NetSuite by specifying its internal ID and any fields to modify.

Inputs

  • isDebugMode — Include full request and response information in the output if true.
  • id (required) — Internal identifier of the Credit Memo to update.
  • additionalFields — Collection of Credit Memo fields to set or modify, such as account, item lines, amounts, status, addresses, custom fields, and other transaction properties.
  • customFields — Fixed collection of custom field entries (field name, field type, and value) to apply to the Credit Memo.

Output shape

Returns the updated Credit Memo as a JSON object with all fields reflecting the changes made.

If debug mode is enabled you will also receive the raw HTTP request and response data. The response may contain NetSuite’s standard envelope fields if any errors occur.

Examples

Example 1: Mark a Credit Memo as fully paid

Set id to 12345, isDebugMode=true, additionalFields with amountPaid set to full amount, applied set to 0, and customFields empty.

Example 2: Add a custom field to an existing Credit Memo

Set id to 56789, additionalFields empty, customFields with fieldName 'customField1', fieldType 'string', value 'Sample text'.

Example 3: Modify multiple line items of a Credit Memo

Set id to 10101, additionalFields item lines updated via nested items array, adjusting quantity, rate, or account for each line.

Discussion