Price Book

A price book record exposes a SuiteBilling price book to REST web services.

This record:

The REST API browser includes information about the field names and field types of the price book record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s price book reference page.

For information about using the REST API browser, see The REST API Browser.

Record ID

The record ID for a price book REST record is pricebook.

Prerequisites

You must Enabling SuiteBilling Features before you can use this record through REST web services.

Code Samples

These samples show common use cases for creating price books with all header fields.

            { "subscriptionplan" : {"id" : "{{existing_subscription_plan_id}}"}, "currency" : {"id" : "1"}, "name": "My Price Book {{$timestamp}}", "priceinterval": { "items": [ { "priceplan": {"id": "{{last_priceplan}}"}, "frequency": "MONTHLY", "repeatevery": "1", "startoffsetvalue": 1 } ] }
} 

          
            { "priceinterval": { "items": [ { "groupid":"438", "linenumber" : "1", "chargetype":"2", "priceplan": {"id": "1017"}, "frequency": "MONTHLY", "repeatevery": "1", "startoffsetvalue": "8", "startoffsetunit": "MONTH", "isrequired": true, "item": { "id": "15" }, "subscriptionplanlinenumber" : "1", "subscriptionplanline":"20" } ] }
} 

          

Related Topics

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices