NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Estimate → Update record

AI-generated

Summary

Patch an existing estimate by ID, updating specified fields and optional custom fields.

Inputs

  • isDebugMode — Include full request and response JSON in output.
  • id (required) — Internal identifier of the estimate to update.
  • additionalFields — Collection of estimate fields to include in the PATCH body, such as billing, shipping, dates, totals, status, etc.
  • customFields — List of custom field key/value pairs to set on the estimate.
  • X-NetSuite-Idempotency-Key — Optional unique idempotency key for async requests.
  • X-NetSuite-PropertyNameValidation — Controls strictness of property name validation: Error, Warning, or Ignore.
  • X-NetSuite-PropertyValueValidation — Controls strictness of property value validation: Error, Warning, or Ignore.

Output shape

a single NetSuite Estimate record JSON object

If debug mode is enabled, the output contains both the request body sent to NetSuite and the response returned by NetSuite. Without debug mode only the response body is returned.

Examples

Example 1: Update the due date and status of an estimate

Set id to 12345; additionalFields:{dueDate:'2024-12-31',status:{id:'B'}}; leave other fields empty.

Example 2: Set a custom field on an estimate

id:12345; customFields:[{fieldName:'custom_status',fieldType:'string',value:'approved'}]; no other fields.

Example 3: Change the shipping address of an estimate

id:12345; additionalFields:{shipAddress:{addr1:'123 New St',city:'Metropolis',country:{id:'US'}}};

Discussion