• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

You are viewing an old version of the API
Retrieve customer group BETA

GET /v2/customers/groups/{group_id}

Retrieves a specific customer group as identified by the group_id value.


Permissions
CUSTOMERS_READ
Try in API Explorer
Name Description
group_id
string

Required

The ID of the customer group to retrieve.

Response Fields

Name Description
errors
Error [ ]

Any errors that occurred during the request.

group
CustomerGroup

The retrieved customer group.

Examples

You are viewing an old version of the API
GET /v2/customers/groups/{group_id}
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
curl https://connect.squareup.com/v2/customers/groups/2TAT3CMH4Q0A9M87XJZED0WMR3 \
  -H 'Square-Version: 2020-08-26' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'
Response JSON
{
  "group": {
    "id": "2TAT3CMH4Q0A9M87XJZED0WMR3",
    "name": "Loyal Customers",
    "created_at": "2020-04-13T21:54:57.863Z",
    "updated_at": "2020-04-13T21:54:58Z"
  }
}

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?