Credit Card Refund
A credit card refund record exposes incoming credit card transactions to REST web services.
This record is not a subrecord but has two subrecords: credit card refund expense and credit card refund item.
With the exception of tax-related fields, all elements on this record are accessible through REST web services.
The REST API Browser includes information about the field names and field types of the credit card refund record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s credit card refund reference page.
For information about using the REST API Browser, see The REST API Browser.
Record ID
The record ID for a credit card refund REST record is creditCardRefund.
The record IDs for the credit card refund 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 refund REST methods.
Getting OpenAPI Metadata from the Metadata Catalog
GET https://test.netsuite.com/services/rest/record/v1/metadata-catalog/creditcardrefund
Fetching a Credit Card Refund Record
GET https://test.netsuite.com/services/rest/record/v1/creditcardrefund/<id>
Creating a Credit Card Refund Record
POST https://test.netsuite.com/services/rest/record/v1/creditcardrefund
{ "account": "123", "entity": "26", "expense": { "items": [ { "account": "58", "amount": 50.00 } ] }
}
Updating a Credit Card Refund Record
PATCH https://test.netsuite.com/services/rest/record/v1/creditcardrefund/<id>
{ "account": "204", "entity": "10"
}
Deleting a Credit Card Refund Record
DELETE https://test.netsuite.com/services/rest/record/v1/creditcardrefund/<id>