NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Credit Memo → Insert or update record

AI-generated

Summary

Create or update a NetSuite Credit Memo by supplying its external ID and optional fields.

Inputs

  • id (required) — External identifier for the Credit Memo. Used as path parameter in the REST call.
  • additionalFields — Custom fields to set on the Credit Memo. Supports nested collections for account, items, taxes, billing and shipping address, dates, currency, status, and many more NetSuite-specific fields.
  • customFields — List of custom field definitions (Field Name, Field Type, Value) that will be added to or overridden on the Credit Memo.
  • isDebugMode — If true, the node returns the full HTTP request and response JSON along with the record data.

Output shape

a single record representing the saved Credit Memo

The payload includes all returned NetSuite fields, including internal IDs, transaction details, and applied values. If debug mode is enabled, the output will contain a nested "debug" field with request/response headers and bodies.

Examples

Example 1: Create a new Credit Memo for a customer using minimal required fields

id: "CM-001";
additionalFields: {
entity: { id: "123" },
item: { items: [{ item: { id: "456" }, quantity: 2, rate: 100 }] },
tranDate: "2024-08-19"
}

Example 2: Update an existing Credit Memo to apply a payment and adjust the amount paid

id: "CM-001";
additionalFields: {
amountPaid: 50,
applied: 120,
apply: { items: [{ doc: { id: "789" }, amount: 120, applied: true }] }
}

Example 3: Debug mode to inspect the REST request and response

id: "CM-001";
isDebugMode: true

Discussion