NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Credit Memo → Insert record

AI-generated

Summary

Create a new credit memo record in NetSuite via the REST API.

Inputs

  • isDebugMode — Include full request and response details in the output; otherwise only the created record is returned.
  • entity (required) — Internal or external identifier of the customer for whom the credit memo is issued.
  • tranDate (required) — Date of the credit memo.
  • items (required) — List of line items with at least: item (internal/external ID), quantity, and amount. Can be supplied via the nested "item" property in the request body.
  • customFields — Optional set of custom NetSuite fields to set on the credit memo.

Output shape

A single JSON object representing the created Credit Memo, including fields returned by NetSuite such as internalId, externalId, tranId and all set properties.

When Debug Mode is enabled, the output will contain two fields: "body" with the created record and "debug" with the full request and response payloads; otherwise only the created record is returned.

Examples

Example 1: Create a credit memo for a customer with two line items

Set entity to the internal ID of the customer; set tranDate to the creation date; provide items with item IDs, quantities, and amounts; optionally set a custom field; leave isDebugMode off.

Discussion