Charge

A charge record exposes a SuiteBilling charge to REST web services. This record:

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

Record ID

The record ID for the charge REST record is charge.

Prerequisites

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

Additional Details

You must specify the stage field as an enumeration string. Possible values can be obtained through the Metadata Catalog. Charge type must be specified as an internal ID. You can obtain possible values through SuiteScript while creating a charge through the User Interface.

Code Sample

This sample shows a common billing usage case.

            POST https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/charge
{ "billTo": 5, "stage": "READY_FOR_BILLING", "chargeDate": "2020-07-14", "chargeType": -19, "billingItem": 5, "rate": 100.0, "quantity": 1
} 

          

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