Skip to content

Square: Customer groups schemas

8 Square schemas with complete fields and constraints.

← Customer groups operations · All schemas

Create Customer Group — request body — body

FieldTypePresenceDescription and constraints
$objectRootDefines the body parameters that can be included in a request to the
[CreateCustomerGroup](api-endpoint:CustomerGroups-CreateCustomerGroup) endpoint.
groupModelRequired within parentExpand Create Customer Group — response body — group
The customer group to create.
idempotency_keystringOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRootDefines 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).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
groupModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootRepresents 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_atstringOptionalThe timestamp when the customer group was created, in RFC 3339 format.
Read only: true
idstringOptionalA unique Square-generated ID for the customer group.
Maximum length: 255
Read only: true
namestringRequired within parentThe name of the customer group.
updated_atstringOptionalThe timestamp when the customer group was last updated, in RFC 3339 format.
Read only: true

Delete Customer Group — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the response body of
a request to the [DeleteCustomerGroup](api-endpoint:CustomerGroups-DeleteCustomerGroup) endpoint.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item

List Customer Groups — response body

FieldTypePresenceDescription and constraints
$objectRootDefines 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).
cursorstringOptionalA 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).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
groupsarrayOptionalA list of customer groups belonging to the current seller.
groups[]ModelEach itemExpand 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

FieldTypePresenceDescription and constraints
$objectRootDefines 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).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
groupModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootDefines the body parameters that can be included in a request to the
[UpdateCustomerGroup](api-endpoint:CustomerGroups-UpdateCustomerGroup) endpoint.
groupModelRequired within parentExpand 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

FieldTypePresenceDescription and constraints
$objectRootDefines 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).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
groupModelOptionalExpand 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

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.