Credit Card Charge

A credit card charge record exposes outgoing credit card transactions to REST web services.

This record is not a subrecord but has two subrecords: credit card charge expense and credit card charge item.

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

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

Record ID

The record ID for a credit card charge REST record is creditCardCharge.

The record IDs for the credit card charge REST subrecords are:

  • item

  • expense

Prerequisites

Before you can use this record through REST web services, you must enable and set up the SuiteTax feature as legacy tax fields are not available over REST. See Enabling the SuiteTax Feature.

Limitations

Updating legacy tax fields is not supported.

Code Samples

These samples show common use cases for credit card charge REST methods.

Getting OpenAPI Metadata from the Metadata Catalog

              GET https://test.netsuite.com/services/rest/record/v1/metadata-catalog/creditcardcharge 

            

Fetching a Credit Card Charge Record

              GET https://test.netsuite.com/services/rest/record/v1/creditcardcharge/<id> 

            

Creating a Credit Card Charge Record

              POST https://test.netsuite.com/services/rest/record/v1/creditcardcharge
{
"account": "123",
"entity": "26", "expense": { "items": [ { "account": "58", "amount": 50.00 } ] }
} 

            

Updating a Credit Card Charge Record

              PATCH https://test.netsuite.com/services/rest/record/v1/creditcardcharge/<id>
{ "account": "204", "entity": "10"
} 

            

Deleting a Credit Card Charge Record

              DELETE https://test.netsuite.com/services/rest/record/v1/creditcardcharge/<id> 

            

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