NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Credit Card Refund → Insert record

AI-generated

Summary

Insert a new credit card refund record into NetSuite.

Inputs

  • isDebugMode — Whether to include full request and response info in the output. Default: false.
  • authMethod — Authentication method. Default: oauth1. Options: OAuth1, OAuth2.
  • userTotal — Dollar amount of the transaction. NetSuite updates the amount as line items are added or edited. Default: null.
  • total — Amount field. Default: null.
  • tranDate — Posting date for the credit card transaction. Determines the date range on the Credit Card Register. Default: today's date if left empty.
  • externalId — External identifier for the refund record. Default: empty string.
  • id — Internal identifier for the refund record. Default: empty string.
  • memo — Memo text that appears on reports. Default: empty string.
  • tranId — Transaction number from your credit card transaction. Maximum 45 characters. Default: empty string.
  • replace — Comma-delimited names of sublists on this record. All sublist lines will be replaced with lines specified in the request. Default: empty string.
  • subsidiary — Subsidiary identifier. Collection with internal ID or external ID options. Default: empty collection.
  • currency — Currency identifier. Collection with internal ID or external ID options. Default: empty collection.
  • exchangeRate — Currency's exchange rate for this transaction. Can update the currency record. Default: null.
  • customFields — List of custom fields to set on the record. Each entry has a field name, type, and value. Default: empty collection.

Output shape

The NetSuite-assigned internal ID of the created credit card refund record, returned in the operation response.

Returned data shape is determined by the NetSuite REST API response for POST /creditCardRefund.

Examples

Example 1: Create a basic credit card refund.

Set isDebugMode to false, authMethod to oauth1, tranDate to the desired posting date, userTotal to the refund amount, currency and subsidiary to the appropriate identifiers, and memo to a description.

Links

Discussion