---
title: "CustomerGroup"
generated: true
---
<GenerationInfo sourceFile="packages/core/src/entity/customer-group/customer-group.entity.ts" sourceLine="17" packageName="@vendure/core" />

A grouping of <DocsLink href="/reference/typescript-api/entities/customer#customer">Customer</DocsLink>s which enables features such as group-based promotions
or tax rules.

```ts title="Signature"
class CustomerGroup extends VendureEntity implements HasCustomFields {
    constructor(input?: DeepPartial<CustomerGroup>)
    @Column() name: string;
    @ManyToMany(type => Customer, customer => customer.groups)
    customers: Customer[];
    @Column(type => CustomCustomerGroupFields)
    customFields: CustomCustomerGroupFields;
    @OneToMany(type => TaxRate, taxRate => taxRate.zone)
    taxRates: TaxRate[];
}
```
* Extends: <DocsLink href="/reference/typescript-api/entities/vendure-entity#vendureentity">`VendureEntity`</DocsLink>


* Implements: HasCustomFields



<div className="members-wrapper">

### constructor

<MemberInfo kind="method" type={`(input?: DeepPartial<<a href='/reference/typescript-api/entities/customer-group#customergroup'>CustomerGroup</a>>) => CustomerGroup`}   />


### name

<MemberInfo kind="property" type={`string`}   />


### customers

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/entities/customer#customer'>Customer</a>[]`}   />


### customFields

<MemberInfo kind="property" type={`CustomCustomerGroupFields`}   />


### taxRates

<MemberInfo kind="property" type={`<a href='/reference/typescript-api/entities/tax-rate#taxrate'>TaxRate</a>[]`}   />




</div>
