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).
ListCustomerSegmentsResponse
Name | Type | Tags | Description |
---|---|---|---|
errors |
Error[] | undefined |
Optional | Any errors that occurred during the request. |
segments |
CustomerSegment[] | undefined |
Optional | The list of customer segments belonging to the associated Square account. |
cursor |
string | undefined |
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. |
{
"segments": [
{
"created_at": "2020-01-09T19:33:24.469Z",
"id": "GMNXRZVEXNQDF.CHURN_RISK",
"name": "Lapsed",
"updated_at": "2020-04-13T21:47:04Z"
},
{
"created_at": "2020-01-09T19:33:24.486Z",
"id": "GMNXRZVEXNQDF.LOYAL",
"name": "Regulars",
"updated_at": "2020-04-13T21:47:04Z"
},
{
"created_at": "2020-01-09T19:33:21.813Z",
"id": "GMNXRZVEXNQDF.REACHABLE",
"name": "Reachable",
"updated_at": "2020-04-13T21:47:04Z"
},
{
"created_at": "2020-01-09T19:33:25Z",
"id": "gv2:KF92J19VXN5FK30GX2E8HSGQ20",
"name": "Instant Profile",
"updated_at": "2020-04-13T23:01:03Z"
}
]
}