NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Customer Subsidiary Relationship → Insert record

AI-generated

Summary

Create a new Customer Subsidiary Relationship record in NetSuite via POST.

Inputs

  • isDebugMode — Whether to include full request and response info in the output.
  • authMethod — Authentication method for NetSuite API access.
  • additionalFields — Collection of additional fields including Balance, Deposit Balance, and Entity reference.
  • balance — The customer's current accounts receivable balance due. Shown in customer's currency if Multiple Currencies is enabled.
  • depositBalance — Total amount of unapplied deposits for the customer. Deposits are recorded as a liability in the general ledger.
  • entity — Customer entity reference. Provide internal identifier (id) or external identifier (externalId).
  • isPrimarySub — Whether this is the primary subsidiary relationship.
  • externalId — External identifier for the record.
  • id — Internal identifier for the record. Clear Show Internal IDs at Home > Set Preferences to hide.
  • lastModifiedDate — Last modified date of the record.
  • name — Name of the customer subsidiary relationship.
  • Prefer — Server behavior requested by the client. Use 'respond-async' to execute the request asynchronously.
  • primaryCurrency — Primary currency reference. Provide internal identifier (id) or external identifier (externalId).
  • refName — Reference name for the record.
  • replace — Comma-delimited names of sublists to replace with lines specified in the request.
  • subsidiary — Subsidiary reference. Provide internal identifier (id) or external identifier (externalId).
  • unbilledOrders — Total amount of orders entered but not yet billed. Included in credit limit calculations if preferred.
  • X - Net Suite - Idempotency - Key — Unique idempotency key (RFC 4122 UUID) for asynchronous request deduplication.
  • X - Net Suite - Property Name Validation — Sets strictness of property name validation. Options: Error, Warning, Ignore.
  • X - Net Suite - Property Value Validation — Sets strictness of property value validation. Options: Error, Warning, Ignore.
  • customFields — List of custom fields to set on the record. Each entry requires Field Name, Field Type, and Value (type-dependent).

Output shape

The operation creates a new Customer Subsidiary Relationship record via POST to NetSuite. The response includes the created record's internal ID and metadata. Full request/response details are available when Debug Mode is enabled.

Authentication is handled via the selected authMethod (OAuth1 or OAuth2). The POST request targets the NetSuite endpoint for customer subsidiary relationships. Parameters not provided default to empty/null values as declared.

Examples

Example 1: Insert a new customer subsidiary relationship with primary status.

Set name, subsidiary reference, and isPrimarySub to true. Leave other fields at defaults.

Links

Discussion