Credit Memo
A credit memo record exposes a credit memo to REST web services. A credit memo is used to refund or credit a customer account. For more information about credit memos and how they function in the user interface, see Customer Credit Memos.
REST web services do not support legacy tax features. To work with taxation through REST web services, you must have the SuiteTax feature enabled. For more information about using SuiteTax, see SuiteTax.
The REST API Browser includes information about the field names and field types of the credit memo record and about the HTTP methods, request parameters, and operations available to this record.
For details, see the REST API Browser’s credit memo reference page.
For information about using the REST API browser, see The REST API Browser.
This record:
-
is not a subrecord
-
does not have any subrecords
Record ID
The record ID for the credit memo record is creditmemo.
Prerequisites
Prerequisites include:
-
REST Web Services feature
-
Two-factor authentication (for REST)
-
Accounts receivable (A/R) for the credit memo record
Usage Notes
To use the Choose Team and Update Customer fields in the Sales Team subtab, the Team Selling feature must be enabled. To enable Team Selling, go to Setup > Company > Enable Features > CRM. Check the Team Selling box, and then click Save.
The Multi-Partner Management Feature must also be enabled to use the Update Customer field in the Relationships subtab. An administrator can enable the Multi-Partner Management feature at Setup > Company > Setup Tasks > Enable Features. Click the CRM subtab, and then under Partners, check the Multi-Partner Management box. Click Save.
Code Sample
The following example is for creating a credit memo record.
Create
POST: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo { "entity": { "id": "4" }, "item": { "items": [ { "amount": 1000.0, "item": { "id": "5" } } ] }, "subsidiary": { "id": "1" } "location": "5"
} Get
GET: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/101 Update
PATCH: https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/101
{"memo": 'test memo'}
Setting the Sales Order's Sales Team Members to Match Sales Group 164
"salesGroup": {
"id": 164 }
Update the Customer's Partner Team to Match the Transaction Partners
"syncPartnerTeams": true
Update the Customer's Sales Team to Match the Transaction Sales Team
"syncSalesTeams": true