Retrieve customer group
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_
Required
|
The ID of the customer group to retrieve. |
Response Fields
Name | Description |
---|---|
errors
|
Any errors that occurred during the request. |
group
|
The retrieved customer group. |
Examples
GET
/v2/customers/groups/{group_id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/customers/groups/2TAT3CMH4Q0A9M87XJZED0WMR3 \
-H 'Square-Version: 2021-01-21' \
-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"
}
}