Term
NetSuite exposes the term record to REST web services. Terms are used to specify when payment is due on your customers' invoices. Define the specific requirements of a term of payment by creating a term record. You can create different payment terms for different customers. In the UI, this is a user defined list at Setup > Accounting > Setup Tasks > Accounting Lists > New. For more information about payment terms, see Creating Terms of Payment.
Record ID
The record ID for the term REST record is term.
Subrecord
The term record has the CustomInstallmentPercent subrecord.
Note that certain fields become available only after you enable the Installments feature.
There are two types of terms: standard and date driven. The type is determined by the dateDriven field. Certain fields are valid only for one of the term types.
The REST API Browser includes information about the field names and field types of the estimate record. It also includes information about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s term reference page.
For information about using the REST API Browser, see The REST API Browser.
Code Samples
The code samples in this section show common use cases for standard and date driven terms.
Creating a Standard Term
POST https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/term
{ "dateDriven": false, "name": "St Term name", "daysuntilnetdue": 15, "discountpercent": 10, "daysuntilexpiry": 5
}
Creating a Date Driven Term
POST https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/term
{ "dateDriven": true, "name": "DD Term name", "dayofmonthnetdue": 15, "duenextmonthifwithindays": 10, "discountpercentdatedriven": 5, "daydiscountexpires": 5
}
Updating a Standard Term
PATCH https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/term/{id}
{ "name": "Updated St Term", "daysuntilnetdue": 17, "discountpercent": 17, "daysuntilexpiry": 7 }
Updating a Date Driven Term
PATCH https://123456.suitetalk.api.netsuite.com/services/rest/record/v1/term/{id}
{ "name": "Updated DD Term", "dayofmonthnetdue": 17, "duenextmonthifwithindays": 7, "discountpercentdatedriven": 7, "daydiscountexpires": 7
}