Usage

A usage record exposes SuiteBilling usage to REST web services. This record:

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

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

Record ID

The record ID for a usage REST record is usage.

Prerequisites

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

This record also requires, at a minimum, a customer, subscription, subscription plan, and subscription line.

Code Sample

This sample shows a common usage case.

            POST https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/usage
{ "memo": "Record of usage", "usageQuantity": 33, "usageDate": "2020-07-14", "customer": 5, "subscriptionPlan": 8, "usageSubscription": 208, "usageSubscriptionLine": 235
} 

          

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