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.
Usage Notes
Starting in 2026.1, when you set the grossAmt field for a taxable transaction line through REST web services, NetSuite recalculates the line amount field based on the applicable tax code, tax rate, and tax rounding rules. This behavior matches the NetSuite UI. In previous releases, REST web services ignored submitted grossAmt values, so setting this field didn't recalculate the line amount field.
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>