NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Service Purchase Item → Insert or update record

AI-generated

Summary

Insert or update a Service Purchase Item record in NetSuite by specifying its external identifier and relevant fields.

Inputs

  • id (required) — External identifier of the Service Purchase Item to insert or update.
  • additionalFields — Various optional fields detailing the Service Purchase Item attributes such as allocation price, amortization details, vendor information, descriptions, and custom fields.
  • customFields — Custom fields specific to the Service Purchase Item record type, allowing to set values by field type.
  • isDebugMode — Flag to include full request and response information in the output for debugging purposes.
  • authMethod — Authentication method to use for the API request, either OAuth1 or OAuth2.
  • Prefer — Server behavior preference, e.g., 'respond-async' to execute the request asynchronously.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key for asynchronous requests to ensure single execution.
  • X-NetSuite-PropertyNameValidation — Level of strictness for property name validation (Error, Warning, Ignore).
  • X-NetSuite-PropertyValueValidation — Level of strictness for property value validation (Error, Warning, Ignore).

Output shape

The updated or created Service Purchase Item record data returned from NetSuite, optionally including full request and response information when 'Debug Mode' is enabled.

The operation requires providing the external identifier 'id' of the Service Purchase Item to insert or update. Additional optional fields and custom fields can be set as needed. The node supports both OAuth1 and OAuth2 authentication methods. The 'Prefer' and NetSuite-specific headers can alter behavior such as asynchronous execution and validation strictness. Debug information is included if 'Debug Mode' is set to true.

Examples

Example 1: Insert a new Service Purchase Item with a given external ID and custom description.

Set 'id' to the desired external ID, fill relevant fields in 'additionalFields' like 'description' and set 'authMethod' to the required authentication type.

Example 2: Update an existing Service Purchase Item to mark it as inactive and set expense account.

Provide 'id' of the existing item, set 'isInactive' to true in 'additionalFields', set 'expenseAccount' with proper internal or external IDs, and choose authentication method.

Links

Discussion