Price Plan

The price plan record, along with the price book record, is used to build pricing information for subscriptions.

The price plan record is available only when the SuiteBilling feature is enabled at Setup > Company > Enable Features (Administrator), on the Transactions subtab.

For help working with this record in the UI, see Creating Price Plans.

The internal ID for this record is priceplan.

See the SuiteScript Records Browser for all internal IDs associated with this record. For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Types

The price plan record is scriptable in server and client SuiteScript.

Supported Functions

The price plan record is fully scriptable — it can be created, updated, copied, deleted, and searched using SuiteScript.

Code Sample

The following code sample shows a tiered price.

          var pricePlan = nlapiCreateRecord('priceplan');
pricePlan.setFieldValue('priceplantype', '2'); // CUMULATIVE_TIER
pricePlan.selectNewLineItem('pricetiers');
pricePlan.setCurrentLineItemValue('pricetiers', 'fromval', '0');
pricePlan.setCurrentLineItemValue('pricetiers', 'pricingoption', '-101'); // RATE
pricePlan.setCurrentLineItemValue('pricetiers', 'value', '100');
pricePlan.commitLineItem('pricetiers')
var newPricePlan = nlapiSubmitRecord(pricePlan); 

        

Related Topics

General Notices