NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Promotion Code → Get list of records

AI-generated

Summary

Retrieve a paginated list of promotion code records from the NetSuite REST API, optionally filtered by a search query and controlled via additional HTTP headers.

Inputs

  • Debug Mode — Enables inclusion of full HTTP request and response details in the output for debugging purposes.
  • Authentication Method (required) — Selects the authentication type to use for the API request, either OAuth1 or OAuth2.
  • Limit — Specifies the maximum number of promotion code records to return in a single page.
  • Offset — Specifies the offset for pagination, allowing selection of a specific page of results.
  • Prefer — Defines the server behavior preference, for example, 'respond-async' to execute the request asynchronously.
  • Q — A search query string to filter the promotion code records returned.
  • X - Net Suite - Idempotency - Key — An optional unique idempotency key (UUID as per RFC 4122) used to ensure asynchronous requests are executed only once; ignored for synchronous requests.

Output shape

a JSON object containing a list of promotion code records and, if Debug Mode is enabled, additional HTTP request and response details

The results are paginated using 'limit' and 'offset' parameters. If asynchronous request execution is requested via 'Prefer: respond-async', the response will contain the status of the async operation. Debug information is included only if Debug Mode is true. Errors and rate-limiting responses are included in the output following standard node error handling.

Links

Discussion