Square: Customer groups schemas
8 Square schemas with complete fields and constraints.
← Customer groups operations · All schemas
Create Customer Group — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the body parameters that can be included in a request to the [CreateCustomerGroup](api-endpoint:CustomerGroups-CreateCustomerGroup) endpoint. |
group | Model | Required within parent | Expand Create Customer Group — response body — group The customer group to create. |
idempotency_key | string | Optional | The idempotency key for the request. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). |
Referenced models: Create Customer Group — response body — group
Create Customer Group — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [CreateCustomerGroup](api-endpoint:CustomerGroups-CreateCustomerGroup) endpoint. Either `errors` or `group` 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 |
group | Model | Optional | Expand Create Customer Group — response body — group The successfully created customer group. |
Referenced models: Create Customer Group — response body — group, Get Shift — response body — errors item
Create Customer Group — response body — group
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a group of customer profiles. Customer groups can be created, be modified, and have their membership defined using the Customers API or within the Customer Directory in the Square Seller Dashboard or Point of Sale. |
created_at | string | Optional | The timestamp when the customer group was created, in RFC 3339 format. Read only: true |
id | string | Optional | A unique Square-generated ID for the customer group. Maximum length: 255 Read only: true |
name | string | Required within parent | The name of the customer group. |
updated_at | string | Optional | The timestamp when the customer group was last updated, in RFC 3339 format. Read only: true |
Delete Customer Group — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [DeleteCustomerGroup](api-endpoint:CustomerGroups-DeleteCustomerGroup) endpoint. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
List Customer Groups — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [ListCustomerGroups](api-endpoint:CustomerGroups-ListCustomerGroups) endpoint. Either `errors` or `groups` is present in a given response (never both). |
cursor | string | Optional | A pagination cursor to retrieve the next set of results for your original query to the endpoint. This value is present only 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 |
groups | array | Optional | A list of customer groups belonging to the current seller. |
groups[] | Model | Each item | Expand Create Customer Group — response body — group |
Referenced models: Create Customer Group — response body — group, Get Shift — response body — errors item
Retrieve Customer Group — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [RetrieveCustomerGroup](api-endpoint:CustomerGroups-RetrieveCustomerGroup) endpoint. Either `errors` or `group` 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 |
group | Model | Optional | Expand Create Customer Group — response body — group The retrieved customer group. |
Referenced models: Create Customer Group — response body — group, Get Shift — response body — errors item
Update Customer Group — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the body parameters that can be included in a request to the [UpdateCustomerGroup](api-endpoint:CustomerGroups-UpdateCustomerGroup) endpoint. |
group | Model | Required within parent | Expand Create Customer Group — response body — group The `CustomerGroup` object including all the updates you want to make. |
Referenced models: Create Customer Group — response body — group
Update Customer Group — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [UpdateCustomerGroup](api-endpoint:CustomerGroups-UpdateCustomerGroup) endpoint. Either `errors` or `group` 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 |
group | Model | Optional | Expand Create Customer Group — response body — group The successfully updated customer group. |
Referenced models: Create Customer Group — response body — group, Get Shift — response body — errors item