Square: Customer segments schemas
3 Square schemas with complete fields and constraints.
← Customer segments operations · All schemas
List Customer Segments — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines 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). |
cursor | string | Optional | A 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). |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
segments | array | Optional | The list of customer segments belonging to the associated Square account. |
segments[] | Model | Each item | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines 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). |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
segment | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_at | string | Optional | The timestamp when the segment was created, in RFC 3339 format. Read only: true |
id | string | Optional | A unique Square-generated ID for the segment. Maximum length: 255 Read only: true |
name | string | Required within parent | The name of the segment. Read only: true |
updated_at | string | Optional | The timestamp when the segment was last updated, in RFC 3339 format. Read only: true |