Actions979
- Account Actions
- Accounting Period Actions
- Adv Intercompany Journal Entry Actions
- Assembly Build Actions
- Assembly Item Actions
- Assembly Unbuild Actions
- Billing Account Actions
- Billing Revenue Event Actions
- Billing Schedule Actions
- Bin Actions
- Bin Transfer Actions
- Blanket Purchase Order Actions
- Bom Actions
- Bom Revision Actions
- Calendar Event Actions
- Campaign Actions
- Campaign Response Actions
- Cash Refund Actions
- Cash Sale Actions
- Charge Actions
- Check Actions
- Classification Actions
- Commerce Category Actions
- Competitor Actions
- Consolidated Exchange Rate Actions
- Contact Actions
- Contact Category Actions
- Contact Role Actions
- Cost Category Actions
- Coupon Code Actions
- Credit Card Charge Actions
- Credit Card Refund Actions
- Credit Memo Actions
- Currency Actions
- Currency Rate Actions
- Customer Actions
- Customer Category Actions
- Customer Deposit Actions
- Customer Message Actions
- Customer Payment Actions
- Customer Refund Actions
- Customer Status Actions
- Customer Subsidiary Relationship Actions
- [Custom Record] Actions
- Department Actions
- Deposit Actions
- Deposit Application Actions
- Description Item Actions
- Discount Item Actions
- Download Item Actions
- Email Template Actions
- Employee Actions
- Estimate Actions
- Expense Category Actions
- Expense Report Actions
- Fair Value Price Actions
- Fulfillment Request Actions
- Gift Certificate Item Actions
- Inbound Shipment Actions
- Intercompany Journal Entry Actions
- Intercompany Transfer Order Actions
- Inventory Adjustment Actions
- Inventory Cost Revaluation Actions
- Inventory Count Actions
- Inventory Item Actions
- Inventory Number Actions
- Inventory Transfer Actions
- Invoice Actions
- Issue Actions
- Item Fulfillment Actions
- Item Group Actions
- Item Receipt Actions
- Item Revision Actions
- Job Actions
- Job Status Actions
- Job Type Actions
- Journal Entry Actions
- Kit Item Actions
- Location Actions
- Manufacturing Cost Template Actions
- Manufacturing Operation Task Actions
- Manufacturing Routing Actions
- Markup Item Actions
- Merchandise Hierarchy Level Actions
- Merchandise Hierarchy Node Actions
- Merchandise Hierarchy Version Actions
- Message Actions
- Nexus Actions
- Non Inventory Purchase Item Actions
- Non Inventory Resale Item Actions
- Non Inventory Sale Item Actions
- Note Type Actions
- Opportunity Actions
- Other Charge Purchase Item Actions
- Other Charge Resale Item Actions
- Other Charge Sale Item Actions
- Other Name Actions
- Other Name Category Actions
- Partner Actions
- Paycheck Actions
- Payment Item Actions
- Payment Method Actions
- Phone Call Actions
- Price Book Actions
- Price Level Actions
- Price Plan Actions
- Pricing Group Actions
- Project Task Actions
- Promotion Code Actions
- Purchase Contract Actions
- Purchase Order Actions
- Purchase Requisition Actions
- Resource Group Actions
- Return Authorization Actions
- Rev Rec Schedule Actions
- Rev Rec Template Actions
- Sales Order Actions
- Sales Role Actions
- Sales Tax Item Actions
- Service Purchase Item Actions
- Service Resale Item Actions
- Service Sale Item Actions
- Ship Item Actions
- Statistical Journal Entry Actions
- Subscription Actions
- Subscription Change Order Actions
- Subscription Line Actions
- Subscription Plan Actions
- Subscription Term Actions
- Subsidiary Actions
- Subtotal Item Actions
- [SuiteQL] Actions
- Support Case Actions
- Task Actions
- Tax Type Actions
- Term Actions
- Time Bill Actions
- Time Sheet Actions
- Topic Actions
- Transfer Order Actions
- Units Type Actions
- Usage Actions
- Vendor Actions
- Vendor Bill Actions
- Vendor Category Actions
- Vendor Credit Actions
- Vendor Payment Actions
- Vendor Prepayment Actions
- Vendor Prepayment Application Actions
- Vendor Return Authorization Actions
- Vendor Subsidiary Relationship Actions
- Web Site Actions
- Work Order Actions
- Work Order Close Actions
- Work Order Completion Actions
- Work Order Issue Actions
Credit Card Charge → Insert record
AI-generatedSummary
Create a new credit card charge record in NetSuite.
Inputs
- isDebugMode — Include full request and response information in the output when true.
- account — Account for the transaction (internal or external identifier).
- accountingBookDetail — Detail of accounting books, including items like accounting book, exchange rate, reference name, and subsidiary.
- userTotal — Dollar amount of the transaction (positive for credit).
- total — Total amount for the transaction.
- balance — NetSuite displayed balance after this transaction.
- class — Class associated with the transaction.
- cleared — Whether the transaction is cleared.
- currency — Currency used for the transaction.
- customForm — Reference to a custom form (internal or external identifier and reference name).
- tranDate — Posting date of the transaction.
- clearedDate — Date when the transaction was cleared.
- createdDate — Original creation date of the record.
- lastModifiedDate — Last modification date of the record.
- department — Department related to the transaction.
- entity — Entity (customer, vendor, etc.) on the transaction.
- expense — Expense details with line items including account, amount, category, class, department, etc.
- externalId — Custom external ID for the record.
- id — NetSuite internal ID of the record.
- location — Location associated with the transaction.
- memo — Memo or description for the transaction.
- postingPeriod — Posting period for the transaction.
- Prefer — Server preference, e.g., 'respond-async' for asynchronous execution.
- prevDate — Previous effective date for the transaction.
- refName — Reference name for the transaction.
- tranId — Transaction number identifier.
- replace — Comma‑separated sublist names to replace lines with.
- subsidiary — Subsidiary related to the transaction.
- X-NetSuite-Idempotency-Key — Idempotency key for asynchronous requests to avoid duplicates.
- X-NetSuite-PropertyNameValidation — Strictness of property name validation ('Error', 'Warning', 'Ignore').
- X-NetSuite-PropertyValueValidation — Strictness of property value validation ('Error', 'Warning', 'Ignore').
- customFields — Collection of custom fields; each item specifies fieldName, fieldType, and value of matching type.
Output shape
a list of items; each item contains the created credit card charge record data. If debug mode is enabled, each item also includes the raw request and response objects.
The response may include pagination details if inherently returned, but for an insert operation the payload consists of the newly created record information. Missing fields are omitted.
Examples
Example 1: Insert a basic credit card charge for a vendor purchase
account: internalId 123; entity: internalId 456; userTotal: 1000; memo: "Office supplies"; externalId: "CC-001"
Example 2: Insert a credit card charge with multiple expense lines
account: internalId 123; entity: internalId 456; expense.items: [{account: internalId 123, amount: 200}, {account: internalId 124, amount: 300}]; userTotal: 500
Example 3: Insert a credit card charge including custom fields
customFields: [{fieldName: "custom_status", fieldType: "string", value: "ticketed"}]