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

W054: Create customer segment

Adds a new customer segment (for example, Club, Distributor, Grocery). Triggered from Settings, Customer segments. Same shape as W049.

Steps

  1. Check name uniqueness. Case-insensitive, scoped to this org.

  2. Insert the segment. Call Customers.createCustomerSegment.

Returns

The new segment row.

Business rules

  • Names are unique per org.

Errors

  • ValidationError. Duplicate name.