Add group to customer
PUT
/v2/customers/{customer_id}/groups/{group_id}
Adds a group membership to a customer.
The customer is identified by the customer_id
value
and the customer group is identified by the group_id
value.
Name | Description |
---|---|
customer_
Required
|
The ID of the customer to add to a group. |
group_
Required
|
The ID of the customer group to add the customer to. |
Response Fields
Name | Description |
---|---|
errors
|
Any errors that occurred during the request. |
Examples
PUT
/v2/customers/{customer_id}/groups/{group_id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/customers/customer_id0/groups/group_id1 \
-X PUT \
-H 'Square-Version: 2023-01-19' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{}