NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Charge → Get record

AI-generated

Summary

Retrieve a specific Charge record from NetSuite by its internal ID.

Inputs

  • id (required) — The internal identifier of the Charge record to retrieve.
  • isDebugMode — Whether to include full request and response information in the output for debugging.
  • additionalFields.expandSubResources — Set to 'true' to automatically expand all sublists, sublist lines, and subrecords on the returned record.
  • additionalFields.fields — The names of the fields and sublists on the record. Only the selected fields and sublists will be returned in the response. Use a comma-separated list for multiple fields.
  • additionalFields.Prefer — Specifies server behavior, such as 'respond-async' to execute the request asynchronously.
  • additionalFields.simpleEnumFormat — Set to 'true' to return enumeration values in a format that only shows the internal ID value.
  • additionalFields.X-NetSuite-Idempotency-Key — A user-defined unique idempotency key for asynchronous requests to ensure the request is executed only once. Use a UUID format. This value is ignored for synchronous requests.

Output shape

Returns a single JSON object representing the requested Charge record.

The exact fields present in the output object can be limited using the 'Fields' parameter. If 'Debug Mode' is enabled, the output will include full request and response details wrapping the record data. Sublists, sublist lines, and subrecords can be automatically expanded if 'Expand Sub Resources' is enabled.

Examples

Example 1: Retrieve a specific Charge record.

Set 'Id' to the internal ID of the charge record.

Example 2: Retrieve a Charge record, requesting only specific fields.

Set 'Id' and provide a comma-separated list of desired field names in 'Additional Fields > Fields'.

Example 3: Retrieve a Charge record and automatically expand all related sub-resources.

Set 'Id' and enable 'Additional Fields > Expand Sub Resources'.

Discussion