NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Customer Subsidiary Relationship → Update record

AI-generated

Summary

Update a customer subsidiary relationship record via PATCH to /customerSubsidiaryRelationship/{id}.

Inputs

  • id (required) — Internal identifier of the customer subsidiary relationship record to update.
  • isDebugMode — Whether to include full request and response info in the output.
  • authMethod — Authentication method for the API request. Defaults to OAuth1. Can be set to OAuth2 if configured in credentials.
  • additionalFields — Optional collection of fields to update on the record. Supported sub-fields include balance, depositBalance, entity (id/externalId), externalId, lastModifiedDate, name, isPrimarySubsidiary, and primaryCurrency.
  • replace — Comma-delimited names of sublists on this record. All sublist lines will be replaced with lines specified in the request.
  • replaceSelectedFields — If set to true, all fields that should be deleted in the update request, including body fields, must be included in the 'replace' query parameter. Defaults to false.
  • subsidiary — Subsidiary association for the customer subsidiary relationship, specified by internal ID (id) or external ID (externalId).
  • unbilledOrders — Total amount of orders entered but not yet billed for the customer. If multiple currencies are enabled, amount appears in the customer's currency.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key applied to every asynchronous request to ensure execution only once. Use UUID in RFC 4122 string format. Ignored for synchronous requests.
  • X-NetSuite-PropertyNameValidation — Sets the strictness of property name validation. Options: Error, Warning, Ignore. Default is empty (no validation).
  • X-NetSuite-PropertyValueValidation — Sets the strictness of property value validation. Options: Error, Warning, Ignore. Default is empty (no validation).
  • customFields — List of custom field values to update on the record. Multiple values supported. Each entry includes field name, field type (boolean, dateTime, multiSelect, number, select, string), and the corresponding value.

Output shape

The updated customer subsidiary relationship record object, reflecting all fields specified in the request body and query parameters.

Authentication defaults to OAuth1 per the node's default configuration. The operation performs a PATCH request to the NetSuite API endpoint /customerSubsidiaryRelationship/{id}. Optional headers X-NetSuite-PropertyNameValidation and X-NetSuite-PropertyValueValidation control validation strictness. The replace and replaceSelectedFields parameters govern sublist and field-level replacement behavior. Custom fields can be posted via the customFields collection if the workflow requires extending the record beyond standard NetSuite fields.

Examples

Example 1: Update the balance and subsidiary of a customer subsidiary relationship record.

Set id to the target record's internal ID, isDebugMode to true for logging, authMethod to oauth1 (default), additionalFields.balance to the new receivable balance, and subsidiary.id to the desired subsidiary's internal ID. Execute the node to send the PATCH request.

Links

Discussion