NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Fair Value Price → Insert or update record

AI-generated

Summary

Creates or updates a Fair Value Price record in NetSuite.

Inputs

  • isDebugMode — Include full request and response information in the output
  • id (required) — External identifier of the Fair Value Price record to update
  • item — Reference to the item associated with the fair value price
  • fairValue — Base fair value for a unit of the item used in range checking
  • startDate — Date the fair value price becomes effective
  • endDate — Date the fair value price expires
  • highValue — High value for the fair value range (auto‑calculated from highValuePercent if not provided)
  • lowValue — Low value for the fair value range (auto‑calculated from lowValuePercent if not provided)
  • highValuePercent — Percent of the base fair value for the high end of the range
  • lowValuePercent — Percent of the base fair value for the low end of the range
  • currency — Currency reference for the fair value price
  • accountingBook — Accounting book reference associated with the fair value price
  • sourceType — Source of the fair value price (e.g., SUBSCRIPTION_LINE, TRANSACTION_LINE, etc.)
  • isVsoePrice — Indicates if the fair value is based on VSOE
  • customFields — List of custom field names and values to set on the record

Output shape

a single record

Returns the updated Fair Value Price record as a JSON object. If Debug Mode is enabled, the response also contains request and response details.

Examples

Example 1: Update an existing Fair Value Price with new values

Set resource to Fair Value Price, operation Insert or update record; enter id 'FY-2024-01'; provide item with internal id '123'; set fairValue to 150.0; set startDate '2024-01-01'; endDate '2024-12-31'; highValuePercent 10; lowValuePercent 5.

Example 2: Add custom fields to a Fair Value Price record

Set resource to Fair Value Price, operation Insert or update record; enter id 'FY-2024-01'; under Custom Fields add fieldName 'U_CUSTOM_FIELD' with fieldType 'String' and value 'Example'; enable Debug Mode.

Example 3: Set reference values for currency and accounting book

Set resource to Fair Value Price, operation Insert or update record; enter id 'FY-2024-01'; set currency externalId 'USD'; set accountingBook internalId '5'; leave other fields unchanged.

Discussion