NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Invoice → Get list of records

AI-generated

Summary

Retrieve a list of invoice records from NetSuite.

Inputs

  • isDebugMode — Include full request and response details in the output if true.
  • limit — Maximum number of records per page.
  • offset — Offset for selecting a specific page of results.
  • Prefer — Request server to execute asynchronously by setting "respond-async".
  • q — Search query string to filter invoice results.
  • X-NetSuite-Idempotency-Key — Unique UUID key for idempotent asynchronous requests; ignored for synchronous calls.

Output shape

a list of invoice records (each item represents an invoice).

If debug mode is enabled, the output also contains a "debug" object with request and response data. Pagination is controlled with limit and offset. Using Prefer=respond-async may return an empty body with a Preference-applied header indicating the request was accepted for asynchronous processing.

Examples

Example 1: Simple fetch of first page

isDebugMode=false, limit=10, offset=0, q=''

Example 2: Filtered fetch

isDebugMode=false, q='status:OPEN', limit=20, offset=0

Example 3: Asynchronous request

isDebugMode=true, Prefer=respond-async, X-NetSuite-Idempotency-Key='123e4567-e89b-12d3-a456-426655440000'

Discussion