NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Employee → Transform to expenseReport

AI-generated

Summary

Create an expense report from an employee record.

Inputs

  • id (required) — Internal identifier.
  • isDebugMode — Whether to include full request and response info in the output
  • authMethod — Authentication Method
  • additionalFields — Additional Fields
  • accountingapproval — If you have the appropriate accounting authority to approve this report indicating it is ready to pay, place a check mark in this box
  • advance — Enter any advance that should be applied to any reimbursement for these expenses
  • advance2 — This is the total of any advances applied to this expense report
  • advanceaccount — The internal identifier for the advance account
  • class — The internal identifier for the class
  • complete — This field shows if this report is complete. Only complete reports are submitted for approval and processing
  • corporatecard — The amount shown has been charged to a corporate credit card and will be reimbursed directly to the card issuer
  • currencyPrecision — Currency Precision
  • customForm — Custom Form
  • tranDate — Date
  • department — Department
  • expense — Expense
  • memo — Memo
  • expensereportexchangerate — Select an exchange rate for this expense report
  • expensereportcurrency — Expense report currency
  • total — NetSuite will keep track of the total expenses as you add and edit line items below
  • postingPeriod — Posting Period
  • X-NetSuite-Idempotency-Key — A user-defined unique idempotency key that is applied to every asynchronous requests to ensure that the request is executed only once
  • status — Status

Output shape

A single expense report record is returned, containing its generated ID and status.

If isDebugMode is enabled, full request/response details are included in the output.

Examples

Example 1: Create expense report for employee 1001 with default settings

Set id=1001, authMethod=oauth1, isDebugMode=false, additionalFields={}, accountingapproval=false

Example 2: Generate expense report with custom accounting approvals and debug output

Set authMethod=oauth2, isDebugMode=true, additionalFields={{accountingapproval=true, accountingBookDetail={...}}}, complete=true

Example 3: Submit expense report asynchronously using an idempotency key

Set X-NetSuite-Idempotency-Key='123e4567-e89b-12d3-a456-426614174000', isDebugMode=false, complete=true

Links

Discussion