Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In
  • Home

  • Dev Essentials

  • Payments

  • Commerce

  • Customers

    • Customers

    • Customer Custom Attributes

    • Customer Groups

    • Customer Segments

    • Loyalty

    • Gift Cards

    • Gift Card Activities

  • Staff

  • Merchants

  • Objects & Enums

  • Webhook Events

  • Deprecated

  • SDKs

<- Square API

Square API

All versions ->

Customer Segments

Retrieve customer segments (also called smart groups) in a business account.

The Customer Segments API lets you retrieve information about the segments defined for a business. Square sellers can create customer segments in the Seller Dashboard or Point of Sale by defining filters for the segment. For example, a segment can include customers who have visited more than 10 times. Customers are automatically added to and removed from the segment over time based on this criterion.

You can inspect the customer's segment_ids property to determine which segments a customer belongs to. Then, you can use the Customer Segments API to retrieve basic details about each segment, such as the segment name and the time when it was created.

For more information, see the following guide:

  • Customer Segments
  • Endpoints

  • Webhooks

All versions ->

List customer segments

GET/v2/customers/segments

Retrieves the list of customer segments of a business.

Retrieve customer segment

GET/v2/customers/segments/{segment_id}

Retrieves a specific customer segment as identified by the segment_id value.