Skip to content

Square: Customer segments schemas

3 Square schemas with complete fields and constraints.

← Customer segments operations · All schemas

List Customer Segments — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the response body for requests to the `ListCustomerSegments` endpoint.

Either `errors` or `segments` is present in a given response (never both).
cursorstringOptionalA pagination cursor to be used in subsequent calls to `ListCustomerSegments`
to retrieve the next set of query results. The cursor is only present if the request succeeded and
additional results are available.

For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
segmentsarrayOptionalThe list of customer segments belonging to the associated Square account.
segments[]ModelEach itemExpand Retrieve Customer Segment — response body — segment

Referenced models: Retrieve Customer Segment — response body — segment, Get Shift — response body — errors item

Retrieve Customer Segment — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the response body for requests to the `RetrieveCustomerSegment` endpoint.

Either `errors` or `segment` is present in a given response (never both).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
segmentModelOptionalExpand Retrieve Customer Segment — response body — segment
The retrieved customer segment.

Referenced models: Retrieve Customer Segment — response body — segment, Get Shift — response body — errors item

Retrieve Customer Segment — response body — segment

FieldTypePresenceDescription and constraints
$objectRootRepresents a group of customer profiles that match one or more predefined filter criteria.

Segments (also known as Smart Groups) are defined and created within the Customer Directory in the
Square Seller Dashboard or Point of Sale.
created_atstringOptionalThe timestamp when the segment was created, in RFC 3339 format.
Read only: true
idstringOptionalA unique Square-generated ID for the segment.
Maximum length: 255
Read only: true
namestringRequired within parentThe name of the segment.
Read only: true
updated_atstringOptionalThe timestamp when the segment was last updated, in RFC 3339 format.
Read only: true

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.