Sales Price Rule Entry
A sales price rule entry record exposes the sales price rule entry to REST web services. This record is not a subrecord. This record has one subrecord: quantitybreak.
The REST API browser includes information about the field names and field types of the sales price rule entry record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser's sales price rule entry reference page.
For information about using the REST API Browser, see The REST API Browser.
Record ID
The record ID for a sales price rule entry REST record is salespriceruleentry.
The record ID for a sales price rule entry REST subrecord is quantityBreaks.
Prerequisites
You must enable Advanced Pricing before you can use this record through REST web services.
You must use camel case for field names (likeThisExample).
Limitations
You cannot create or edit a sales price rule entry record that references a currently inactive price rule.
Code Sample
The following code sample shows a common use case for updating a sales price rule entry record.
POST
/services/rest/record/v1/salespriceruleentry
User-Agent: NetSuite-REST-Client
Content-Type: application/json; charset=UTF-8
{ "item": { "id": "380" }, "priceRule": { "id": "6" }, "quantityBreaks": { "items": [ { "lowerBound": 0, "rate": 0 } ] }
}