NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Charge → Insert record

AI-generated

Summary

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

Links

Discussion