Actions981
- 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
Charge → Insert record
AI-generatedSummary
The post /charge operation creates a new Charge record in NetSuite via the Azerion‑branded NetSuite REST nodes. It consumes user‑supplied charge parameters (amount, rate, quantity, dates, inventory references, custom fields, etc.) and returns the created record’s ID and fields. Idempotency can be enforced with the X‑NetSuite‑Idempotency‑Key header.
Inputs
- isDebugMode — Whether to include full request and response info in the output (default: false)
- authMethod — Authentication method used for the API request (OAuth1 or OAuth2, default: oauth1)
- amount — The charge amount; if not supplied the system calculates it as charge rate × charge quantity, otherwise it can be manually overridden.
- billDate — The bill date for this charge
- billTo — Internal or external identifier for the bill‑to party (customer, subsidiary, etc.)
- billingItem — Internal or external identifier for the billing item linked to this charge
- billingMode — Billing mode: IN_ARREARS, IN_ADVANCE, or IMMEDIATE
- billingSchedule — Internal or external identifier for the billing schedule linked to this charge
- chargeEmployee — Internal or external identifier for the employee associated with the charge
- runId — Charge Run ID if the charge originates from a charge run
- chargeType — Internal or external identifier for the charge type
- class — Internal or external identifier for the class associated with the charge
- creditMemo — Internal or external identifier for the credit memo if the charge originates from a credit memo
- creditMemoLine — Line number from the corresponding credit memo, if applicable
- currency — Internal or external identifier for the currency of the charge
- customForm — Internal or external identifier for the custom form associated with the charge
- chargeDate — Date this charge was generated or created
- createdDate — Date this charge was created, either manually or by a charge run
- department — Internal or external identifier for the department associated with the charge
- description — Free‑form description of the charge
- discountAmount — Discount amount for the charge
- externalId — External identifier for the charge (used for idempotency or external reference)
- groupOrder — Order in which the charge should appear on invoice lines
- id — Internal NetSuite identifier for the charge (auto‑generated if omitted)
- invoice — Internal or external identifier for the invoice containing this charge
- invoiceLine — Invoice line number if this charge has already been billed
- lastModifiedDate — Last modified date of the charge record
- location — Internal or external identifier for the location associated with the charge
- memo — Memo field for logging information (e.g., from Recurring Billing)
- Prefer — Server behavior hint: use 'respond‑async' to execute the request asynchronously
- projectTask — Internal or external identifier for the project/task associated with the charge
- quantity — Quantity for this charge (defaults to 1 for project charges)
Output shape
record
Returns the newly created Charge record’s internal ID and all populated fields. If the request is executed asynchronously (Preference: respond‑async), the response includes a 'Preference‑applied: respond‑async' header.
Examples
Example 1: Create a charge with amount 100, rate 10, quantity 10, currency ID C001, and optional idempotency key.
isDebugMode=false, authMethod=oauth1, additionalFields={amount:100,rate:10,quantity:10,currency:C001}, X-NetSuite-Idempotency-Key=unique-uuid