Skip to main content
Version: v1.0.0(int)

W051: Update customer type

Renames an existing customer type. Triggered from Settings, Customer types.

Steps

  1. Load the type. Confirm it exists in this org.

  2. Check name uniqueness if changed.

  3. Apply the patch. Call Customers.updateCustomerType.

Returns

The updated type row.

Business rules

  • Renames preserve history. Customer types are looked up by id; existing customers reflect the new name automatically.

Errors

  • NotFoundError. The type was not found.
  • ValidationError. Name collision.