@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Class CustomerGroupsService

    Customer Groups service for managing Square customer groups and memberships.

    Customer groups are the primary way to gate pricing rules (wholesale tiers, member discounts) to specific customers.

    const group = await square.customerGroups.create({ name: 'Wholesale' });
    await square.customerGroups.addCustomer(group.id!, 'CUST_123');
    Index
    • List customer groups with cursor-based pagination.

      Parameters

      • Optionaloptions: ListCustomerGroupsOptions

      Returns Promise<{ cursor?: string; groups: CustomerGroup[] }>

    • Update a customer group's name.

      Parameters

      • groupId: string
      • options: UpdateCustomerGroupOptions

      Returns Promise<CustomerGroup>