NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Estimate → Transform to cashSale

AI-generated

Summary

Transforms an existing Estimate into a new cash sale record.

Inputs

  • isDebugMode — Include full request and response details in the output.
  • id (required) — Internal identifier of the Estimate to transform.
  • additionalFields — Optional collection of fields to set on the cash sale, such as account, entity, amount, item list, billing and shipping addresses, and many other transaction attributes.

Output shape

A single record containing the created cash sale (NetSuite REST response). If debug mode is enabled, the output also includes the request payload and raw response data.

The operation calls the NetSuite SuiteTalk REST endpoint POST /estimate/{id}/!transform/cashSale. It returns the full cash sale record created by NetSuite, or in debug mode, an object with request and response fields. The additionalFields collection supports all standard cash sale properties; omitted fields are set to their default values.

Examples

Example 1: Create a cash sale from an existing estimate

id: 256; isDebugMode: false; additionalFields: {entity: {id: '5'}, tranDate: '2024-08-30', amount: 1000, currency: {id: '1'}}

Example 2: Recreate an estimate with modified amounts

id: 300; additionalFields: {amount: 1500, discountAmount: 50}

Discussion