NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Credit Card Charge → Insert or update record

AI-generated

Summary

Updates or creates a Credit Card Charge record identified by an external ID.

Inputs

  • id (required) — External identifier of the credit card charge to modify or create.
  • additionalFields — Collection of field values to apply to the record, such as amount, date, account, expense lines, etc.

Output shape

a single record containing the updated Credit Card Charge data

When debug mode is enabled, the output also contains full request and response information; otherwise only the record body is returned.

Examples

Example 1: Update the amount of an existing credit card charge

Set id to the charge’s external ID, in additionalFields set userTotal to the new amount and optionally adjust tranDate.

Example 2: Create a new credit card charge if the external ID does not exist

Provide the desired id. Include additionalFields with mandatory fields such as entity, account, amount, tranDate, and optionally expense lines.

Example 3: Add a custom expense line to a charge

Use additionalFields → expense → items to specify account, amount, department, and memo for the new expense line.

Discussion