W051: Update customer type
Renames an existing customer type. Triggered from Settings, Customer types.
Steps
-
Load the type. Confirm it exists in this org.
-
Check name uniqueness if changed.
-
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.